workstation | tweak nix settings

This commit is contained in:
Don Harper 2023-12-02 22:04:58 -06:00
parent fe602d5809
commit 588184d080

View file

@ -10,7 +10,18 @@ let
python-with-my-packages = pkgs.python3Full.withPackages my-python-packages; python-with-my-packages = pkgs.python3Full.withPackages my-python-packages;
in in
{ {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
warn-dirty = false;
auto-optimise-store = true;
trusted-users = [ "root" "don" ];
};
gc = {
automatic = true;
options = "-d";
};
};
imports = imports =
[ [
./detect-reboot-needed.nix ./detect-reboot-needed.nix
@ -242,10 +253,6 @@ in
}; };
}; };
}; };
nix.gc = {
automatic = true;
options = "-d";
};
xdg.mime.enable = true; xdg.mime.enable = true;
xdg.mime.defaultApplications = { xdg.mime.defaultApplications = {
"text/html" = "org.qutebrowser.qutebrowser.desktop"; "text/html" = "org.qutebrowser.qutebrowser.desktop";