another-go at, working with disk-o

This commit is contained in:
Serenity-F 2024-09-10 15:14:22 +10:00
parent fa353ff868
commit 5c922a0dc1
3 changed files with 16 additions and 17 deletions

View file

@ -16,24 +16,24 @@
loader = { loader = {
systemd-boot = { systemd-boot = {
enable = true; enable = true;
configurationLimit = 7; configurationLimit = 10;
}; };
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
# efiSysMountPoint = "/boot/efi"; efiSysMountPoint = "/boot/efi";
}; };
}; };
initrd = { initrd = {
systemd.enable = true; systemd.enable = true;
# secrets = { secrets = {
# "crypto_keyfile.bin" = null; "crypto_keyfile.bin" = null;
};
luks = {
devices."luks-DISK_UUID" = {
device = "/dev/disk/by-uuid/DISK_UUID";
keyfile = "/crypto_keyfile.bin";
};
}; };
# luks = {
# devices."luks-DISK_UUID" = {
# device = "/dev/disk/by-uuid/DISK_UUID";
# keyfile = "/crypto_keyfile.bin";
# };
# };
}; };
}; };
@ -66,7 +66,7 @@
gc = { gc = {
automatic = true; automatic = true;
dates = "daily"; dates = "daily";
options = "--delete-older-than 3d"; options = "--delete-older-than 10d";
persistent = true; persistent = true;
}; };
}; };

View file

@ -27,11 +27,11 @@
type = "luks"; type = "luks";
name = "pomegranate"; name = "pomegranate";
# disable settings.keyFile if you want to use interactive password entry # disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive passwordFile = "/tmp/secret.key"; # Interactive
settings = { # settings = {
allowDiscards = true; # allowDiscards = true;
#keyFile = "/tmp/secret.key"; #keyFile = "/tmp/secret.key";
}; # };
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; # additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
content = { content = {

View file

@ -7,8 +7,7 @@
imports = imports =
[ [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
# ./disko-config.sh ./disko-config.nix
# ./disko-config.nix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];