mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +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:
|
outputs = { self, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }@inputs:
|
||||||
let
|
let
|
||||||
utils = import ./utils.nix { inherit nixpkgs home-manager inputs; };
|
utils = import ./utils.nix { inherit nixpkgs home-manager inputs; };
|
||||||
pkgs = import nixpkgs {};
|
pkgs = import nixpkgs { };
|
||||||
in
|
in
|
||||||
with utils;
|
with utils;
|
||||||
{
|
{
|
||||||
|
@ -31,12 +31,6 @@
|
||||||
(builtins.attrNames (builtins.readDir ./modules)));
|
(builtins.attrNames (builtins.readDir ./modules)));
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue