started draft for installer
This commit is contained in:
parent
c487b26112
commit
9d88822266
5 changed files with 94 additions and 15 deletions
45
flake.nix
45
flake.nix
|
@ -76,10 +76,30 @@
|
|||
util = import ./util {inherit inputs;};
|
||||
forEachPkgs = util.forEachPkgs;
|
||||
|
||||
mkNixosInstaller = util.mkNixosInstaller;
|
||||
mkNixosSystem = util.mkNixosSystem;
|
||||
mkDarwinSystem = util.mkDarwinSystem;
|
||||
mkHome = util.mkHome;
|
||||
|
||||
installerSystems = {
|
||||
basic = mkNixosInstaller "basic" [];
|
||||
};
|
||||
|
||||
nixosSystems = {
|
||||
horizon = mkNixosSystem "horizon";
|
||||
twilight = mkNixosSystem "twilight";
|
||||
defiant = mkNixosSystem "defiant";
|
||||
};
|
||||
|
||||
darwinSystems = {
|
||||
hesperium = mkDarwinSystem "hesperium";
|
||||
};
|
||||
|
||||
homeSystems = {
|
||||
# stand alone home manager configurations here:
|
||||
# name = mkHome "name"
|
||||
};
|
||||
|
||||
systemsHomes = nixpkgs.lib.attrsets.mergeAttrsList (
|
||||
nixpkgs.lib.attrsets.mapAttrsToList (hostname: system: (
|
||||
nixpkgs.lib.attrsets.mapAttrs' (user: _: {
|
||||
|
@ -88,8 +108,12 @@
|
|||
})
|
||||
system.config.home-manager.users
|
||||
))
|
||||
(inputs.self.nixosConfigurations // inputs.self.darwinConfigurations)
|
||||
(nixosSystems // darwinSystems)
|
||||
);
|
||||
|
||||
homeConfigurations =
|
||||
systemsHomes
|
||||
// homeSystems;
|
||||
in {
|
||||
formatter = forEachPkgs (pkgs: pkgs.alejandra);
|
||||
|
||||
|
@ -113,21 +137,12 @@
|
|||
};
|
||||
});
|
||||
|
||||
nixosConfigurations = {
|
||||
horizon = mkNixosSystem "horizon";
|
||||
twilight = mkNixosSystem "twilight";
|
||||
defiant = mkNixosSystem "defiant";
|
||||
};
|
||||
installerConfigurations = installerSystems;
|
||||
|
||||
darwinConfigurations = {
|
||||
hesperium = mkDarwinSystem "hesperium";
|
||||
};
|
||||
nixosConfigurations = nixosSystems;
|
||||
|
||||
homeConfigurations =
|
||||
systemsHomes
|
||||
// {
|
||||
# stand alone configurations here:
|
||||
# name = mkHome "name"
|
||||
};
|
||||
darwinConfigurations = darwinSystems;
|
||||
|
||||
homeConfigurations = homeConfigurations;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue