working updates
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -22,7 +22,6 @@
|
|||||||
options.user = lib.mkOption {
|
options.user = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "The username for the Home Manager configuration.";
|
description = "The username for the Home Manager configuration.";
|
||||||
# default = "john";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -49,16 +48,18 @@
|
|||||||
|
|
||||||
# Export the function so other flakes can create configurations for any user
|
# Export the function so other flakes can create configurations for any user
|
||||||
lib = {
|
lib = {
|
||||||
mkHomeConfiguration = mkHomeConfiguration;
|
mkHomeConfiguration = username: mkHomeConfiguration username;
|
||||||
mkHomeConfigurationForUser = username: mkHomeConfiguration username;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Export modules for reuse in other flakes
|
# Export modules for reuse in other flakes
|
||||||
homeManagerModules = {
|
homeManagerModules = {
|
||||||
default = { ... }: {
|
default = ./home.nix;
|
||||||
inherit pkgs;
|
options-module = optionsModule;
|
||||||
modules = [ ./home.nix optionsModule ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Export packages if you have any custom ones
|
||||||
|
packages.${system} = {
|
||||||
|
# Add any custom packages here
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user