fix(desktop): issues

nixos
Moritz Böhme 2023-12-10 17:08:27 +01:00
parent 1b22c1345f
commit 072d016f46
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
5 changed files with 10 additions and 26 deletions

View File

@ -53,9 +53,11 @@
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
# BOOT # BOOT
supportedFilesystems = [ "zfs" "btrfs" "ntfs" ]; supportedFilesystems = [ "zfs" "btrfs" "ntfs" ];
loader.systemd-boot.enable = true; loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelModules = [ "lm92" "drivetemp" ]; kernelModules = [ "lm92" "drivetemp" ];
}; };

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { lib, ... }:
{ {
# needed for zfs pool # needed for zfs pool
@ -83,26 +83,9 @@
}; };
}; };
# rollback to blank # rollback to blank
boot.initrd.systemd.services.rollback = { boot.initrd.postDeviceCommands = lib.mkAfter ''
description = "Rollback ZFS datasets to a pristine state";
wantedBy = [
"initrd.target"
];
after = [
"zfs-import-zroot.service"
];
before = [
"sysroot.mount"
];
path = with pkgs; [
zfs
];
unitConfig.DefaultDependencies = "no";
serviceConfig.Type = "oneshot";
script = ''
zfs rollback -r zroot/encrypted/root@blank && echo "rollback complete" zfs rollback -r zroot/encrypted/root@blank && echo "rollback complete"
''; '';
};
fileSystems."/persist".neededForBoot = true; fileSystems."/persist".neededForBoot = true;
# HACK: to fix issue of agenix running before impermanence # HACK: to fix issue of agenix running before impermanence
age.identityPaths = [ age.identityPaths = [

View File

@ -11,7 +11,6 @@
initrd = { initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
kernelModules = [ ]; kernelModules = [ ];
luks.devices."enc".device = "/dev/disk/by-uuid/30025a9f-44cf-4074-8ae2-d4925efd67dd";
}; };
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ]; extraModulePackages = [ ];

View File

@ -16,7 +16,7 @@ in
yubikey = { yubikey = {
enable = mkDefault true; enable = mkDefault true;
luksSupport = { luksSupport = {
enable = mkDefault true; enable = mkDefault false;
devices = mkDefault [ "enc" ]; devices = mkDefault [ "enc" ];
}; };
}; };

View File

@ -111,7 +111,7 @@ in
} }
misc { misc {
vrr = 1 vrr = 0
mouse_move_enables_dpms = true mouse_move_enables_dpms = true
key_press_enables_dpms = true key_press_enables_dpms = true
force_default_wallpaper = 0 force_default_wallpaper = 0