unify nix options

This commit is contained in:
insects 2024-08-10 21:05:54 +02:00
parent 27e703cf11
commit 240a170c53
6 changed files with 30 additions and 12 deletions

View file

@ -1,8 +1,28 @@
{ ... }: {
{ lib, pkgs, ... }: {
imports = [
./audio.nix
];
# use nix version 2.22
nix = {
package = pkgs.nixVersions.nix_2_22;
settings = {
auto-optimise-store = lib.mkDefault true;
experimental-features = [
"nix-command"
"flakes"
"ca-derivations"
];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than +3";
};
};
# auto mount external drives
services.devmon.enable = true;
services.gvfs.enable = true;