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

@ -19,7 +19,7 @@
outputs = { self, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }@inputs:
let
utils = import ./utils.nix { inherit nixpkgs home-manager inputs; };
pkgs = import nixpkgs {};
pkgs = import nixpkgs { };
in
with utils;
{
@ -31,12 +31,6 @@
(builtins.attrNames (builtins.readDir ./modules)));
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;
};
config = {
home-manager.users =
lib.mapAttrs
(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.homeDirectory = "/home/${name}";
home.stateVersion = "21.11";
@ -23,9 +22,3 @@ with lib;
};
}