generated from john/nix-docker
added nfs script
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
timeZone = "America/Chicago";
|
timeZone = "America/Chicago";
|
||||||
hostname = "loki";
|
hostname = "loki";
|
||||||
@@ -39,11 +40,17 @@
|
|||||||
nixpkgs.hostPlatform = "${system}";
|
nixpkgs.hostPlatform = "${system}";
|
||||||
system.stateVersion = "${stateVersion}";
|
system.stateVersion = "${stateVersion}";
|
||||||
time.timeZone = "${timeZone}";
|
time.timeZone = "${timeZone}";
|
||||||
|
environment.systemPackages = [
|
||||||
|
(pkgs.writeShellScriptBin "nfs" ''
|
||||||
|
sudo nixos-rebuild switch --flake git+file://${lokiPath}#${hostname}
|
||||||
|
'')
|
||||||
|
];
|
||||||
})
|
})
|
||||||
(import ./nixos/loki.nix {
|
(import ./nixos/loki.nix {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
inherit pkgs;
|
||||||
inherit lokiPort;
|
inherit lokiPort;
|
||||||
inherit lokiUser;
|
inherit lokiUser;
|
||||||
|
inherit lokiPath;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lokiUser, lokiPort ? (3100), ... }:
|
{ pkgs, lokiUser ? "loki", lokiPort ? (3100), lokiPath, ... }:
|
||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user