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 = {
|
2026-06-20 16:34:54 -05:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
2026-06-22 21:35:07 -05:00
|
|
|
nixvim.url = "github:nix-community/nixvim/nixos-26.05";
|
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 = {
|
2026-06-20 16:34:54 -05:00
|
|
|
url = "github:nix-community/home-manager/release-26.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";
|
|
|
|
|
};
|
2026-04-04 15:20:53 -05:00
|
|
|
# This is a path to the services I've declared.
|
|
|
|
|
# It just happens to be stored in the same repository (relative),
|
2025-06-01 22:04:21 -05:00
|
|
|
# but could well be a separate repository
|
2026-05-27 00:42:53 -05:00
|
|
|
nimh-static.url = "path:../homelab-services/nimh-static";
|
2026-06-20 16:58:15 -05:00
|
|
|
# MINIO IS DEPRECATED, KEEPING CODE FOR REFERENCE. MOVE TO GARAGE/SEAWEEDFS
|
|
|
|
|
# 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-11-15 23:46:57 -06:00
|
|
|
postgresql-db.url = "path:../homelab-services/postgresql-db";
|
2025-04-09 14:30:42 -05:00
|
|
|
};
|
|
|
|
|
|
2026-04-04 15:20:53 -05:00
|
|
|
outputs =
|
|
|
|
|
{
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
|
|
|
|
nixvim,
|
|
|
|
|
home-manager,
|
|
|
|
|
disko,
|
|
|
|
|
sops-nix,
|
|
|
|
|
quasiSecrets,
|
|
|
|
|
impermanence,
|
|
|
|
|
firefox-addons,
|
2026-05-27 00:42:53 -05:00
|
|
|
nimh-static,
|
2026-04-04 15:20:53 -05:00
|
|
|
mc-service,
|
|
|
|
|
postgresql-db,
|
|
|
|
|
}@inputs:
|
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
|
impermanence.nixosModules.impermanence
|
2026-05-27 00:42:53 -05:00
|
|
|
nimh-static.nixosModules.nimh-static
|
2026-04-04 15:20:53 -05:00
|
|
|
mc-service.nixosModules.mc-service
|
|
|
|
|
postgresql-db.nixosModules.postgresql-db
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
|
{
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
|
home-manager.users.roy =
|
|
|
|
|
{ ... }:
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
2026-06-20 16:37:18 -05:00
|
|
|
./home-manager/home.nix
|
2026-04-04 15:25:17 -05:00
|
|
|
nixvim.homeModules.nixvim
|
2026-04-04 15:20:53 -05:00
|
|
|
sops-nix.homeManagerModules.sops
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
];
|
2025-04-27 15:20:27 -05:00
|
|
|
};
|
2026-04-04 15:20:53 -05:00
|
|
|
}) nodes
|
|
|
|
|
);
|
|
|
|
|
};
|
2025-04-09 14:30:42 -05:00
|
|
|
}
|