fix: more iso toolings
This commit is contained in:
4 files changed
+51
-5
No files matched your search
+5
-2
@@ -131,7 +131,7 @@ in
|
||||
'';
|
||||
});
|
||||
|
||||
# Smaller: no firmware (a VM needs none, 800M+), docs, git, RAID or memtest.
|
||||
# Smaller: no firmware (a VM needs none, 800M+), docs, RAID or memtest.
|
||||
hardware.enableRedistributableFirmware = lib.mkForce false;
|
||||
documentation = {
|
||||
enable = lib.mkForce false;
|
||||
@@ -140,7 +140,6 @@ in
|
||||
info.enable = lib.mkForce false;
|
||||
nixos.enable = lib.mkForce false;
|
||||
};
|
||||
programs.git.enable = lib.mkForce false;
|
||||
environment.defaultPackages = lib.mkForce [ ];
|
||||
boot.swraid.enable = lib.mkForce false;
|
||||
boot.loader.grub.memtest86.enable = lib.mkForce false;
|
||||
@@ -163,6 +162,9 @@ in
|
||||
# Lets the VPS panel see the installer's address.
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
# No channel here (channel.nix is off): without this NIX_PATH still names root's
|
||||
# channels, and every lookup warns that they do not exist. <nixpkgs> is the flake's.
|
||||
nix.channel.enable = false;
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
@@ -179,6 +181,7 @@ in
|
||||
programs.fish.enable = true;
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
programs.vim.enable = true;
|
||||
programs.git.enable = true;
|
||||
environment.systemPackages = [
|
||||
installer
|
||||
(pkgs.callPackage ./net-rescue.nix { })
|
||||
|
||||
@@ -82,7 +82,8 @@ in
|
||||
default = true;
|
||||
description = ''
|
||||
Admin comforts: fish as the login shell, vim next to nano (still the default
|
||||
editor), and htop, tmux, jq, mtr, iftop, dig and ncdu.
|
||||
editor), and git, htop, tmux, jq, mtr, iftop, dig, ncdu, iperf3, tcpdump,
|
||||
bandwhich, nload, lsof and nvd.
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -282,6 +283,27 @@ in
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# A small disk left alone for months: old generations, store duplicates and logs are
|
||||
# cleaned up, not collected until it is full.
|
||||
nix.gc = {
|
||||
automatic = lib.mkDefault true;
|
||||
dates = lib.mkDefault "weekly";
|
||||
options = lib.mkDefault "--delete-older-than 14d";
|
||||
};
|
||||
nix.optimise.automatic = lib.mkDefault true;
|
||||
boot.loader.grub.configurationLimit = lib.mkDefault 10;
|
||||
services.journald.settings.Journal.SystemMaxUse = lib.mkDefault "200M";
|
||||
|
||||
# Password logins on a public address: repeated failures get the address banned
|
||||
# (the sshd jail follows sshPort), for longer each time it comes back.
|
||||
services.fail2ban = {
|
||||
enable = lib.mkDefault true;
|
||||
bantime-increment.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# Traffic per day and month, against the plan's quota: vnstat -m.
|
||||
services.vnstat.enable = lib.mkDefault true;
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = cfg.acmeEmail;
|
||||
@@ -376,14 +398,22 @@ in
|
||||
pkgs.iftop
|
||||
pkgs.dig
|
||||
pkgs.ncdu
|
||||
pkgs.iperf3
|
||||
pkgs.tcpdump
|
||||
pkgs.nload
|
||||
pkgs.lsof
|
||||
pkgs.nvd
|
||||
];
|
||||
|
||||
programs = lib.mkIf cfg.tools.enable {
|
||||
fish.enable = true;
|
||||
# Next to nano, which stays the default editor.
|
||||
vim.enable = true;
|
||||
git.enable = true;
|
||||
tmux.enable = true;
|
||||
mtr.enable = true;
|
||||
# Bandwidth per process and connection, without sudo (a capability wrapper).
|
||||
bandwhich.enable = true;
|
||||
};
|
||||
users.defaultUserShell = lib.mkIf cfg.tools.enable pkgs.fish;
|
||||
|
||||
|
||||
Reference in new issue
Block a user