mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-05-21 16:46:30 +00:00
Compare commits
3 commits
5be1c37d3c
...
3e7b00c94f
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e7b00c94f | |||
| 55288bff6a | |||
| d649c49f0e |
3 changed files with 16 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ in
|
|||
gnumake
|
||||
cmake
|
||||
|
||||
linux-manual
|
||||
#linux-manual # Broken as of 2026-03-22
|
||||
man-pages
|
||||
man-pages-posix
|
||||
|
||||
|
|
|
|||
|
|
@ -34,14 +34,14 @@ in
|
|||
with pkgs;
|
||||
[ ]
|
||||
++ [
|
||||
vaapiVdpau
|
||||
libva-vdpau-driver
|
||||
libvdpau-va-gl
|
||||
|
||||
intel-graphics-compiler
|
||||
intel-compute-runtime
|
||||
]
|
||||
++ optional cfg.iHD intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||
++ optional (!cfg.iHD) vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||||
++ optional (!cfg.iHD) intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||||
;
|
||||
};
|
||||
|
||||
|
|
|
|||
13
nix/nix.nix
13
nix/nix.nix
|
|
@ -92,6 +92,19 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.nix-delete-generations = mkIf (config.aviallon.boot.configurationLimit != null) {
|
||||
script = ''
|
||||
nix-env --delete-generations +${toString config.aviallon.boot.configurationLimit} --profile /nix/var/nix/profiles/system
|
||||
'';
|
||||
path = [ config.nix.package ];
|
||||
restartIfChanged = false;
|
||||
reloadIfChanged = false;
|
||||
startAt = "Sun 03:00:00";
|
||||
enableStrictShellChecks = true;
|
||||
after = [ "multi-user.target" "nix-daemon.socket" ];
|
||||
wants = [ "multi-user.target" "nix-daemon.socket" ];
|
||||
};
|
||||
|
||||
nix.package = optimizePkg {
|
||||
stdenv = pkgs.fastStdenv;
|
||||
level = "slower";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue