diff --git a/bin/skyg b/bin/skyg index a6ba915..b4a01ae 100755 --- a/bin/skyg +++ b/bin/skyg @@ -83,3 +83,20 @@ def "main build-iso" [] { nix build .#nixosConfigurations.iso.config.system.build.isoImage ls -l result/iso } + +# Home Manager operations +def "main hm" [action: string@hm-actions, profile: string = "ari"] { + let valid_actions = (hm-actions) + if not ($action in $valid_actions) { + error make { + msg: $"Invalid action '($action)'", + help: $"Valid actions are: ($valid_actions | str join ', ')" + } + } + $"Running home-manager ($action) for profile ($profile)" | print + home-manager $action --flake $".#($profile)" +} + +def hm-actions [] { + ["switch", "build"] +} diff --git a/flake.nix b/flake.nix index 22624b2..6038da0 100644 --- a/flake.nix +++ b/flake.nix @@ -106,6 +106,7 @@ nixpkgs-fmt nixd nh + home-manager.packages.${system}.home-manager ]; shellHook = '' export PATH=$PATH:$(pwd)/bin @@ -120,9 +121,7 @@ # Non-NixOS Linux Setups (standalone home-manager) # ------------- homeConfigurations = { - "ari" = lib.makeHomeManagerUsers { - homeManagerVersion = "24.11"; - }; + "ari" = lib.makeHomeManagerUsers { }; }; # NixOS Linux Setups diff --git a/modules/lib.nix b/modules/lib.nix index 0b77545..2297be6 100644 --- a/modules/lib.nix +++ b/modules/lib.nix @@ -30,7 +30,7 @@ let ]; # Shared function to create home-manager user configuration - makeHomeConfig = { stateVersion }: import ./home { stateVersion = stateVersion; }; + makeHomeConfig = {}: import ./home { }; in { eachSystem = eachSystem;