refactor: persist: remove dead code
This commit is contained in:
parent
ec22c128e0
commit
e4bff9b5ef
|
@ -1,8 +0,0 @@
|
||||||
{ config, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.sane.persist;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
sane.persist.byPath = cfg.sys.byPath;
|
|
||||||
}
|
|
|
@ -184,14 +184,6 @@ in
|
||||||
default = {};
|
default = {};
|
||||||
type = dirsSubModule;
|
type = dirsSubModule;
|
||||||
};
|
};
|
||||||
sane.persist.byPath = mkOption {
|
|
||||||
type = types.attrsOf (convertInlineAcl entryAtPath);
|
|
||||||
# XXX: see computed.nix for definition
|
|
||||||
description = ''
|
|
||||||
map of <path> => <path config> for all paths to be persisted.
|
|
||||||
this is computed from the other options, but users can also set it explicitly (useful for overriding)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
sane.persist.stores = mkOption {
|
sane.persist.stores = mkOption {
|
||||||
type = types.attrsOf storeType;
|
type = types.attrsOf storeType;
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -202,7 +194,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./computed.nix
|
|
||||||
./root-on-tmpfs.nix
|
./root-on-tmpfs.nix
|
||||||
./stores
|
./stores
|
||||||
];
|
];
|
||||||
|
@ -243,7 +234,7 @@ in
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
configs = lib.mapAttrsToList cfgFor cfg.byPath;
|
configs = lib.mapAttrsToList cfgFor cfg.sys.byPath;
|
||||||
take = f: { sane.fs = f.sane.fs; };
|
take = f: { sane.fs = f.sane.fs; };
|
||||||
in mkIf cfg.enable (
|
in mkIf cfg.enable (
|
||||||
take (sane-lib.mkTypedMerge take configs)
|
take (sane-lib.mkTypedMerge take configs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user