1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +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;
evalSelectedDrvPaths = names: l.mapAttrs (_: v: v.drvPath) (this.evalSelected names);
metaConfig = {
name = "divnix/hive";
name = "oddlama/infranix";
inherit (import ./flake.nix) description;
machinesFile = null;
allowApplyAll = false;

View file

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

View file

@ -11,7 +11,7 @@
{
type = "partition";
name = "efi";
start = "0";
start = "2048";
end = "8GiB";
fs-type = "fat32";
content = {
@ -38,51 +38,53 @@
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5GXNX1T325329W";
content = {
type = "zfs";
pool = "zpool";
pool = "rpool";
};
};
};
rpool = {
type = "zpool";
mode = "mirror";
rootFsOptions = {
compression = "zstd";
acltype = "posix";
atime = "off";
xattr = "sa";
dnodesize = "auto";
mountpoint = "none";
canmount = "off";
devices = "off";
encryption = "aes-256-gcm";
keyformat = "passphrase";
keylocation = "prompt";
"autobackup:snap" = "true";
"autobackup:home" = "true";
};
options = {
ashift = "12";
bootfs = "rpool/root/nixos";
};
datasets = {
"root" = {
zfs_type = "filesystem";
zpool = {
rpool = {
type = "zpool";
mode = "mirror";
rootFsOptions = {
compression = "zstd";
acltype = "posix";
atime = "off";
xattr = "sa";
dnodesize = "auto";
mountpoint = "none";
canmount = "off";
devices = "off";
encryption = "aes-256-gcm";
keyformat = "passphrase";
keylocation = "prompt";
"autobackup:snap" = "true";
"autobackup:home" = "true";
};
"root/nixos" = {
zfs_type = "filesystem";
options = {
canmount = "on";
mountpoint = "/";
options = {
ashift = "12";
bootfs = "rpool/root/nixos";
};
datasets = {
"root" = {
zfs_type = "filesystem";
};
};
"home" = {
zfs_type = "filesystem";
};
"home/root" = {
zfs_type = "filesystem";
options = {
canmount = "on";
mountpoint = "/root";
"root/nixos" = {
zfs_type = "filesystem";
options = {
canmount = "on";
mountpoint = "/";
};
};
"home" = {
zfs_type = "filesystem";
};
"home/root" = {
zfs_type = "filesystem";
options = {
canmount = "on";
mountpoint = "/root";
};
};
};
};

View file

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

View file

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