From b533d5272716c5368f538a83db4e6b92f6e0b67a Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 24 Sep 2025 18:58:23 +0200 Subject: [PATCH] feat(tyr): setup some server settings. --- hosts/tyr/configuration.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/hosts/tyr/configuration.nix b/hosts/tyr/configuration.nix index 369f2d6..19b3407 100644 --- a/hosts/tyr/configuration.nix +++ b/hosts/tyr/configuration.nix @@ -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}"];