Preventing auto import generated/users
This commit is contained in:
+1
-10
@@ -132,40 +132,31 @@ The Nix flake definition for Droidnix.
|
||||
|
||||
let
|
||||
hostname = "traveldroid";
|
||||
|
||||
modulesPath = "${flakeRoot}/generated/modules/${hostname}";
|
||||
usersPath = "${flakeRoot}/generated/users";
|
||||
|
||||
hostModules = import-tree modulesPath;
|
||||
globalUsers = import-tree usersPath;
|
||||
|
||||
allModules = hostModules.imports ++ globalUsers.imports;
|
||||
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Core system config
|
||||
#################################
|
||||
|
||||
networking.hostName = hostname;
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
#################################
|
||||
# Imports
|
||||
#################################
|
||||
|
||||
imports =
|
||||
[ ../../../generated/users/henrov.nix
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
]
|
||||
++ allModules
|
||||
++ hostModules
|
||||
++ [ home-manager.nixosModules.home-manager ]; # import HM last
|
||||
|
||||
#################################
|
||||
# Home Manager integration
|
||||
#################################
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user