mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
24 lines
573 B
Nix
24 lines
573 B
Nix
{ config, pkgs, lib, inputs, ... }:
|
|
let
|
|
cfg = config.luj.hmgr;
|
|
in
|
|
with lib;
|
|
{
|
|
options.luj.hmgr = mkOption {
|
|
type = with types; attrsOf anything;
|
|
};
|
|
|
|
config = {
|
|
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.11";
|
|
} // value)
|
|
cfg;
|
|
};
|
|
}
|
|
|