aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/impermanence/default.nix18
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 {