diff options
author | Soispha <soispha@vhack.eu> | 2023-08-30 18:41:53 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-30 18:47:33 +0200 |
commit | 439bb9065d23cda2bc476b1cf82ff0ea2141754f (patch) | |
tree | 52e775ab7deefef9f5a79470e90d1ad6b04191a8 /sys/impermanence | |
parent | chore(version): v1.9.1 (diff) | |
download | nixos-config-439bb9065d23cda2bc476b1cf82ff0ea2141754f.tar.gz nixos-config-439bb9065d23cda2bc476b1cf82ff0ea2141754f.zip |
Fix(sys/impermanence): Add `/var/lib/bluetooth` to saved path
Diffstat (limited to '')
-rw-r--r-- | sys/impermanence/default.nix | 18 |
1 files changed, 3 insertions, 15 deletions
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 { |