mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: synchronize, hibernate
This commit is contained in:
parent
6bb963d9ad
commit
a4b63004fb
18 changed files with 48 additions and 110 deletions
|
|
@ -77,7 +77,7 @@ _: let
|
|||
konawall-py.settings = {
|
||||
source = "konachan";
|
||||
tags = [
|
||||
"rating:e"
|
||||
"rating:-e"
|
||||
];
|
||||
};
|
||||
# konawall-py.settings = {
|
||||
|
|
@ -184,7 +184,9 @@ _: let
|
|||
};
|
||||
|
||||
boot = {
|
||||
zfs.requestEncryptionCredentials = true;
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
config.boot.kernelPackages.v4l2loopback.out
|
||||
];
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
@ -193,9 +195,6 @@ _: let
|
|||
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
||||
};
|
||||
kernelModules = ["nct6775" "kvm-amd" "k10temp"];
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback.out
|
||||
];
|
||||
supportedFilesystems = ["ntfs" "zfs"];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@ _: let
|
|||
then "/"
|
||||
else "/${dataset}"
|
||||
) {
|
||||
neededForBoot =
|
||||
if builtins.elem dataset ["home"]
|
||||
then true
|
||||
else false;
|
||||
device = "zpool/${dataset}";
|
||||
fsType = "zfs";
|
||||
options = ["zfsutil"];
|
||||
|
|
@ -34,10 +38,10 @@ _: let
|
|||
};
|
||||
};
|
||||
swap = rec {
|
||||
raw = "/dev/disk/by-partuuid/cba02f4a-a90d-44e3-81a8-46bb4500112e";
|
||||
raw = "/dev/disk/by-id/nvme-CT1000P5PSSD8_22343AC9A481-part2";
|
||||
result = {
|
||||
device = raw;
|
||||
randomEncryption = true;
|
||||
randomEncryption = false; # fix hibernation
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -91,6 +95,8 @@ _: let
|
|||
drives.swap.result
|
||||
];
|
||||
|
||||
powerManagement.enable = true;
|
||||
|
||||
hardware.framework.enableKmod = false;
|
||||
|
||||
boot = {
|
||||
|
|
@ -98,6 +104,10 @@ _: let
|
|||
grub.useOSProber = true;
|
||||
systemd-boot.enable = lib.mkForce false;
|
||||
};
|
||||
zfs = {
|
||||
forceImportRoot = false;
|
||||
allowHibernation = true;
|
||||
};
|
||||
kernelModules = ["cros_ec" "cros_ec_lpcs"];
|
||||
extraModprobeConfig = "options snd_hda_intel power_save=0";
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue