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
|
||||
user = config.profile.user;
|
||||
stateVersion = config.profile.system.stateVersion;
|
||||
|
@ -21,6 +26,7 @@ in
|
|||
username = user.name;
|
||||
homeDirectory = "/home/${user.name}";
|
||||
stateVersion = stateVersion;
|
||||
packages = with pkgs; [ btop ];
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
systemd.user.sessionVariables = {
|
||||
|
|
|
@ -41,6 +41,14 @@ let
|
|||
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
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -57,6 +65,7 @@ in
|
|||
wayland.windowManager.hyprland.settings.bind = [
|
||||
"$mod, D, exec, rofi -show drun -replace -i"
|
||||
"$mod, F, exec, ${getExe selectWindowScript}"
|
||||
"$mod, P, exec, ${getExe openProjectScript}"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
./jellyfin.nix
|
||||
./jetbrains-idea.nix
|
||||
./kitty.nix
|
||||
./krita.nix
|
||||
./lazysql.nix
|
||||
./microsoft-edge.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')
|
||||
|
||||
return {
|
||||
enable_wayland = false,
|
||||
enable_wayland = true,
|
||||
font = wezterm.font_with_fallback({
|
||||
-- 'Comic Code Ligatures',
|
||||
'JetBrainsMono Nerd Font Mono',
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ...
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.strings) optionalString concatStrings;
|
||||
|
@ -93,6 +94,14 @@ in
|
|||
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
|
||||
## Case insensitive completion
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
zathura.enable = lib.mkEnableOption "zathura";
|
||||
floorp.enable = lib.mkEnableOption "floorp";
|
||||
java.enable = lib.mkEnableOption "java";
|
||||
krita.enable = lib.mkEnableOption "krita";
|
||||
zellij = {
|
||||
enable = lib.mkEnableOption "zellij";
|
||||
|
||||
|
|
|
@ -109,6 +109,7 @@ in
|
|||
home.programs = {
|
||||
zathura.enable = true;
|
||||
bruno.enable = true;
|
||||
krita.enable = true;
|
||||
zoom.enable = true;
|
||||
elisa.enable = true;
|
||||
obsidian.enable = true;
|
||||
|
@ -118,7 +119,7 @@ in
|
|||
|
||||
programs.mongodb-compass.enable = true;
|
||||
programs.easyeffects.enable = true;
|
||||
programs.wezterm.enable = true;
|
||||
programs.wezterm.enable = false;
|
||||
podman.enable = true;
|
||||
services.ntfy-sh.client.enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue