32 lines
601 B
Nix
32 lines
601 B
Nix
{ 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";
|
|
};
|
|
};
|
|
|
|
users.users.lu.extraGroups = ["audio"];
|
|
|
|
# auto mount external drives
|
|
services.devmon.enable = true;
|
|
services.gvfs.enable = true;
|
|
services.udisks2.enable = true;
|
|
}
|