moved script

This commit is contained in:
John Lancaster
2024-12-08 13:24:09 -06:00
parent ee521c87eb
commit 5233efa8ba
2 changed files with 11 additions and 5 deletions

View File

@@ -38,11 +38,11 @@
nixpkgs.hostPlatform = "${system}"; nixpkgs.hostPlatform = "${system}";
system.stateVersion = "${stateVersion}"; system.stateVersion = "${stateVersion}";
time.timeZone = "${timeZone}"; time.timeZone = "${timeZone}";
environment.systemPackages = [ # environment.systemPackages = [
(pkgs.writeShellScriptBin "nfs" '' # (pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname} # sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname}
'') # '')
]; # ];
}) })
]; ];
}; };

View File

@@ -20,5 +20,11 @@ in
homeDirectory = "${homePath}"; homeDirectory = "${homePath}";
}; };
packages = [
(pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
'')
];
systemd.user.startServices = "sd-switch"; systemd.user.startServices = "sd-switch";
} }