summaryrefslogtreecommitdiff
path: root/systems/atlas/default.nix
blob: 5b278561ac3264ca96445047f67b0f71fd777618 (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
37
38
39
40
41
42
{
  config,
  pkgs,
  ...
}: {
  imports = [
    ./hardware-configuration.nix
    ./miniflux.nix
    ./nginx.nix
    ./teawiebot.nix
  ];

  suites.server.enable = true;

  boot = {
    loader.systemd-boot.enable = true;
    loader.efi.canTouchEfiVariables = true;
  };

  networking = {
    domain = "mydadleft.me";
    hostName = "atlas";
    networkmanager.enable = false;
  };

  services = {
    resolved.enable = false;
    # not sure why this fails...
    # context: https://discourse.nixos.org/t/logrotate-config-fails-due-to-missing-group-30000/28501
    logrotate.checkConfig = false;
  };

  users.users.atlas = {
    isNormalUser = true;
    shell = pkgs.bash;
    hashedPasswordFile = config.age.secrets.userPassword.path;
  };

  system.stateVersion = "23.05";

  zramSwap.enable = true;
}