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}"];