This commit is contained in:
cnst
2024-10-17 20:06:17 +02:00
parent f70061cc24
commit ec57cb7599
196 changed files with 1150 additions and 1271 deletions

52
users/default.nix Normal file
View File

@@ -0,0 +1,52 @@
{
self,
inputs,
...
}: let
extraSpecialArgs = {inherit inputs self;};
sharedImports = [
# ./etc
"${self}/.scripts"
self.nixosModules.home
self.nixosModules.options
];
homeImports = {
"cnst@cnix" =
sharedImports
++ [
./cnst
];
"cnst@cnixpad" =
sharedImports
++ [
./cnst
];
"toothpick@toothpc" =
sharedImports
++ [
./toothpick
];
};
inherit (inputs.hm.lib) homeManagerConfiguration;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
makeHomeConfiguration = modules:
homeManagerConfiguration {
inherit pkgs extraSpecialArgs modules;
};
in {
_module.args = {inherit homeImports;};
flake = {
homeConfigurations = builtins.listToAttrs (map
(name: {
name = builtins.replaceStrings ["@"] ["_"] name;
value = makeHomeConfiguration homeImports.${name};
})
(builtins.attrNames homeImports));
};
}