diff --git a/flake.nix b/flake.nix index 44e208a..a6eb480 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ }; - outputs = { self, nixpkgs, nix-colors, automapaper, disko, home-manager, hyprland, lazy, ... }@inputs: + outputs = { self, nixpkgs, nix-colors, automapaper, disko, hyprland, lazy, ... }@inputs: { nixosConfigurations = { lambdaOS = nixpkgs.lib.nixosSystem { diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 86d816b..5663118 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -7,7 +7,6 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - inputs.home-manager.nixosModules.default ../../modules/games/steam.nix inputs.nix-minecraft.nixosModules.minecraft-servers ]; @@ -128,7 +127,7 @@ mangohud ]; - # TODO find list of fonts to install + # TODO: find list of fonts to install fonts.packages = with pkgs; [ font-awesome noto-fonts diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 729d80f..4bc1d01 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -50,7 +50,6 @@ in wl-clipboard inputs.hyprpicker - hyprshot hypridle # TODO: remove when fixed with config playerctl @@ -77,11 +76,11 @@ in "WLR_NO_HARDWARE_CURSORS,1" ]; exec-once = [ - "waybar" - "dunst" - (lib.mkIf config.modules.automapaper.enable "automapaper -C ${config.xdg.configHome}/automapaper/config.toml") - (lib.mkIf config.modules.automapaper.enable "automapaper -C ${config.xdg.configHome}/automapaper/config2nd.toml") - "hyprctl dispatcher focusmonitor 1" + "${pkgs.waybar}/bin/waybar" + "${pkgs.dunst}/bin/dunst" + (lib.mkIf config.modules.automapaper.enable "${inputs.automapaper}/bin/automapaper -C ${config.xdg.configHome}/automapaper/config.toml") + (lib.mkIf config.modules.automapaper.enable "${inputs.automapaper}/bin/automapaper -C ${config.xdg.configHome}/automapaper/config2nd.toml") + "${cfg.package}/bin/hyprctl dispatcher focusmonitor 1" "hypridle" ]; general = { @@ -115,7 +114,7 @@ in }; "$mod" = "SUPER"; bind = [ - "$mod,Return,exec,${cfg.terminal.pname}" + "$mod,Return,exec,${cfg.terminal}/bin/${cfg.terminal.pname}" "$mod,tab,cyclenext" "SUPERSHIFT,Q,killactive" "$mod,SPACE,exec,wofi-launch" @@ -132,14 +131,14 @@ in "$mod,F,togglefloating" "$mod,X,togglespecialworkspace" "SUPERSHIFT,X,movetoworkspace,special" - "SUPERSHIFT,S,exec,hyprshot -m region --clipboard-only" + "SUPERSHIFT,S,exec,${pkgs.hyprshot}/bin/hyprshot -m region --clipboard-only" "$mod,f11,fullscreen,0" - ",XF86AudioLowerVolume,exec,wpctl set-volume @DEFAULT_SINK@ 1%-" - ",XF86AudioRaiseVolume,exec,wpctl set-volume @DEFAULT_SINK@ 1%+" - ",XF86AudioMute,exec,wpctl set-mute @DEFAULT_SINK@ toggle" - ",XF86AudioPlay,exec,playerctl play-pause" - ",XF86AudioPrev,exec,playerctl previous" - ",XF86AudioNext,exec,playerctl next" + ",XF86AudioLowerVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%-" + ",XF86AudioRaiseVolume,exec,${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 1%+" + ",XF86AudioMute,exec,${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SINK@ toggle" + ",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause" + ",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous" + ",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next" ] ++ ( builtins.concatLists (builtins.genList (