2025-04-09 14:30:42 -05:00
|
|
|
{
|
2025-06-01 22:04:21 -05:00
|
|
|
description = "Server Config Controller";
|
2025-04-09 14:30:42 -05:00
|
|
|
|
|
|
|
|
inputs = {
|
2025-06-12 16:57:12 -05:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
2025-08-22 22:25:29 -05:00
|
|
|
nixvim = {
|
2025-08-22 22:10:22 -05:00
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2025-06-12 16:15:45 -05:00
|
|
|
quasiSecrets.url = "git+ssh://git@github.com/RoyDumblauskas/server-semi-secrets?shallow=1";
|
2025-06-01 22:04:21 -05:00
|
|
|
home-manager = {
|
2025-06-12 17:21:58 -05:00
|
|
|
url = "github:nix-community/home-manager/release-25.05";
|
2025-06-01 22:04:21 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
disko = {
|
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
sops-nix = {
|
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2025-06-05 12:13:34 -05:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
2025-08-22 22:10:22 -05:00
|
|
|
firefox-addons = {
|
|
|
|
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2025-06-01 22:04:21 -05:00
|
|
|
# This is a path to the services I've declared.
|
|
|
|
|
# It just happens to be stored in the same repository (relative),
|
|
|
|
|
# but could well be a separate repository
|
2025-06-12 18:14:25 -05:00
|
|
|
tests-service.url = "github:RoyDumblauskas/tests-service?shallow=1";
|
2025-06-12 18:15:18 -05:00
|
|
|
minio-service.url = "path:../homelab-services/minio-service";
|
2025-06-21 15:45:34 -05:00
|
|
|
mc-service.url = "path:../homelab-services/mc-service";
|
2025-04-09 14:30:42 -05:00
|
|
|
};
|
|
|
|
|
|
2025-08-22 22:10:22 -05:00
|
|
|
outputs = { self, nixpkgs, nixvim, home-manager, disko, sops-nix, quasiSecrets, impermanence, firefox-addons, tests-service, minio-service, mc-service }@inputs:
|
2025-06-01 22:04:21 -05:00
|
|
|
let
|
|
|
|
|
nodes = [
|
|
|
|
|
{
|
|
|
|
|
name = "nixos-homelab-00";
|
|
|
|
|
hostId = "3884D2F1";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
in {
|
|
|
|
|
nixosConfigurations = builtins.listToAttrs (map (node: {
|
|
|
|
|
name = node.name;
|
|
|
|
|
value = nixpkgs.lib.nixosSystem {
|
|
|
|
|
specialArgs = {
|
|
|
|
|
meta = {
|
|
|
|
|
hostname = node.name;
|
|
|
|
|
hostId = node.hostId;
|
2025-04-27 15:20:27 -05:00
|
|
|
};
|
2025-04-09 15:01:54 -05:00
|
|
|
};
|
2025-06-01 22:04:21 -05:00
|
|
|
system = "x86_64-linux";
|
|
|
|
|
modules = [
|
|
|
|
|
./configuration.nix
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./disk-config.nix
|
|
|
|
|
disko.nixosModules.disko
|
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
|
quasiSecrets.nixosModules.ipAddrs
|
|
|
|
|
quasiSecrets.nixosModules.serviceList
|
2025-06-05 12:00:56 -05:00
|
|
|
impermanence.nixosModules.impermanence
|
2025-06-12 18:14:25 -05:00
|
|
|
tests-service.nixosModules.default
|
2025-06-12 18:24:32 -05:00
|
|
|
minio-service.nixosModules.minio-service
|
2025-06-21 15:45:34 -05:00
|
|
|
mc-service.nixosModules.mc-service
|
2025-06-01 22:04:21 -05:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
home-manager.users.sysAdmin = ./home.nix;
|
2025-08-22 22:10:22 -05:00
|
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
|
home-manager.users.roy = { ... }: {
|
|
|
|
|
imports = [
|
|
|
|
|
./home-roy.nix
|
|
|
|
|
nixvim.homeManagerModules.nixvim
|
2025-08-22 22:29:22 -05:00
|
|
|
impermanence.homeManagerModules.impermanence
|
2025-08-22 22:10:22 -05:00
|
|
|
sops-nix.homeManagerModules.sops
|
|
|
|
|
];
|
|
|
|
|
};
|
2025-06-01 22:04:21 -05:00
|
|
|
}
|
2025-04-09 15:01:54 -05:00
|
|
|
];
|
2025-06-01 22:04:21 -05:00
|
|
|
};
|
|
|
|
|
}) nodes);
|
|
|
|
|
};
|
2025-04-09 14:30:42 -05:00
|
|
|
}
|