From ee0b5f7edfe9fba65f9749f65377c4f519c7fc0a Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 2 Apr 2026 23:32:28 -0600 Subject: sys: prepare impermanence declarations in advance of [lustrated]'s transition --- sys/hardware/bluetooth.nix | 9 +++++++++ sys/hardware/laptop.nix | 4 ++++ sys/hardware/thinkpad.nix | 13 ++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) (limited to 'sys/hardware') 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; -- cgit v1.2.3