summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-02 00:11:28 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-02 00:11:28 +0100
commit42984e77041cfc95d333319bef0b2d8f441f56d3 (patch)
tree848bf7ee0ebd5d01dd20184d662230d42d5bf7b0 /hosts/vidhar
parent9cc83652e3b922a8bca5c4684bbc34a6589b9aa5 (diff)
downloadnixos-42984e77041cfc95d333319bef0b2d8f441f56d3.tar
nixos-42984e77041cfc95d333319bef0b2d8f441f56d3.tar.gz
nixos-42984e77041cfc95d333319bef0b2d8f441f56d3.tar.bz2
nixos-42984e77041cfc95d333319bef0b2d8f441f56d3.tar.xz
nixos-42984e77041cfc95d333319bef0b2d8f441f56d3.zip
eos → eostre
Diffstat (limited to 'hosts/vidhar')
-rw-r--r--hosts/vidhar/network/dhcp/default.nix22
-rw-r--r--hosts/vidhar/samba.nix8
2 files changed, 15 insertions, 15 deletions
diff --git a/hosts/vidhar/network/dhcp/default.nix b/hosts/vidhar/network/dhcp/default.nix
index d3407f1d..1c29dc6a 100644
--- a/hosts/vidhar/network/dhcp/default.nix
+++ b/hosts/vidhar/network/dhcp/default.nix
@@ -23,10 +23,10 @@ with lib;
23 }; 23 };
24 24
25 client-classes = [ 25 client-classes = [
26 { name = "eos-ipxe"; 26 { name = "eostre-ipxe";
27 test = "hexstring(pkt4.mac, ':') == '00:d8:61:79:c5:40' and option[77].hex == 'iPXE'"; 27 test = "hexstring(pkt4.mac, ':') == '00:d8:61:79:c5:40' and option[77].hex == 'iPXE'";
28 next-server = "10.141.0.1"; 28 next-server = "10.141.0.1";
29 boot-file-name = "http://nfsroot.vidhar.yggdrasil/eos/netboot.ipxe"; 29 boot-file-name = "http://nfsroot.vidhar.yggdrasil/eostre/netboot.ipxe";
30 only-if-required = true; 30 only-if-required = true;
31 } 31 }
32 { name = "ipxe"; 32 { name = "ipxe";
@@ -266,21 +266,21 @@ with lib;
266 ) ["x86_64-linux"] 266 ) ["x86_64-linux"]
267 ) ++ [ 267 ) ++ [
268 (let 268 (let
269 eosBuild = (flake.nixosConfigurations.eos.extendModules { 269 eostreBuild = (flake.nixosConfigurations.eostre.extendModules {
270 modules = [ 270 modules = [
271 ({ ... }: { 271 ({ ... }: {
272 config.nfsroot.storeDevice = "10.141.0.1:nix-store"; 272 config.nfsroot.storeDevice = "10.141.0.1:nix-store";
273 config.nfsroot.registrationUrl = "http://nfsroot.vidhar.yggdrasil/eos/registration"; 273 config.nfsroot.registrationUrl = "http://nfsroot.vidhar.yggdrasil/eostre/registration";
274 }) 274 })
275 ]; 275 ];
276 }).config.system.build; 276 }).config.system.build;
277 in builtins.toPath (pkgs.runCommandLocal "eos" {} '' 277 in builtins.toPath (pkgs.runCommandLocal "eostre" {} ''
278 mkdir -p $out/eos 278 mkdir -p $out/eostre
279 install -m 0444 -t $out/eos \ 279 install -m 0444 -t $out/eostre \
280 ${eosBuild.initialRamdisk}/initrd \ 280 ${eostreBuild.initialRamdisk}/initrd \
281 ${eosBuild.kernel}/bzImage \ 281 ${eostreBuild.kernel}/bzImage \
282 ${eosBuild.netbootIpxeScript}/netboot.ipxe \ 282 ${eostreBuild.netbootIpxeScript}/netboot.ipxe \
283 ${pkgs.closureInfo { rootPaths = eosBuild.storeContents; }}/registration 283 ${pkgs.closureInfo { rootPaths = eostreBuild.storeContents; }}/registration
284 '')) 284 ''))
285 ]; 285 ];
286 }; 286 };
diff --git a/hosts/vidhar/samba.nix b/hosts/vidhar/samba.nix
index ffca9c6d..506edaae 100644
--- a/hosts/vidhar/samba.nix
+++ b/hosts/vidhar/samba.nix
@@ -40,10 +40,10 @@
40 writeable = "true"; 40 writeable = "true";
41 path = "/srv/eos"; 41 path = "/srv/eos";
42 }; 42 };
43 home-eos = { 43 home-eostre = {
44 comment = "Home directoriy for %u on PXE booted EOS"; 44 comment = "Home directoriy for %u on PXE booted eostre";
45 path = "/srv/cifs/home-eos/%u"; 45 path = "/srv/cifs/home-eostre/%u";
46 volume = "%u@eos"; 46 volume = "%u@eostre";
47 browseable = true; 47 browseable = true;
48 "read only" = false; 48 "read only" = false;
49 "create mask" = "0700"; 49 "create mask" = "0700";