added local hm job
This commit is contained in:
1 parent
0b34a3cf11
commit
11893ae742
3 files changed
+20
-4
No files matched your search
@@ -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"]
|
||||
}
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user