Improved hmgr

This commit is contained in:
Julien Malka 2021-12-16 17:17:30 +01:00
parent 254d8b90dd
commit d112fc7141
2 changed files with 2 additions and 15 deletions

View file

@ -32,11 +32,5 @@
nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine name value self.nixosModules)) (importConfig ./machines); nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine name value self.nixosModules)) (importConfig ./machines);
#legacyPackages."x86_64-linux"."mosh" = import ./packages/mosh/default.nix;
}; };
} }

View file

@ -8,13 +8,12 @@ with lib;
type = with types; attrsOf anything; type = with types; attrsOf anything;
}; };
config = { config = {
home-manager.users = home-manager.users =
lib.mapAttrs lib.mapAttrs
(name: value: (name: value:
{ {
imports = [ ../../home-manager-modules/git/default.nix ../../home-manager-modules/neovim/default.nix ]; imports = with builtins; map (x: ../../home-manager-modules + "/${x}/default.nix") (attrNames (readDir ../../home-manager-modules));
home.username = "${name}"; home.username = "${name}";
home.homeDirectory = "/home/${name}"; home.homeDirectory = "/home/${name}";
home.stateVersion = "21.11"; home.stateVersion = "21.11";
@ -23,9 +22,3 @@ with lib;
}; };
} }