2023-02-10 17:34:46 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
imports = [ ./users ];
|
|
|
|
|
|
|
|
## Optimizations
|
|
|
|
|
|
|
|
# Clean /tmp
|
2023-06-01 17:07:54 +00:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2023-02-10 17:34:46 +00:00
|
|
|
|
|
|
|
# Link identical files
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
|
|
|
|
# Limit journald logs
|
|
|
|
services.journald.extraConfig = ''
|
|
|
|
SystemMaxUse=100M
|
|
|
|
MaxFileSec=1month
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Garbage collection
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
|
|
|
|
## Other
|
|
|
|
|
|
|
|
# Flakes
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
# Enable fish (needed for nix completions)
|
|
|
|
programs.fish.enable = true;
|
|
|
|
|
|
|
|
# Fix terminfo
|
|
|
|
environment.enableAllTerminfo = true;
|
|
|
|
environment.variables.COLORTERM = "truecolor";
|
|
|
|
|
|
|
|
# Packages used on all systems
|
2023-02-18 14:36:17 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-09-29 13:04:31 +00:00
|
|
|
ccase
|
2023-06-01 17:07:54 +00:00
|
|
|
comma
|
2023-07-28 19:28:23 +00:00
|
|
|
dogdns
|
2023-08-14 12:05:13 +00:00
|
|
|
du-dust
|
2023-02-18 14:36:17 +00:00
|
|
|
git
|
2023-09-29 13:04:31 +00:00
|
|
|
imagemagick
|
2023-12-17 20:07:01 +00:00
|
|
|
jq
|
2023-02-18 14:36:17 +00:00
|
|
|
killall
|
2023-07-28 19:28:23 +00:00
|
|
|
mtr
|
2023-06-01 17:07:54 +00:00
|
|
|
openssl
|
2023-02-18 14:36:17 +00:00
|
|
|
rsync
|
2023-02-22 20:23:55 +00:00
|
|
|
sqlite-interactive
|
2023-06-01 17:07:54 +00:00
|
|
|
wget
|
|
|
|
xclip
|
2023-02-18 14:36:17 +00:00
|
|
|
];
|
2023-02-10 17:34:46 +00:00
|
|
|
|
2023-12-17 20:06:27 +00:00
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
banner = ''
|
|
|
|
Hello mistress ^,,^
|
|
|
|
'';
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
2023-03-06 19:37:55 +00:00
|
|
|
# 🥺
|
|
|
|
# security.please.enable = true;
|
|
|
|
|
2023-02-10 17:34:46 +00:00
|
|
|
## Locale/Timezone
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
|
|
|
services.xserver = {
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
|
|
|
}
|