nixos-servers/flake.nix

89 lines
2.8 KiB
Nix
Raw Normal View History

2024-03-07 22:14:44 +00:00
{
description = "Homelab v5 Nixos Server Configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
sops-nix.url = "github:Mic92/sops-nix";
2024-06-02 19:50:40 +00:00
backup-helper.url = "git+https://git.t-juice.club/torjus/backup-helper?ref=master";
2024-03-07 22:14:44 +00:00
};
outputs = { self, nixpkgs, nixpkgs-unstable, sops-nix, ... }@inputs:
let
system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in
{
nixosConfigurations = {
2024-03-13 22:26:28 +00:00
ns1 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/ns1
sops-nix.nixosModules.sops
];
};
ns2 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/ns2
sops-nix.nixosModules.sops
];
};
2024-03-07 22:14:44 +00:00
ns3 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
2024-03-07 22:17:42 +00:00
./hosts/ns3
2024-03-07 22:14:44 +00:00
sops-nix.nixosModules.sops
];
};
2024-03-11 17:23:01 +00:00
ns4 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/ns4
sops-nix.nixosModules.sops
];
};
2024-06-02 19:50:40 +00:00
nixos-test1 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/nixos-test1
sops-nix.nixosModules.sops
];
};
2024-05-01 17:11:55 +00:00
ha1 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/ha1
sops-nix.nixosModules.sops
];
};
2024-03-08 19:10:50 +00:00
template1 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/template
sops-nix.nixosModules.sops
];
};
2024-03-07 22:14:44 +00:00
};
};
}