mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 16:46:34 +01:00
hetzner raid1
This commit is contained in:
parent
23756b5276
commit
42b4d3fa48
2 changed files with 85 additions and 37 deletions
48
flake.lock
48
flake.lock
|
@ -79,11 +79,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1707192239,
|
"lastModified": 1707278626,
|
||||||
"narHash": "sha256-OW7hWDLQfuV1yy5PERotp+kagQ0D6371lSPP1wqp7EQ=",
|
"narHash": "sha256-rUyhz5Bafu6pwVrQZ/LV29nUFEzdTm+0fJQG+emYEng=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "e689b7bb4cb08c7cf8c4358b3cb6f36061b7b9e9",
|
"rev": "352a387143af3b32d9f0529588eb615a7c77baf0",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -275,11 +275,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707082092,
|
"lastModified": 1707226874,
|
||||||
"narHash": "sha256-icyIxbBXl1iG8gvF/gjGI5N4Phpoo1vFcQxmUz2DsNA=",
|
"narHash": "sha256-uo3oGHc/oLbcS6tDlm+Z130tQNRX2ufs9r+kGRTx0Ng=",
|
||||||
"owner": "Jovian-Experiments",
|
"owner": "Jovian-Experiments",
|
||||||
"repo": "Jovian-NixOS",
|
"repo": "Jovian-NixOS",
|
||||||
"rev": "3a9a168c04218418a6321e157b0f7a31a9ca342c",
|
"rev": "8f355736d9449a6650418f8e70f8dacf652401a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -513,11 +513,11 @@
|
||||||
"openrgb": {
|
"openrgb": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707082375,
|
"lastModified": 1707316147,
|
||||||
"narHash": "sha256-8QxUKK6llRE6PwyCRd+gl4IzizRJJspyu8upK0MgnaM=",
|
"narHash": "sha256-kLOCikZ9ZHrWJEHiP1+tyJo7Io9In5Mt/n0xoRc45lM=",
|
||||||
"owner": "CalcProgrammer1",
|
"owner": "CalcProgrammer1",
|
||||||
"repo": "OpenRGB",
|
"repo": "OpenRGB",
|
||||||
"rev": "350863e3b85d6a83ec78af2bc2e384e24cbc7d28",
|
"rev": "cc376b71c81094b2083448ede08644125205362e",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -573,11 +573,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1706424699,
|
"lastModified": 1707297608,
|
||||||
"narHash": "sha256-Q3RBuOpZNH2eFA1e+IHgZLAOqDD9SKhJ/sszrL8bQD4=",
|
"narHash": "sha256-ADjo/5VySGlvtCW3qR+vdFF4xM9kJFlRDqcC9ZGI8EA=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf",
|
"rev": "0db2e67ee49910adfa13010e7f012149660af7f0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -639,6 +639,7 @@
|
||||||
"openrgb": "openrgb",
|
"openrgb": "openrgb",
|
||||||
"pre-commit-hooks": "pre-commit-hooks_2",
|
"pre-commit-hooks": "pre-commit-hooks_2",
|
||||||
"prismlauncher": "prismlauncher",
|
"prismlauncher": "prismlauncher",
|
||||||
|
"srvos": "srvos",
|
||||||
"tela-icon-theme": "tela-icon-theme"
|
"tela-icon-theme": "tela-icon-theme"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -668,6 +669,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"srvos": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": [
|
||||||
|
"flake-parts"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1707160670,
|
||||||
|
"narHash": "sha256-svt/yQB8l/edU9yhYB78lIGKiaO7mXzUQvu/uJLZAVs=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "srvos",
|
||||||
|
"rev": "977371a151fc3c96d6fac923b3032d07000e9490",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "srvos",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
|
@ -38,41 +38,49 @@
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
one = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/nvme0n1";
|
device = "/dev/nvme0n1";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
boot = {
|
||||||
size = "1M";
|
size = "500M";
|
||||||
type = "EF02"; # for grub MBR
|
type = "EF00";
|
||||||
};
|
|
||||||
mdadm = {
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "raid0";
|
name = "boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
primary = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "pool";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
vdc = {
|
two = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/nvme1n1";
|
device = "/dev/nvme1n1";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
boot = {
|
boot = {
|
||||||
size = "1M";
|
size = "500M";
|
||||||
type = "EF02"; # for grub MBR
|
type = "EF00";
|
||||||
};
|
|
||||||
mdadm = {
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
content = {
|
||||||
type = "mdraid";
|
type = "mdraid";
|
||||||
name = "raid0";
|
name = "boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
primary = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "pool";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -80,19 +88,35 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mdadm = {
|
mdadm = {
|
||||||
raid0 = {
|
boot = {
|
||||||
type = "mdadm";
|
type = "mdadm";
|
||||||
level = 0;
|
level = 1;
|
||||||
|
metadata = "1.0";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "filesystem";
|
||||||
partitions = {
|
format = "vfat";
|
||||||
primary = {
|
mountpoint = "/boot";
|
||||||
size = "100%";
|
};
|
||||||
content = {
|
};
|
||||||
type = "filesystem";
|
};
|
||||||
format = "ext4";
|
lvm_vg = {
|
||||||
mountpoint = "/";
|
pool = {
|
||||||
};
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
root = {
|
||||||
|
size = "95%FREE";
|
||||||
|
lvm_type = "raid1";
|
||||||
|
extraArgs = [
|
||||||
|
"--raidintegrity"
|
||||||
|
"y"
|
||||||
|
];
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
mountOptions = [
|
||||||
|
"defaults"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue