60 lines
1.8 KiB
Nix
60 lines
1.8 KiB
Nix
{
|
|
description = "Multi-Machine NixOS Configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-26.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
antigravity = {
|
|
url = "github:Hy4ri/antigravity-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
|
|
commonModules = [
|
|
./modules/core
|
|
./modules/graphical
|
|
./modules/apps
|
|
inputs.home-manager.nixosModules.home-manager
|
|
{
|
|
nixpkgs.overlays = [
|
|
inputs.antigravity.overlays.default
|
|
];
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
backupFileExtension = "backup";
|
|
users.anish = import ./home;
|
|
};
|
|
}
|
|
];
|
|
in {
|
|
nixosConfigurations = {
|
|
hades = inputs.nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = commonModules ++ [
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
./hosts/hades
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|