Reduce build size via config restriction

This commit is contained in:
soraefir
2026-06-21 22:51:54 +02:00
parent 798c222bd6
commit 473b290258
11 changed files with 35 additions and 31 deletions
+6 -3
View File
@@ -1,6 +1,9 @@
{ pkgs, ... }: {
{ config, lib, pkgs, ... }:
let
hasNfsFileSystems = lib.any (fs: fs.fsType == "nfs" || fs.fsType == "nfs4") (lib.attrValues config.fileSystems);
in {
services.fstrim.enable = true; # Improves SSD life
services.gvfs.enable = true; # User Mounted FS
services.gvfs.enable = config.syscfg.make.gui; # User Mounted FS
environment.systemPackages = with pkgs; [ nfs-utils ];
environment.systemPackages = lib.optionals hasNfsFileSystems [ pkgs.nfs-utils ];
}