diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-04-02 23:32:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-04-02 23:33:02 -0600 |
| commit | ee0b5f7edfe9fba65f9749f65377c4f519c7fc0a (patch) | |
| tree | 5531ffd8445c642e41f49bbc6333adbf252c1baf /sys/hardware | |
| parent | 399da96059c2b7a8a3ca66896d069d1234f80294 (diff) | |
sys: prepare impermanence declarations in advance of [lustrated]'s transition
Diffstat (limited to '')
| -rw-r--r-- | sys/hardware/bluetooth.nix | 9 | ||||
| -rw-r--r-- | sys/hardware/laptop.nix | 4 | ||||
| -rw-r--r-- | sys/hardware/thinkpad.nix | 13 |
3 files changed, 25 insertions, 1 deletions
diff --git a/sys/hardware/bluetooth.nix b/sys/hardware/bluetooth.nix index 63e3f0c..30d286f 100644 --- a/sys/hardware/bluetooth.nix +++ b/sys/hardware/bluetooth.nix @@ -15,5 +15,14 @@ in { enable = true; powerOnBoot = mkDefault false; }; + + local.boot.impermanence.directories = [ + { + directory = "/var/lib/bluetooth"; + user = "root"; + group = "root"; + mode = "u=rwx,g=,o="; + } + ]; }; } diff --git a/sys/hardware/laptop.nix b/sys/hardware/laptop.nix index 3b5b772..3123960 100644 --- a/sys/hardware/laptop.nix +++ b/sys/hardware/laptop.nix @@ -11,6 +11,10 @@ in { }; config = mkIf cfg.enable { + local.boot.impermanence.directories = [ + "/var/lib/upower" + ]; + services = { tlp.enable = true; upower.enable = true; diff --git a/sys/hardware/thinkpad.nix b/sys/hardware/thinkpad.nix index ab18694..72296ed 100644 --- a/sys/hardware/thinkpad.nix +++ b/sys/hardware/thinkpad.nix @@ -30,7 +30,18 @@ in { hardware.firmware = [pkgs.sof-firmware]; - local.hardware.laptop.enable = true; + local = { + boot.impermanence.directories = [ + { + directory = "/var/lib/fprint"; + user = "root"; + group = "root"; + mode = "u=rwx,g=,o="; + } + ]; + + hardware.laptop.enable = true; + }; services = { fprintd.enable = true; |
