mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
flake.nix: update default NixOS config with home-manager options
This commit is contained in:
parent
877622db77
commit
3d9494d92a
10
flake.nix
10
flake.nix
@ -174,6 +174,16 @@
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
# The global configuration for the home-manager module.
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.sharedModules =
|
||||
lib'.modulesToList (lib'.filesToAttr ./modules/home-manager);
|
||||
home-manager.extraSpecialArgs = {
|
||||
lib = lib';
|
||||
inherit inputs system self;
|
||||
};
|
||||
};
|
||||
|
||||
mkUser = { system ? defaultSystem, extraModules ? [ ] }:
|
||||
|
@ -65,12 +65,6 @@ in {
|
||||
} is not found in the `./users/home-manager` directory.";
|
||||
}];
|
||||
|
||||
# The global configuration for the home-manager module.
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.sharedModules = lib.modulesToList homeManagerModules;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
|
||||
# Mapping each users to the respective user configuration.
|
||||
# Setting users for home-manager.
|
||||
home-manager.users = mapUsers (user: _:
|
||||
|
Loading…
Reference in New Issue
Block a user