added nfs script
This commit is contained in:
@@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lokiUser, lokiPort ? (3100), ... }:
|
||||
{ pkgs, lokiUser ? "loki", lokiPort ? (3100), lokiPath, ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user