mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Nix] user nix daemon for all commands by default
This commit is contained in:
parent
6d061dce0e
commit
50ed99e303
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ in
|
|||
(hiPrio config.system.build.nixos-rebuild)
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
NIX_REMOTE = "daemon"; # Use the nix daemon by default
|
||||
};
|
||||
|
||||
systemd.services.nixos-upgrade = {
|
||||
unitConfig = {
|
||||
ConditionCPUPressure = "user.slice:15%";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue