test
This commit is contained in:
parent
6e6de3b20a
commit
9d62c524de
1 changed files with 6 additions and 1 deletions
|
@ -1,9 +1,15 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
imports = [ ../../common/services/snapper.nix ];
|
imports = [ ../../common/services/snapper.nix ];
|
||||||
|
|
||||||
services.btrfs.autoScrub.enable = true;
|
services.btrfs.autoScrub.enable = true;
|
||||||
services.btrfs.autoScrub.interval = "weekly";
|
services.btrfs.autoScrub.interval = "weekly";
|
||||||
|
|
||||||
|
boot.resumeDevice = "/dev/disk/by-partlabel/ROOT";
|
||||||
|
# boot.kernelParams = [ "resume_offset=[offset]" ];
|
||||||
|
# https://sawyershepherd.org/post/hibernating-to-an-encrypted-swapfile-on-btrfs-with-nixos/
|
||||||
|
|
||||||
disko.devices.disk.nvme0 = {
|
disko.devices.disk.nvme0 = {
|
||||||
device = "/dev/nvme0n1";
|
device = "/dev/nvme0n1";
|
||||||
content = {
|
content = {
|
||||||
|
@ -32,7 +38,6 @@
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "ROOT";
|
name = "ROOT";
|
||||||
settings.preLVM = true;
|
|
||||||
extraOpenArgs = [ "--allow-discards" ];
|
extraOpenArgs = [ "--allow-discards" ];
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
|
|
Loading…
Reference in a new issue