vps-arm-2024-11-19-12-19-03

This commit is contained in:
Alexander Szczepanski
2024-11-19 12:19:03 +01:00
parent d2dae7ffba
commit 6da6ab8d66
9 changed files with 65 additions and 368 deletions

View File

@ -92,7 +92,7 @@ in {
tmp.useTmpfs = false;
supportedFilesystems = ["btrfs"];
kernelPackages = pkgs.linuxPackages_cachyos-rc;
kernelParams = [ "clearcpuid=514" ];
kernelParams = ["clearcpuid=514"];
kernelModules = ["nct6775"];
extraModulePackages = with pkgs.linuxPackages_cachyos-rc; [ryzen-smu];
initrd = {

View File

@ -29,7 +29,7 @@
defaultSopsFile = ../../secrets.yaml;
validateSopsFiles = true;
age = {
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
keyFile = "/var/lib/sops-nix/key.txt";
generateKey = true;
};
@ -267,16 +267,17 @@
};
systemd = {
mounts = [{
requires = [ "mnt-disk1.mount" "mnt-disk2.mount" "mnt-disk3.mount" ];
after = [ "mnt-disk1.mount" "mnt-disk2.mount" "mnt-disk3.mount" ];
what = "/mnt/disk1:/mnt/disk2:/mnt/disk3";
where = "/mnt/storage";
type = "fuse.mergerfs";
options =
"defaults,allow_other,use_ino,fsname=mergerfs,minfreespace=50G,func.getattr=newest,noforget";
wantedBy = [ "multi-user.target" ];
}];
mounts = [
{
requires = ["mnt-disk1.mount" "mnt-disk2.mount" "mnt-disk3.mount"];
after = ["mnt-disk1.mount" "mnt-disk2.mount" "mnt-disk3.mount"];
what = "/mnt/disk1:/mnt/disk2:/mnt/disk3";
where = "/mnt/storage";
type = "fuse.mergerfs";
options = "defaults,allow_other,use_ino,fsname=mergerfs,minfreespace=50G,func.getattr=newest,noforget";
wantedBy = ["multi-user.target"];
}
];
};
system.stateVersion = "24.05";

View File

@ -26,25 +26,25 @@
"/mnt/disk1" = {
device = "/dev/disk/by-uuid/3c4b5d00-43c0-48be-81b8-c2b3977e015b";
fsType = "ext4";
options = [ "nofail" "x-systemd.automount" ];
options = ["nofail" "x-systemd.automount"];
};
"/mnt/disk2" = {
device = "/dev/disk/by-uuid/98a75e01-fa80-469e-820c-1e1e275937b8";
fsType = "ext4";
options = [ "nofail" "x-systemd.automount" ];
options = ["nofail" "x-systemd.automount"];
};
"/mnt/disk3" = {
device = "/dev/disk/by-uuid/0301db98-264f-4b18-9423-15691063f73d";
fsType = "ext4";
options = [ "nofail" "x-systemd.automount" ];
options = ["nofail" "x-systemd.automount"];
};
"/mnt/parity" = {
device = "/dev/disk/by-uuid/6cce037c-d2d4-4940-bb69-6d2b84fd41aa";
fsType = "ext4";
options = [ "nofail" "x-systemd.automount" ];
options = ["nofail" "x-systemd.automount"];
};
"/boot" = {