mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
Improved hmgr
This commit is contained in:
parent
254d8b90dd
commit
d112fc7141
2 changed files with 2 additions and 15 deletions
|
@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue