Setup Commit
This commit is contained in:
commit
289b69d342
23 changed files with 728 additions and 0 deletions
48
flake.nix
Normal file
48
flake.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
description = "Nyx's Nix/Nixos configs";
|
||||
|
||||
inputs = {
|
||||
nixpkgs = { url = "github:nixos/nixpkgs/nixos-25.11"; };
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
secrets ={
|
||||
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... } @ inputs:
|
||||
let
|
||||
blades = import ./hosts/servers/blades/systems.nix { inherit inputs; };
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
Apollo = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./hosts/base.nix
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
iris = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./hosts/base.nix
|
||||
./hosts/servers/iris
|
||||
];
|
||||
};
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./hosts/base.nix
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
} //
|
||||
blades;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue