]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/system.nix
nix: update patches
[julm/julm-nix.git] / nixos / profiles / system.nix
1 { config, pkgs, lib, ... }:
2 {
3 imports = [
4 ./bash.nix
5 ];
6 documentation = {
7 enable = lib.mkDefault true;
8 dev.enable = lib.mkDefault false;
9 doc.enable = lib.mkDefault true;
10 info.enable = lib.mkDefault false;
11 man.enable = lib.mkDefault true;
12 nixos.enable = lib.mkDefault false;
13 };
14 environment.variables = {
15 EDITOR = "vim";
16 PAGER = "less -R";
17 SYSTEMD_LESS = "FKMRX";
18 };
19 nix = {
20 autoOptimiseStore = lib.mkDefault true;
21 gc.automatic = lib.mkDefault true;
22 gc.dates = lib.mkDefault "weekly";
23 gc.options = lib.mkDefault "--delete-older-than 7d";
24 nixPath = lib.mkForce [ ];
25 };
26 security.lockKernelModules = false;
27 services.openssh.passwordAuthentication = false;
28 services.journald = {
29 extraConfig = ''
30 Compress=true
31 MaxRetentionSec=1month
32 Storage=persistent
33 SystemMaxUse=100M
34 '';
35 };
36 users.mutableUsers = false;
37 }