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

  # allows users to customize shell in `$XDG_CONFIG_HOME/shell` rather than
  # needing /etc/shells. Useful for home-manager. Falls back.
  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;
}