summaryrefslogtreecommitdiff
path: root/impermanence.nix
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-10-19 17:45:49 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-10-19 17:46:34 +0200
commit671e66917b09c56ca9e717b300b874ed71b189ae (patch)
treec81a03308a7fa7828d49fc29d49f76bfec2e86ea /impermanence.nix
parent421733993cc9f0ce1ec4306cd0659fb5fe655846 (diff)
downloadoden-671e66917b09c56ca9e717b300b874ed71b189ae.tar.gz
nixfmt
Diffstat (limited to 'impermanence.nix')
-rw-r--r--impermanence.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/impermanence.nix b/impermanence.nix
index d3dae53..3fe347a 100644
--- a/impermanence.nix
+++ b/impermanence.nix
@@ -6,13 +6,16 @@ let
cfg = config.oden.persist;
in
{
- options.oden.persist = with lib; with types; {
- directories = mkOption {
- type = listOf str;
- default = [];
- description = "Directories that should be persisted";
+ options.oden.persist =
+ with lib;
+ with types;
+ {
+ directories = mkOption {
+ type = listOf str;
+ default = [ ];
+ description = "Directories that should be persisted";
+ };
};
- };
config = {
boot.initrd.postResumeCommands = lib.mkAfter ''
mkdir /btrfs_tmp