nfroot: move tftp server from nix-build
nix-build is currently no more...
This commit is contained in:
parent
cbb1269c9b
commit
ed2334e8db
12
flake.nix
12
flake.nix
|
@ -404,11 +404,7 @@
|
|||
nix-build = nixosSystem' {
|
||||
modules = [
|
||||
./hosts/containers/nix-build
|
||||
{
|
||||
_module.args.tftproots = nixpkgs.lib.filterAttrs (name: _:
|
||||
builtins.match ".+-tftproot" name != null
|
||||
) self.packages.x86_64-linux;
|
||||
} ];
|
||||
];
|
||||
};
|
||||
|
||||
pulsebert = nixosSystem' {
|
||||
|
@ -673,7 +669,11 @@
|
|||
modules = [
|
||||
self.nixosModules.microvm
|
||||
./hosts/containers/nfsroot
|
||||
];
|
||||
{
|
||||
_module.args.tftproots = nixpkgs.lib.filterAttrs (name: _:
|
||||
builtins.match ".+-tftproot" name != null
|
||||
) self.packages.x86_64-linux;
|
||||
} ];
|
||||
};
|
||||
|
||||
riscbert = nixosSystem' {
|
||||
|
|
|
@ -8,6 +8,10 @@ let
|
|||
"var/lib/dump-dvb/whoopsie"
|
||||
];
|
||||
in {
|
||||
imports = [
|
||||
./tftp.nix
|
||||
];
|
||||
|
||||
microvm = {
|
||||
hypervisor = "cloud-hypervisor";
|
||||
mem = 2048;
|
||||
|
|
|
@ -17,12 +17,6 @@ in
|
|||
{
|
||||
networking.firewall.enable = false;
|
||||
|
||||
fileSystems."/var/lib/nfsroot/dacbert" = {
|
||||
device = "${hostRegistry.hosts.nfsroot.ip4}:/var/lib/nfsroot/dacbert";
|
||||
fsType = "nfs";
|
||||
options = [ "nfsvers=3" "proto=tcp" "nolock" "soft" "async" "ro" ];
|
||||
};
|
||||
|
||||
# raspberrypi boot
|
||||
services.atftpd = {
|
||||
enable = true;
|
||||
|
@ -52,14 +46,6 @@ in
|
|||
"${subnet}(${opts "ro" 0})"
|
||||
) allowed
|
||||
}
|
||||
/var/lib/nfsroot/dacbert ${
|
||||
lib.concatMapStringsSep " " (subnet:
|
||||
"${subnet}(${opts "rw" 1})"
|
||||
) allowed
|
||||
}
|
||||
'';
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/nfsroot/dacbert 0755 root root - -"
|
||||
];
|
||||
}
|
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./tftp.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user