Move server to persistence, still have stuff to fix
This commit is contained in:
parent
ce6ffd9ee7
commit
cc68f883ba
35 changed files with 293 additions and 235 deletions
|
@ -1,11 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_hardened;
|
||||
initrd.systemd.services.root-reset.enable = lib.mkForce false;
|
||||
swraid = {
|
||||
enable = true;
|
||||
mdadmConf = "MAILADDR contact@${config.domains.p2}";
|
||||
};
|
||||
boot.swraid = {
|
||||
enable = true;
|
||||
mdadmConf = "MAILADDR contact@${config.domains.p2}";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,13 +14,12 @@
|
|||
hostId = "38ba3f57";
|
||||
};
|
||||
|
||||
environment.persistence."/persist".enable = lib.mkForce false;
|
||||
|
||||
system = {
|
||||
desktop.enable = false;
|
||||
server.enable = true;
|
||||
webserver.enable = true;
|
||||
fileserver.enable = true;
|
||||
socials.enable = true;
|
||||
socialserver.enable = true;
|
||||
wireless.enable = false;
|
||||
wireguard.server.enable = true;
|
||||
stateVersion = "24.05";
|
||||
|
|
|
@ -4,22 +4,23 @@
|
|||
"/" = {
|
||||
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@" ];
|
||||
options = [ "subvol=root" ];
|
||||
};
|
||||
"/home" = {
|
||||
"/prev" = {
|
||||
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@home" ];
|
||||
options = [ "subvol=prev" ];
|
||||
};
|
||||
"/persist" = {
|
||||
device = "/dev/disk/by-uuid/acf95700-8669-45c7-9a72-bf3215b3c325";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [ "subvol=persist" "compress=zstd" ];
|
||||
};
|
||||
"/nix" = {
|
||||
device = "/dev/disk/by-uuid/b8b7ed47-c98c-4a49-af01-b2832dde1287";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@nix" ];
|
||||
};
|
||||
"/var" = {
|
||||
device = "/dev/disk/by-uuid/acf95700-8669-45c7-9a72-bf3215b3c325";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@var" ];
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/CD94-1D3F";
|
||||
|
@ -28,23 +29,12 @@
|
|||
};
|
||||
|
||||
# Subvols and bindmounts
|
||||
"/persist" = {
|
||||
device = "/dev/disk/by-uuid/acf95700-8669-45c7-9a72-bf3215b3c325";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=persist" "compress=zstd" ];
|
||||
};
|
||||
"/export/KittyNFS" = {
|
||||
depends = [ "/persist" ];
|
||||
device = "/persist/export/KittyNFS";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
"/srv/minecraft" = {
|
||||
depends = [ "/persist" ];
|
||||
device = "/persist/srv/minecraft";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue