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
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = import ./nixos {
nixosConfigurations = builtins.mapAttrs (name: {}: (import ./nixos) {
base = {
system = "x86_64-linux";
modules = [./nixos/base];

View file

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