WIP mapAttrs to convert basic configs to nixos systems

This commit is contained in:
Daniel Flanagan 2024-01-04 14:58:14 -06:00
parent f44d8ab87d
commit 9b228e61bc
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 31 additions and 26 deletions

View file

@ -81,7 +81,7 @@
# NixOS configuration entrypoint # NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname' # Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = import ./nixos { nixosConfigurations = builtins.mapAttrs (name: {}: (import ./nixos) {
base = { base = {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [./nixos/base]; modules = [./nixos/base];

View file

@ -8,29 +8,34 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [./thablet]; modules = [./thablet];
}; };
thinker = mkNixosSystem "x86_64-linux" [
./nixos/thinker thinker = {
(danielWithModules [outputs.homeManagerModules.thinker]) system = "x86_64-linux";
]; modules = [./thinker];
foxtrot = mkNixosSystem "x86_64-linux" [ };
./nixos/foxtrot
(danielWithModules [outputs.homeManagerModules.foxtrot]) foxtrot = {
]; system = "x86_64-linux";
beefcake = mkNixosSystem "x86_64-linux" [ modules = [./foxtrot];
inputs.api-lyte-dev.nixosModules.x86_64-linux.api-lyte-dev };
./nixos/beefcake
(danielWithModules [outputs.homeManagerModules.linux]) beefcake = {
]; system = "x86_64-linux";
rascal = mkNixosSystem "x86_64-linux" [ modules = [./beefcake];
./nixos/rascal };
(danielWithModules [outputs.homeManagerModules.linux])
]; rascal = {
musicbox = mkNixosSystem "x86_64-linux" [ system = "x86_64-linux";
./nixos/musicbox modules = [./rascal];
(danielWithModules [outputs.homeManagerModules.sway]) };
];
router = mkNixosSystem "x86_64-linux" [ musicbox = {
./nixos/router system = "x86_64-linux";
(danielWithModules [outputs.homeManagerModules.common]) modules = [./musicbox];
]; };
router = {
system = "x86_64-linux";
modules = [./router];
};
} }