diff options
Diffstat (limited to 'modules/desktop/astal.nix')
-rw-r--r-- | modules/desktop/astal.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/desktop/astal.nix b/modules/desktop/astal.nix new file mode 100644 index 0000000..2f7f0f3 --- /dev/null +++ b/modules/desktop/astal.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + pkgs, + inputs, + ... +}: let + system = pkgs.stdenv.hostPlatform.system; + astal = inputs.self.packages.${system}; + + inherit (lib) mkIf; + cfg = config.desktop; +in { + config = mkIf cfg.astal { + default.appLauncher = lib.mkDefault "astal-launcher"; + + home-manager.users.${config.user} = { + home.packages = [ + astal.astal.shell + astal.astal.launcher + ]; + }; + }; +} |