feat(tyr): setup some server settings.
This commit is contained in:
parent
a109e2eba9
commit
b533d52727
1 changed files with 31 additions and 0 deletions
|
@ -104,6 +104,8 @@
|
|||
libva-utils
|
||||
alsa-utils
|
||||
neovim
|
||||
podman-compose
|
||||
podman-tui
|
||||
];
|
||||
|
||||
services.openssh = {
|
||||
|
@ -132,6 +134,35 @@
|
|||
# Enable my specific settings
|
||||
crony.secrets.enable = true;
|
||||
|
||||
# Optimise storage
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
# setup podman for virtualisation
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
flags = [
|
||||
"--filter=until=24h"
|
||||
"--filter=label!=important"
|
||||
];
|
||||
};
|
||||
defaultNetwork.settings.dns.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable nixd to see nixpkgs path
|
||||
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue