feat: activate impermanence on gallifrey

This commit is contained in:
Luj 2024-09-30 10:42:30 +02:00
parent cd96488c46
commit 1ef9dd84c9
4 changed files with 60 additions and 15 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
inputs,
...
}:
let
cfg = config.luj.hmgr;
in
@ -10,16 +15,20 @@ with lib;
config = {
home-manager.useGlobalPkgs = true;
home-manager.users =
lib.mapAttrs
(name: value:
{
imports = with builtins; (map (x: ../../home-manager-modules + "/${x}/default.nix") (attrNames (readDir ../../home-manager-modules)));
home.username = "${name}";
home.homeDirectory = "/home/${name}";
home.stateVersion = "21.05";
} // value)
cfg;
home-manager.users = lib.mapAttrs (
name: value:
{
imports =
with builtins;
(map (x: ../../home-manager-modules + "/${x}/default.nix") (
attrNames (readDir ../../home-manager-modules)
))
++ [ "${inputs.impermanence}/home-manager.nix" ];
home.username = "${name}";
home.homeDirectory = "/home/${name}";
home.stateVersion = "21.05";
}
// value
) cfg;
};
}
}