From 439bb9065d23cda2bc476b1cf82ff0ea2141754f Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 30 Aug 2023 18:41:53 +0200 Subject: Fix(sys/impermanence): Add `/var/lib/bluetooth` to saved path --- sys/impermanence/default.nix | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'sys/impermanence/default.nix') diff --git a/sys/impermanence/default.nix b/sys/impermanence/default.nix index a9be951a..505fbb6b 100644 --- a/sys/impermanence/default.nix +++ b/sys/impermanence/default.nix @@ -4,29 +4,17 @@ ... }: let cfg = config.soispha.impermanence; - networkmanager = - if config.networking.networkmanager.enable - then [ - "/etc/NetworkManager" # store the networkmanager configs - ] - else []; - secureboot = - if config.boot.lanzaboote.enable - then [ - "/etc/secureboot" - ] - else []; directories = [ "/etc/nixos" "/var/log" # TODO: the following entries need to be checked - #"/var/lib/bluetooth" #"/var/lib/nixos" #"/var/lib/systemd/coredump" ] - ++ networkmanager - ++ secureboot; + ++ lib.optional config.networking.networkmanager.enable "/etc/NetworkManager" + ++ lib.optional config.boot.lanzaboote.enable "/etc/secureboot" + ++ lib.optional config.hardware.bluetooth.enable "/var/lib/bluetooth"; in { options.soispha.impermanence = { enable = lib.mkOption { -- cgit 1.4.1