summaryrefslogtreecommitdiff
path: root/modules/nixos/common.nix
blob: b586b77166a25d8baed2dcdaf1fcd29c662487f4 (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
{
  config,
  lib,
  ...
}: {
  # flakes usage
  nix.settings.experimental-features = [
    "flakes"
    "nix-command"
  ];

  documentation.man.enable = true;

  # allows users to customize shell in `$XDG_CONFIG_HOME/shell` rather than
  # needing /etc/shells. Useful for home-manager.
  # programs.noshell.enable = true;

  # cleans /tmp to maintain a tidy system
  boot.tmp.cleanOnBoot = true;

  networking.domain = lib.mkDefault config.networking.hostName;

  # disable lecture
  security.sudo.extraConfig = ''Defaults lecture="never"'';

  # make users immutable
  users.mutableUsers = false;
}