use regular paths for profiles and suites and stuff instead of the horrible mess of attrsets i was generating
This commit is contained in:
parent
530f517d22
commit
b9d92a9dc4
10 changed files with 181 additions and 200 deletions
15
flake.nix
15
flake.nix
|
@ -6,19 +6,18 @@
|
|||
...
|
||||
} @ inputs: let
|
||||
mylib = import ./lib nixpkgs.lib;
|
||||
systemProfiles = mylib.loadTree2 ./sys/profiles;
|
||||
homeProfiles = mylib.loadTreeInf ./home/profiles;
|
||||
homeSuites = mylib.loadBranch ./home/suites;
|
||||
vars = builtins.mapAttrs (_: v: import v) (mylib.loadBranch ./vars);
|
||||
systemProfiles = ./sys/profiles;
|
||||
homeProfiles = ./home/profiles;
|
||||
homeSuites = ./home/suites;
|
||||
vars = import ./vars;
|
||||
in
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux"];
|
||||
|
||||
flake._mylib = mylib; # for debugging :3
|
||||
flake._vars = vars; # for debugging :3
|
||||
flake.nixosConfigurations = mylib.loadConfigurations ./sys/machines {
|
||||
flake.nixosConfigurations = mylib.loadConfigurations ./sys/machines (hostname: {
|
||||
inherit inputs self systemProfiles homeProfiles homeSuites vars;
|
||||
};
|
||||
hostVars = ./vars/${hostname};
|
||||
});
|
||||
|
||||
perSystem = {pkgs, ...}: {
|
||||
imports = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue