summaryrefslogtreecommitdiff
path: root/hosts/base.nix
blob: 96df7c41675ff546f6d147c3847b713ae00bfc6f (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
{pkgs, ...}: {
  # fucking linux vulnerability
  services.printing.enable = false;
  # enable flakes
  nix = {
    gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 7d";
    };
    # package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    settings = {
      keep-outputs = true;
      keep-derivations = true;
      trusted-users = ["root" "y"];
    };
  };

  #direnv
  # programs.direnv.enable = true;
}