my nix configs for my servers and desktop
1{ config, lib, pkgs, modulesPath, inputs, ... }:
2{
3 imports = [
4 ./hardware.nix
5 ./secrets.nix
6
7 ../../common/system.nix
8 ../../common/users.nix
9 ../../common/services.nix
10
11 ../../host-secrets.nix
12 ];
13
14 boot = {
15 loader = {
16 systemd-boot.enable = true;
17 efi = {
18 canTouchEfiVariables = true;
19 efiSysMountPoint = "/boot";
20 };
21 };
22 initrd.systemd.enable = true;
23 };
24
25 system.stateVersion = "24.11";
26 nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
27
28 systemd.targets.multi-user.enable = true;
29
30 networking = {
31 hostName = "baal";
32 hostId = "aaaaaaaa";
33 networkmanager.enable = true;
34 };
35
36 virtualisation.docker = {
37 enable = true;
38 enableOnBoot = true;
39 };
40
41 documentation.enable = false;
42}