misc changes
This commit is contained in:
parent
cb9c48d58b
commit
bd2e6a1bd3
1 changed files with 16 additions and 3 deletions
|
@ -4,6 +4,13 @@
|
||||||
|
|
||||||
imports = [ ./security.nix ];
|
imports = [ ./security.nix ];
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
# for quick activity overview
|
||||||
|
pkgs.htop
|
||||||
|
# for users with TERM=xterm-termite
|
||||||
|
pkgs.termite.terminfo
|
||||||
|
];
|
||||||
|
|
||||||
# Nicer interactive shell
|
# Nicer interactive shell
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
# And for the zsh peeps
|
# And for the zsh peeps
|
||||||
|
@ -19,19 +26,22 @@
|
||||||
# auto-free the /nix/store
|
# auto-free the /nix/store
|
||||||
min-free = ${asGB 10}
|
min-free = ${asGB 10}
|
||||||
max-free = ${asGB 200}
|
max-free = ${asGB 200}
|
||||||
|
|
||||||
|
# avoid copying unecessary stuff over SSH
|
||||||
|
builders-use-substitutes = true
|
||||||
'';
|
'';
|
||||||
# Hard-link duplicated files
|
# Hard-link duplicated files
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# No mutable users
|
|
||||||
users.mutableUsers = false;
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
22
|
22
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# enable "sar" system activity collection
|
||||||
|
services.sysstat.enable = true;
|
||||||
|
|
||||||
# Make debugging failed units easier
|
# Make debugging failed units easier
|
||||||
systemd.extraConfig = ''
|
systemd.extraConfig = ''
|
||||||
DefaultStandardOutput=journal
|
DefaultStandardOutput=journal
|
||||||
|
@ -41,6 +51,9 @@
|
||||||
# The nix-community is global :)
|
# The nix-community is global :)
|
||||||
time.timeZone = "UTC";
|
time.timeZone = "UTC";
|
||||||
|
|
||||||
|
# No mutable users
|
||||||
|
users.mutableUsers = false;
|
||||||
|
|
||||||
# Assign keys from all users in wheel group
|
# Assign keys from all users in wheel group
|
||||||
# This is only done because nixops cant be deployed from any other account
|
# This is only done because nixops cant be deployed from any other account
|
||||||
users.extraUsers.root.openssh.authorizedKeys.keys = lib.unique (lib.flatten (
|
users.extraUsers.root.openssh.authorizedKeys.keys = lib.unique (lib.flatten (
|
||||||
|
|
Loading…
Add table
Reference in a new issue