36 lines
903 B
Nix
36 lines
903 B
Nix
{
|
|
description = "stolen from neutralinsomniac's nix config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.11";
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
};
|
|
|
|
outputs = inputs@{
|
|
self,
|
|
nixpkgs,
|
|
nix-index-database,
|
|
...
|
|
}:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
in {
|
|
nixosConfigurations = lib.genAttrs [ "imladris" "orion" ] (hostName: lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{ networking.hostName = hostName; }
|
|
./hw/${hostName}
|
|
./configuration.nix
|
|
nix-index-database.nixosModules.nix-index
|
|
{ programs.nix-index-database.comma.enable = true; }
|
|
];
|
|
});
|
|
};
|
|
}
|