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 system.stateVersion = "25.05";
15
16 nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
17 hardware.enableRedistributableFirmware = true;
18 hardware.enableAllHardware = lib.mkForce false; #https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-2868994145
19
20 networking = {
21 hostName = "morax";
22 hostId = "2631a44a";
23 firewall.enable = false;
24 defaultGateway = {
25 address = "10.0.0.1";
26 interface = "eth0";
27 };
28 nameservers = [ "1.1.1.1" ];
29 interfaces.eth0 = {
30 ipv4.addresses = [{
31 address = "10.0.0.210";
32 prefixLength = 24;
33 }];
34 };
35 };
36
37 environment.systemPackages = with pkgs; [
38 inputs.agenix.packages.aarch64-linux.default
39 ];
40
41 virtualisation.docker = {
42 enable = true;
43 enableOnBoot = true;
44 };
45}