nixos/modules/base/system.nix

75 lines
1.4 KiB
Nix
Raw Normal View History

2023-08-08 18:11:16 +02:00
{ config, nix-index-database, lib, pkgs, ... }: {
2023-08-01 15:35:09 +02:00
imports = [
nix-index-database.nixosModules.nix-index
];
nix = {
# https://nixos.wiki/wiki/Storage_optimization
gc = {
automatic = true;
dates = "weekly";
2023-08-12 01:57:15 +02:00
options = "--delete-older-than=90d";
2023-08-01 15:35:09 +02:00
};
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
bat
clang
curl
dig
fd
fzf
gcc
git
gnumake
htop
inetutils
jq
magic-wormhole
ntp
2023-08-08 18:17:02 +02:00
progress
2023-08-01 15:35:09 +02:00
pwgen
2023-10-09 15:07:21 +02:00
python312
2023-08-01 15:35:09 +02:00
rsync
sqlite
tmux
traceroute
tree
unzip
wget
xkcdpass
yq
];
# https://github.com/nix-community/comma
programs.nix-index-database.comma.enable = true;
programs.command-not-found.enable = false;
i18n = {
defaultLocale = "en_DK.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_DK.UTF-8";
LC_IDENTIFICATION = "en_DK.UTF-8";
LC_MEASUREMENT = "en_DK.UTF-8";
LC_MONETARY = "en_DK.UTF-8";
LC_NAME = "en_DK.UTF-8";
LC_NUMERIC = "en_DK.UTF-8";
LC_PAPER = "en_DK.UTF-8";
LC_TELEPHONE = "en_DK.UTF-8";
LC_TIME = "en_DK.UTF-8";
};
2023-08-04 13:08:58 +02:00
supportedLocales = lib.mkOptionDefault [
"da_DK.UTF-8/UTF-8"
];
2023-08-01 15:35:09 +02:00
};
time = {
timeZone = "Europe/Copenhagen";
};
}