44 lines
821 B
Nix
44 lines
821 B
Nix
{ pkgs, inputs, system, ... }:
|
|
|
|
{
|
|
nix = {
|
|
trustedUsers = [ "@wheel" ];
|
|
|
|
package = pkgs.nixFlakes;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
|
|
daemonCPUSchedPolicy = "idle";
|
|
daemonIOSchedClass = "idle";
|
|
daemonIOSchedPriority = 7;
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
];
|
|
|
|
allowedUsers = [ "@wheel" ];
|
|
};
|
|
|
|
nixpkgs.overlays = with inputs; [
|
|
self.overlay
|
|
(final: prev: {
|
|
unstable = import nixpkgs-unstable {
|
|
inherit (config.nixpkgs)
|
|
config
|
|
overlays
|
|
system;
|
|
};
|
|
master = import inputs.nixpkgsMaster {
|
|
inherit system;
|
|
config = prev.config;
|
|
};
|
|
})
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
cached-nix-shell
|
|
];
|
|
}
|