my nix configs for my servers and desktop
1{ config, lib, pkgs, modulesPath, inputs, ... }:
2
3{
4 imports = [
5 ./hardware.nix
6 ./secrets.nix
7
8 ../../common/system.nix
9 ../../common/users.nix
10 ../../common/services.nix
11 ../../host-secrets.nix
12 ];
13
14 # Enable modules
15 modules.caddy.enable = true;
16 modules.garage.enable = true;
17
18 modules.caddy = {
19 email = "ana@nekomimi.pet";
20 reverseProxies = {
21 "s3.nkp.pet" = ["valefar:3900" "morax:3900"];
22 };
23 };
24
25 system.stateVersion = "25.05";
26
27 nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
28 hardware.enableRedistributableFirmware = true;
29 hardware.enableAllHardware = lib.mkForce false; #https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-2868994145
30
31 networking = {
32 hostName = "morax";
33 hostId = "2631a44a";
34 firewall.enable = false;
35 defaultGateway = {
36 address = "10.0.0.1";
37 interface = "eth0";
38 };
39 nameservers = [ "1.1.1.1" ];
40 interfaces.eth0 = {
41 ipv4.addresses = [{
42 address = "10.0.0.210";
43 prefixLength = 24;
44 }];
45 };
46 };
47
48 environment.systemPackages = with pkgs; [
49 inputs.agenix.packages.aarch64-linux.default
50 ];
51
52 virtualisation.docker = {
53 enable = true;
54 enableOnBoot = true;
55 };
56}