cleanup
This commit is contained in:
parent
b1a2c5a905
commit
40b0d84f53
36 changed files with 16 additions and 542 deletions
22
flake.nix
22
flake.nix
|
@ -5,21 +5,29 @@
|
|||
nixpkgs,
|
||||
...
|
||||
} @ inputs: let
|
||||
mylib = import ./lib nixpkgs.lib;
|
||||
systemProfiles = ./sys/profiles;
|
||||
homeProfiles = ./home/profiles;
|
||||
homeSuites = ./home/suites;
|
||||
vars = import ./vars;
|
||||
l = nixpkgs.lib;
|
||||
b = builtins;
|
||||
in
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux"];
|
||||
|
||||
flake.nixosConfigurations = mylib.loadConfigurations ./sys/machines (hostname: {
|
||||
inherit inputs self systemProfiles homeProfiles homeSuites vars mylib;
|
||||
hostVars = ./vars/${hostname};
|
||||
});
|
||||
|
||||
flake._mylib = mylib;
|
||||
flake.nixosConfigurations =
|
||||
b.readDir ./sys/machines
|
||||
|> b.mapAttrs (hostname: _:
|
||||
l.nixosSystem {
|
||||
modules = [
|
||||
./sys/machines/${hostname}
|
||||
./secrets/${hostname}
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs self systemProfiles homeProfiles homeSuites vars;
|
||||
};
|
||||
});
|
||||
|
||||
perSystem = {pkgs, ...}: {
|
||||
imports = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue