aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
blob: ae1ae4bc67247518cbcbdaa87ba4f6f77e123812 (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
{ config, ... }: {
  imports = [
    ./git
    ./nix/hardware-configuration.nix
    ./nix/minecraft.nix
    ./nix/options.nix
    ./nix/ssh.nix
    ./nix/web.nix
  ];

  boot.loader = {
    systemd-boot = {
      enable = true;
      graceful = true; # TODO: drop after v261+
    };
    efi.canTouchEfiVariables = true;
  };

  nix.settings.experimental-features = [
    "nix-command"
    "flakes"
  ];

  nix.settings.trusted-users = [ "kassouni" ];

  networking.hostName = "chariot";
  networking.networkmanager.enable = true;

  users.users.kassouni = {
    extraGroups = [ "wheel" ];
    isNormalUser = true;

    openssh.authorizedKeys.keys = config.my.adminKeys;
  };

  system.stateVersion = "26.05";
}