Compare commits
4 commits
230a7f661b
...
d1d798bede
Author | SHA1 | Date | |
---|---|---|---|
Tigor Hutasuhut | d1d798bede | ||
Tigor Hutasuhut | 4a0710fb6a | ||
Tigor Hutasuhut | ed5120b070 | ||
Tigor Hutasuhut | c5f2267892 |
|
@ -1,4 +1,9 @@
|
||||||
{ config, profile-path, ... }:
|
{
|
||||||
|
config,
|
||||||
|
profile-path,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
user = config.profile.user;
|
user = config.profile.user;
|
||||||
stateVersion = config.profile.system.stateVersion;
|
stateVersion = config.profile.system.stateVersion;
|
||||||
|
@ -21,6 +26,7 @@ in
|
||||||
username = user.name;
|
username = user.name;
|
||||||
homeDirectory = "/home/${user.name}";
|
homeDirectory = "/home/${user.name}";
|
||||||
stateVersion = stateVersion;
|
stateVersion = stateVersion;
|
||||||
|
packages = with pkgs; [ btop ];
|
||||||
};
|
};
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
|
|
|
@ -41,6 +41,14 @@ let
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
openProjectScript =
|
||||||
|
pkgs.writeShellScriptBin ''select-project.sh'' # sh
|
||||||
|
''
|
||||||
|
dir=$(zoxide query --list | rofi -dmenu -i -matching fuzzy)
|
||||||
|
if [[ "$dir" != "" ]]; then
|
||||||
|
foot --title="Project: $dir" --working-directory="$dir"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
@ -57,6 +65,7 @@ in
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
wayland.windowManager.hyprland.settings.bind = [
|
||||||
"$mod, D, exec, rofi -show drun -replace -i"
|
"$mod, D, exec, rofi -show drun -replace -i"
|
||||||
"$mod, F, exec, ${getExe selectWindowScript}"
|
"$mod, F, exec, ${getExe selectWindowScript}"
|
||||||
|
"$mod, P, exec, ${getExe openProjectScript}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./jetbrains-idea.nix
|
./jetbrains-idea.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
./krita.nix
|
||||||
./lazysql.nix
|
./lazysql.nix
|
||||||
./microsoft-edge.nix
|
./microsoft-edge.nix
|
||||||
./mongodb-compass.nix
|
./mongodb-compass.nix
|
||||||
|
|
13
home/programs/krita.nix
Normal file
13
home/programs/krita.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.profile.home.programs.krita;
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable { home.packages = with pkgs; [ krita ]; };
|
||||||
|
}
|
|
@ -4,7 +4,7 @@ local shortcuts = require('keys')
|
||||||
require('event_config')
|
require('event_config')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
enable_wayland = false,
|
enable_wayland = true,
|
||||||
font = wezterm.font_with_fallback({
|
font = wezterm.font_with_fallback({
|
||||||
-- 'Comic Code Ligatures',
|
-- 'Comic Code Ligatures',
|
||||||
'JetBrainsMono Nerd Font Mono',
|
'JetBrainsMono Nerd Font Mono',
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ pkgs
|
{
|
||||||
, lib
|
pkgs,
|
||||||
, config
|
lib,
|
||||||
, ...
|
config,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.strings) optionalString concatStrings;
|
inherit (lib.strings) optionalString concatStrings;
|
||||||
|
@ -93,6 +94,14 @@ in
|
||||||
nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}"
|
nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nf() {
|
||||||
|
local selected=$(zoxide query --list | fzf)
|
||||||
|
if [ -n "$selected" ]; then
|
||||||
|
cd "$selected"
|
||||||
|
neovide
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Completion settings
|
# Completion settings
|
||||||
## Case insensitive completion
|
## Case insensitive completion
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
zathura.enable = lib.mkEnableOption "zathura";
|
zathura.enable = lib.mkEnableOption "zathura";
|
||||||
floorp.enable = lib.mkEnableOption "floorp";
|
floorp.enable = lib.mkEnableOption "floorp";
|
||||||
java.enable = lib.mkEnableOption "java";
|
java.enable = lib.mkEnableOption "java";
|
||||||
|
krita.enable = lib.mkEnableOption "krita";
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = lib.mkEnableOption "zellij";
|
enable = lib.mkEnableOption "zellij";
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@ in
|
||||||
home.programs = {
|
home.programs = {
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
bruno.enable = true;
|
bruno.enable = true;
|
||||||
|
krita.enable = true;
|
||||||
zoom.enable = true;
|
zoom.enable = true;
|
||||||
elisa.enable = true;
|
elisa.enable = true;
|
||||||
obsidian.enable = true;
|
obsidian.enable = true;
|
||||||
|
@ -118,7 +119,7 @@ in
|
||||||
|
|
||||||
programs.mongodb-compass.enable = true;
|
programs.mongodb-compass.enable = true;
|
||||||
programs.easyeffects.enable = true;
|
programs.easyeffects.enable = true;
|
||||||
programs.wezterm.enable = true;
|
programs.wezterm.enable = false;
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
services.ntfy-sh.client.enable = true;
|
services.ntfy-sh.client.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue