dotfiles/home/pixnix.nix

39 lines
876 B
Nix
Raw Normal View History

2023-07-29 02:56:41 +00:00
{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [
./global
./features/cli/extras
2023-07-29 02:56:41 +00:00
./features/desktop
2023-09-27 01:24:07 +00:00
# ./features/desktop/hyprland.nix
2023-07-29 02:56:41 +00:00
];
# packages
home.packages = with pkgs; [
2023-09-26 01:20:43 +00:00
kitty
2023-07-29 02:56:41 +00:00
vagrant
];
2023-09-27 01:24:07 +00:00
wayland.windowManager.hyprland.extraConfig = ''
$mod = SUPER
bind = $mod, F, exec, firefox
bind = , Print, exec, grimblast copy area
bind = $mod, Q, exec, kitty
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
${builtins.concatStringsSep "\n" (builtins.genList (
x: let
ws = let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in ''
bind = $mod, ${ws}, workspace, ${toString (x + 1)}
bind = $mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}
''
)
10)}
'';
2023-07-29 02:56:41 +00:00
}