summary refs log tree commit diff
path: root/profiles/core.nix
blob: e23879f864ac622eb2c7901aff7e21f29f3bbb12 (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
{ pkgs, lib, config, inputs, ... }:

{
  imports = [
    ../profiles/security.nix
    ../profiles/network.nix
  ];
  config = {
    system.stateVersion = "22.5";
    nix = {
      registry.nixpgs.flake = inputs.nixpkgs;
      gc.automatic = true;
      optimise.automatic = true;
      settings = {
        allowed-users = ["root"];
        trusted-users = ["root"];
        sandbox = true;
      };
      extraOptions = ''
        experimental-features = nix-command flakes
      '';
    };
    users.mutableUsers = false;
    environment.defaultPackages = lib.mkForce [];

    age.identityPaths = [ "/nix/persist/etc/ssh/ssh_host_ed25519_key" ];
  };
}