diff options
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/common.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix new file mode 100644 index 0000000..5427414 --- /dev/null +++ b/modules/nixos/common.nix | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | { pkgs, lib, ... }: | ||
| 2 | { | ||
| 3 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
| 4 | |||
| 5 | nix.gc = { | ||
| 6 | automatic = true; | ||
| 7 | dates = "weekly"; | ||
| 8 | options = "--delete-older-than 30d"; | ||
| 9 | }; | ||
| 10 | |||
| 11 | # Per-host configuration.nix can override either of these without | ||
| 12 | # conflicting, since they're set with mkDefault here. | ||
| 13 | time.timeZone = lib.mkDefault "Etc/UTC"; | ||
| 14 | i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; | ||
| 15 | |||
| 16 | programs.zsh.enable = true; | ||
| 17 | |||
| 18 | users.users.tom = { | ||
| 19 | isNormalUser = true; | ||
| 20 | extraGroups = [ "wheel" ]; | ||
| 21 | shell = pkgs.zsh; | ||
| 22 | }; | ||
| 23 | } | ||
