summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-30 21:18:01 +0200
committersils <sils@sils.li>2023-06-30 21:18:01 +0200
commit94c3f867553cb144ed2c46fd8a463b6687653d3a (patch)
tree60725054666dcefe66481e0ac81ae12e866194df /hosts
parentFeat(sys/services): Disable flatpak as I don't need it anymore (diff)
downloadnix-config-94c3f867553cb144ed2c46fd8a463b6687653d3a.zip
Feat(host/thinklappi): Add hibernation
Diffstat (limited to 'hosts')
-rw-r--r--hosts/thinklappi/basesystem.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/hosts/thinklappi/basesystem.nix b/hosts/thinklappi/basesystem.nix
index 35fd908..cbcffc0 100644
--- a/hosts/thinklappi/basesystem.nix
+++ b/hosts/thinklappi/basesystem.nix
@@ -23,6 +23,8 @@
configurationLimit = 3;
pkiBundle = "/etc/secureboot";
};
+ resumeDevice = "/dev/disk/by-uuid/68da1329-f5ea-4f2c-a38e-faffaaaa6b5a";
+ kernelParams = ["resume_offset=369403136"];
};
fileSystems = {
@@ -56,6 +58,11 @@
fsType = "btrfs";
options = ["subvol=srv" "compress-force=zstd"];
};
+ "/swap" = {
+ device = "/dev/disk/by-label/nixos-root";
+ fsType = "btrfs";
+ options = ["subvol=swap" "noatime"];
+ };
"/home" = {
device = "/dev/disk/by-label/nixos-root";
fsType = "btrfs";
@@ -72,7 +79,11 @@
};
};
- swapDevices = [];
+ swapDevices = [
+ {
+ device = "/swap/swapfile";
+ }
+ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's