nix configs, mainly for my server in my homelab
1{
2 description = "Andrew's Homelab Flake: WIP";
3
4 outputs = {
5 self,
6 nixpkgs,
7 sops-nix,
8 ...
9 } @ inputs: let
10 system = "x86_64-linux";
11 pkgs = import nixpkgs {
12 inherit system;
13 };
14 inherit (nixpkgs.lib) nixosSystem;
15 in {
16 devShells."${system}".default = pkgs.mkShellNoCC {
17 packages = with pkgs; [
18 age
19 sops
20 ssh-to-age
21 ];
22 };
23
24 nixosConfigurations = {
25 # dev machine; currently WNDWKR02 SFF
26 sparrow = nixosSystem {
27 system = "x86_64-linux";
28 specialArgs = {inherit inputs;};
29 modules = [
30 ./hosts/sparrow/default.nix
31 sops-nix.nixosModules.sops
32 ];
33 };
34
35 # framework
36 eternia = nixosSystem {
37 system = "x86_64-linux";
38 specialArgs = {inherit inputs;};
39 modules = [
40 ./hosts/eternia/default.nix
41 sops-nix.nixosModules.sops
42 ];
43 };
44
45 # ben server
46 lumiere = nixosSystem {
47 system = "x86_64-linux";
48 specialArgs = {inherit inputs;};
49 modules = [
50 ./hosts/lumiere/default.nix
51 sops-nix.nixosModules.sops
52 ];
53 };
54
55 # dad server
56 nappa = nixosSystem {
57 system = "x86_64-linux";
58 specialArgs = {inherit inputs;};
59 modules = [
60 ./hosts/nappa/default.nix
61 sops-nix.nixosModules.sops
62 ];
63 };
64
65 # da server
66 blanka = nixosSystem {
67 system = "x86_64-linux";
68 specialArgs = {inherit inputs;};
69 modules = [
70 ./hosts/blanka/default.nix
71 sops-nix.nixosModules.sops
72 ];
73 };
74 };
75 };
76
77 inputs = {
78 nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
79 sops-nix.url = "github:Mic92/sops-nix";
80
81 #home-manager.url = "github:nix-community/home-manager/release-24.05";
82 #home-manager.inputs.nixpkgs.follows = "nixpkgs";
83 #nix-hardware.url = "github:NixOS/nixos-hardware/master";
84 };
85}