This commit is contained in:
xunuwu 2025-06-06 10:48:07 +02:00
parent b1a2c5a905
commit 40b0d84f53
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
36 changed files with 16 additions and 542 deletions

View file

@ -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 = [