misc: init with fstrim and nix store optimisation
This commit is contained in:
parent
bb2b59cd20
commit
5c7d371ea5
|
@ -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
7
common/misc.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nix.gc.automatic = true;
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
services.fstrim.enable = true;
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue