nix/nixos.nix

60 lines
1.5 KiB
Nix
Raw Normal View History

2023-09-05 22:39:17 -05:00
inputs @ { self, ... }:
let
2023-09-14 17:12:13 -05:00
daniel = system: {
home-manager.users.daniel = {
2023-09-14 17:12:39 -05:00
nixpkgs.overlays = [
(final: prev: {
helix = prev.helix // inputs.helix.packages.${system}.helix;
rtx = prev.rtx // inputs.rtx.packages.${system}.rtx;
})
];
2023-09-14 17:12:13 -05:00
imports = [ ./home/user.nix ./home/linux.nix ];
};
2023-09-05 22:39:17 -05:00
};
2023-09-14 17:12:13 -05:00
hms = system: [
2023-09-05 22:39:17 -05:00
inputs.home-manager.nixosModules.home-manager
2023-09-14 17:12:13 -05:00
(daniel system)
2023-09-05 22:39:17 -05:00
];
2023-09-14 21:00:11 -05:00
disko = args @ { scheme, ... }: [
2023-09-05 22:39:17 -05:00
inputs.disko.nixosModules.disko
2023-09-14 21:00:11 -05:00
self.diskoConfigurations.${scheme}
{ _module.args = args; }
2023-09-05 22:39:17 -05:00
];
2023-09-14 17:12:13 -05:00
nixosSystem = system: modules: (inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system; };
2023-09-05 23:51:32 -05:00
modules = [
inputs.sops-nix.nixosModules.sops
./nixos/common.nix
2023-09-14 17:12:13 -05:00
] ++ modules ++ hms system;
2023-09-05 23:51:32 -05:00
});
2023-09-05 22:39:17 -05:00
in
{
2023-09-05 23:51:32 -05:00
# TODO: disko-fy rascal and beefcake?
2023-09-19 20:56:24 -05:00
beefcake = nixosSystem "x86_64-linux" [
2023-09-05 23:51:32 -05:00
./nixos/beefcake.nix
2023-09-05 22:39:17 -05:00
inputs.api-lyte-dev.nixosModules.x86_64-linux.api-lyte-dev
2023-09-05 23:51:32 -05:00
];
2023-09-05 22:39:17 -05:00
2023-09-14 21:00:11 -05:00
rascal = nixosSystem "x86_64-linux" [ ./nixos/rascal.nix ];
2023-09-14 17:12:39 -05:00
2023-09-14 21:20:27 -05:00
musicbox = nixosSystem "x86_64-linux" (disko
{
2023-09-14 21:00:11 -05:00
scheme = "unencrypted";
2023-09-14 21:20:27 -05:00
disks = [ "/dev/sda" ];
2023-09-29 16:57:26 -05:00
} ++ [ ./nixos/musicbox.nix ]);
2023-09-14 21:00:11 -05:00
2023-09-14 21:20:27 -05:00
thinker = nixosSystem "x86_64-linux" (disko
{
2023-09-14 21:00:11 -05:00
scheme = "standard";
2023-09-14 21:20:27 -05:00
disks = [ "/dev/nvme0n1" ];
2023-09-14 21:00:11 -05:00
name = "vdb";
2023-09-29 16:57:26 -05:00
} ++ [ ./nixos/thinker.nix ]);
2023-10-01 12:54:11 -05:00
# dragon = nixosSystem "x86_64-linux" (disko
# {
# scheme = "standard";
# disks = [ "/dev/disk/by-uuid/asdf" ];
# } ++ [ ./nixos/dragon.nix ]);
2023-09-05 22:39:17 -05:00
}