WIP: bricked desktop

This commit is contained in:
Patrick Großmann 2023-10-10 21:01:12 +02:00
parent ef7388d000
commit 25e9e31a95
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
5 changed files with 10 additions and 8 deletions

View file

@ -10,7 +10,7 @@
../../modules/graphical ../../modules/graphical
../../modules/optional/xserver.nix ../../modules/optional/xserver.nix
../../modules/optional/secureboot.nix #../../modules/optional/secureboot.nix
../../modules/hardware/intel.nix ../../modules/hardware/intel.nix
../../modules/hardware/nintendo.nix ../../modules/hardware/nintendo.nix

View file

@ -12,9 +12,9 @@
type = "table"; type = "table";
format = "gpt"; format = "gpt";
partitions = [ partitions = [
(partEfiBoot "boot" "0%" "1GiB") (partEfiBoot "boot" "0%" "2GiB")
(partSwap "swap" "1GiB" "17GiB") (partSwap "swap" "2GiB" "18GiB")
(partLuksZfs "rpool" "rpool" "17GiB" "100%") (partLuksZfs "rpool" "rpool" "18GiB" "100%")
]; ];
}; };
}; };

View file

@ -1 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMIyksR1mSMNMBurwJTONANGLg/+SUOrbJz0u7G9XUdS root@desktopnix ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9sNwxT/iUNKf2oyb+pZl4lOhA2Yl67orJic/tWESXI

View file

@ -48,7 +48,7 @@
defaultZpoolOptions defaultZpoolOptions
// { // {
datasets = { datasets = {
"save" = unmountable; "safe" = unmountable;
"safe/data" = filesystem "/data"; "safe/data" = filesystem "/data";
}; };
}; };

View file

@ -33,8 +33,10 @@
# to create a link called /run/agenix. Agenix should probably fail in this case, # to create a link called /run/agenix. Agenix should probably fail in this case,
# but doesn't and instead puts the generation link into the existing directory. # but doesn't and instead puts the generation link into the existing directory.
# TODO See https://github.com/ryantm/agenix/pull/187. # TODO See https://github.com/ryantm/agenix/pull/187.
system.activationScripts.removeAgenixLink.text = "[[ ! -L /run/agenix ]] && [[ -d /run/agenix ]] && rm -rf /run/agenix"; system.activationScripts = {
system.activationScripts.agenixNewGeneration.deps = ["removeAgenixLink"]; removeAgenixLink.text = "[[ ! -L /run/agenix ]] && [[ -d /run/agenix ]] && rm -rf /run/agenix";
#agenixNewGeneration.deps = ["removeAgenixLink"];
};
time.timeZone = lib.mkDefault "Europe/Berlin"; time.timeZone = lib.mkDefault "Europe/Berlin";
i18n.defaultLocale = "C.UTF-8"; i18n.defaultLocale = "C.UTF-8";