1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: zpool definition error

This commit is contained in:
oddlama 2022-12-04 20:31:15 +01:00
parent befa4cb74f
commit d7e6ab7071
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 46 additions and 45 deletions

View file

@ -36,7 +36,7 @@ in
evalSelected = names: l.filterAttrs (name: _: l.elem name names) this.toplevel; evalSelected = names: l.filterAttrs (name: _: l.elem name names) this.toplevel;
evalSelectedDrvPaths = names: l.mapAttrs (_: v: v.drvPath) (this.evalSelected names); evalSelectedDrvPaths = names: l.mapAttrs (_: v: v.drvPath) (this.evalSelected names);
metaConfig = { metaConfig = {
name = "divnix/hive"; name = "oddlama/infranix";
inherit (import ./flake.nix) description; inherit (import ./flake.nix) description;
machinesFile = null; machinesFile = null;
allowApplyAll = false; allowApplyAll = false;

View file

@ -3,7 +3,7 @@
networking.hostName = "nom"; networking.hostName = "nom";
deployment = { deployment = {
allowLocalDeployment = true; allowLocalDeployment = true;
targetHost = null; targetHost = "192.168.1.183";
}; };
imports = [cell.nixosConfigurations.nom]; imports = [cell.nixosConfigurations.nom];
}; };

View file

@ -11,7 +11,7 @@
{ {
type = "partition"; type = "partition";
name = "efi"; name = "efi";
start = "0"; start = "2048";
end = "8GiB"; end = "8GiB";
fs-type = "fat32"; fs-type = "fat32";
content = { content = {
@ -38,10 +38,11 @@
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5GXNX1T325329W"; device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5GXNX1T325329W";
content = { content = {
type = "zfs"; type = "zfs";
pool = "zpool"; pool = "rpool";
}; };
}; };
}; };
zpool = {
rpool = { rpool = {
type = "zpool"; type = "zpool";
mode = "mirror"; mode = "mirror";
@ -88,4 +89,5 @@
}; };
}; };
}; };
};
} }

View file

@ -33,7 +33,6 @@
accept-flake-config = true; accept-flake-config = true;
}; };
networking.hostName = "nom";
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
# Select internationalisation properties. # Select internationalisation properties.

View file

@ -81,7 +81,7 @@
}; };
checkAndTransformConfigFor = site: target: out: config: let checkAndTransformConfigFor = site: target: out: config: let
_file = "github:divnix/hive: ./comb/${site}; target: ${target}"; _file = "github:oddlama/infranix: ./nix/${site}; target: ${target}";
locatedConfig = { locatedConfig = {
imports = [config]; imports = [config];
inherit _file; inherit _file;