diff --git a/flake/modules/default.nix b/flake/modules/default.nix index 78cf01ac8..7a27b19ef 100644 --- a/flake/modules/default.nix +++ b/flake/modules/default.nix @@ -20,6 +20,8 @@ in { homeManagerModules = { gtklock = mkModule /modules/extra/home-manager/gtklock.nix; + hyfetch = mkModule /modules/extra/home-manager/hyfetch.nix; + swaync = mkModule /modules/extra/home-manager/swaync.nix; default = builtins.throw "There is no default module."; diff --git a/home/isabel/default.nix b/home/isabel/default.nix index 6a6110327..062f1dc83 100644 --- a/home/isabel/default.nix +++ b/home/isabel/default.nix @@ -1,16 +1,11 @@ { lib, pkgs, - self, ... }: let inherit (lib) mkDefault ldTernary; in { imports = [ - # imported home-manager modules - self.homeManagerModules.gtklock - self.homeManagerModules.swaync - # important system environment config ./system # programs that are used, e.g. GUI apps diff --git a/home/isabel/programs/configs/gui/swaync.nix b/home/isabel/programs/configs/gui/swaync.nix index 3a8fe056b..6af30908a 100644 --- a/home/isabel/programs/configs/gui/swaync.nix +++ b/home/isabel/programs/configs/gui/swaync.nix @@ -1,10 +1,13 @@ { lib, + self, osConfig, ... }: let inherit (lib) mkIf; in { + imports = [self.homeManagerModules.swaync]; + services.swaync = mkIf osConfig.modules.programs.gui.bars.waybar.enable { enable = true; systemd.enable = true; diff --git a/home/isabel/services/wayland/screenlock/gtklock.nix b/home/isabel/services/wayland/screenlock/gtklock.nix index 4efa49601..174fe48f3 100644 --- a/home/isabel/services/wayland/screenlock/gtklock.nix +++ b/home/isabel/services/wayland/screenlock/gtklock.nix @@ -1,12 +1,15 @@ { lib, pkgs, + self, osConfig, defaults, ... }: let inherit (lib) mkIf isWayland; in { + imports = [self.homeManagerModules.gtklock]; + config = mkIf ((isWayland osConfig) && defaults.screenLocker == "gtklock") { programs.gtklock = { enable = true;