returned to same error as before attempting impermanence

This commit is contained in:
2025-04-27 15:20:27 -05:00
parent 118186e48c
commit 52429b2544
3 changed files with 16 additions and 12 deletions
+1
View File
@@ -99,6 +99,7 @@ in
}; };
networking.hostName = meta.hostname; networking.hostName = meta.hostname;
networking.hostId = meta.hostId;
networking.interfaces.eth0.ipv4.addresses = [ networking.interfaces.eth0.ipv4.addresses = [
{ {
+5 -8
View File
@@ -1,23 +1,21 @@
{ disks ? [ "/dev/nvme0n1" ], ... }:
{ {
disko.devices = { disko.devices = {
disk = { disk = {
x = { x = {
device = builtins.elemAt disks 0; device = "/dev/nvme0n1";
type = "disk"; type = "disk";
content = { content = {
type = "table"; type = "gpt";
format = "gpt";
partitions = { partitions = {
# boot # boot
ESP = { ESP = {
start = "1MiB"; size = "64M";
end = "500MiB"; type = "EF00";
bootable = true;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
}; };
}; };
# root # root
@@ -35,7 +33,6 @@
zpool = { zpool = {
zroot = { zroot = {
type = "zpool"; type = "zpool";
mode = "mirror";
options.cachefile = "none"; options.cachefile = "none";
rootFsOptions = { rootFsOptions = {
compression = "zstd"; compression = "zstd";
+10 -4
View File
@@ -22,14 +22,20 @@
outputs = { self, nixpkgs, nixvim, home-manager, disko, sops-nix, quasiSecrets }@inputs: outputs = { self, nixpkgs, nixvim, home-manager, disko, sops-nix, quasiSecrets }@inputs:
let let
nodes = [ nodes = [
"nixos-homelab-00" {
name = "nixos-homelab-00";
hostId = "3884D2F1";
}
]; ];
in { in {
nixosConfigurations = builtins.listToAttrs (map (name: { nixosConfigurations = builtins.listToAttrs (map (node: {
name = name; name = node.name;
value = nixpkgs.lib.nixosSystem { value = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
meta = { hostname = name; }; meta = {
hostname = node.name;
hostId = node.hostId;
};
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [