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:
parent
befa4cb74f
commit
d7e6ab7071
5 changed files with 46 additions and 45 deletions
|
@ -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;
|
||||||
|
|
|
@ -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];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue