summaryrefslogtreecommitdiff
path: root/installer/default.nix
blob: a0c841828bee9f163abd0d0f2a7e82fa064f9ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ flake, config, pkgs, ... }: {
  imports = with flake.nixosModules.systemProfiles; [
    default-locale zfs networkmanager openssh
  ];

  config = {
    hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;

    networking = {
      firewall.enable = false;
      nftables = {
        enable = true;
        rulesetFile = ./ruleset.nft;
      };
    };

    services.openssh = {
      enable = true;
      staticHostKeys = false;
    };

    services.qemuGuest.enable = true;

    services.resolved = {
      llmnr = "false";
    };

    environment.systemPackages = with pkgs; [
      nvme-cli iotop mosh
    ];

    zramSwap.enable = true;

    system.stateVersion = config.system.nixos.release; # No state in installer
  };
}