misc: init with fstrim and nix store optimisation

This commit is contained in:
Katherina Walshe-Grey 2024-10-07 21:29:25 +01:00
parent bb2b59cd20
commit 5c7d371ea5
4 changed files with 8 additions and 2 deletions

View file

@ -6,6 +6,7 @@
./boot.nix ./boot.nix
./environment.nix ./environment.nix
./home-manager.nix ./home-manager.nix
./misc.nix
./nginx.nix ./nginx.nix
./nix.nix ./nix.nix
./openssh.nix ./openssh.nix

7
common/misc.nix Normal file
View file

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
nix.gc.automatic = true;
nix.optimise.automatic = true;
services.fstrim.enable = true;
}

View file

@ -4,7 +4,6 @@
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
services.fwupd.enable = true; services.fwupd.enable = true;
services.fstrim.enable = true;
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true; # this defaults to true from 24.11 hardware.nvidia.modesetting.enable = true; # this defaults to true from 24.11

View file

@ -4,6 +4,5 @@
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
services.fwupd.enable = true; services.fwupd.enable = true;
services.fstrim.enable = true;
} }