added nfs script

This commit is contained in:
John Lancaster
2024-12-08 12:13:34 -06:00
parent 3121bffc30
commit 68bfa4ef4b
2 changed files with 9 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
let
inherit (self) outputs;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
stateVersion = "24.05";
timeZone = "America/Chicago";
hostname = "loki";
@@ -39,11 +40,17 @@
nixpkgs.hostPlatform = "${system}";
system.stateVersion = "${stateVersion}";
time.timeZone = "${timeZone}";
environment.systemPackages = [
(pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake git+file://${lokiPath}#${hostname}
'')
];
})
(import ./nixos/loki.nix {
pkgs = nixpkgs.legacyPackages.${system};
inherit pkgs;
inherit lokiPort;
inherit lokiUser;
inherit lokiPath;
})
];
};