summaryrefslogtreecommitdiff
path: root/modules/nixos/common.nix
blob: c0d1d73d2ada1814e6ba616fd64870c0ca1047ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  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;
}