diff options
Diffstat (limited to 'modules/system/quickshell.nix')
| -rw-r--r-- | modules/system/quickshell.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/system/quickshell.nix b/modules/system/quickshell.nix new file mode 100644 index 0000000..766c250 --- /dev/null +++ b/modules/system/quickshell.nix @@ -0,0 +1,39 @@ +{ inputs, ... }: +{ + flake.modules.homeManager.quickshell = + { pkgs, config, ... }: + { + home.packages = [ + pkgs.inter + pkgs.brightnessctl + pkgs.adwaita-icon-theme + pkgs.hicolor-icon-theme + ]; + + programs.quickshell = { + enable = true; + package = inputs.quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default; + activeConfig = "bar"; + configs.bar = ./quickshell; + systemd.enable = true; + }; + + systemd.user.services.quickshell = { + Service.Environment = [ + "PATH=${pkgs.sway}/bin:${pkgs.pipewire}/bin:${pkgs.wireplumber}/bin:${pkgs.brightnessctl}/bin:${config.home.profileDirectory}/bin:/run/current-system/sw/bin" + "XDG_DATA_DIRS=${pkgs.adwaita-icon-theme}/share:${pkgs.hicolor-icon-theme}/share:${config.home.profileDirectory}/share:/run/current-system/sw/share" + ]; + }; + }; + + flake.modules.nixos.quickshell = + { pkgs, ... }: + { + security.pam.services.quickshell = { + text = '' + auth required pam_unix.so + account required pam_unix.so + ''; + }; + }; +} |
