modules/persist: lint
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
|
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
|
||||||
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
|
# https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
|
||||||
# https://github.com/nix-community/impermanence
|
# https://github.com/nix-community/impermanence
|
||||||
{ config, lib, pkgs, utils, sane-lib, ... }:
|
{ config, lib, sane-lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
@@ -164,7 +164,7 @@ let
|
|||||||
dirToAttrs = dir: {
|
dirToAttrs = dir: {
|
||||||
"${dir.path}" = builtins.removeAttrs dir ["path"];
|
"${dir.path}" = builtins.removeAttrs dir ["path"];
|
||||||
};
|
};
|
||||||
store-names = attrNames cfg.stores;
|
# store-names = attrNames cfg.stores;
|
||||||
# :: (store -> entry -> AttrSet) -> [AttrSet]
|
# :: (store -> entry -> AttrSet) -> [AttrSet]
|
||||||
# applyToAllStores = f: lib.concatMap
|
# applyToAllStores = f: lib.concatMap
|
||||||
# (store: map (f store) config.byStore."${store}")
|
# (store: map (f store) config.byStore."${store}")
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, sane-lib, utils, ... }:
|
{ config, lib, pkgs, sane-lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
persist-base = "/nix/persist";
|
persist-base = "/nix/persist";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, sane-lib, utils, ... }:
|
{ config, lib, pkgs, sane-lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
persist-base = "/nix/persist";
|
persist-base = "/nix/persist";
|
||||||
|
Reference in New Issue
Block a user