nixos/machines/core/nix.nix

46 lines
832 B
Nix
Raw Normal View History

2024-05-05 13:07:24 +02:00
{ pkgs, inputs, ... }:
2020-11-16 21:14:46 +01:00
{
nix = {
2023-01-12 23:18:58 +01:00
daemonCPUSchedPolicy = "idle";
daemonIOSchedClass = "idle";
settings = {
trusted-users = [
"root"
"@wheel"
];
auto-optimise-store = true;
builders-use-substitutes = true;
};
2022-11-09 22:28:10 +01:00
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
2022-11-09 22:28:10 +01:00
extraOptions = ''
experimental-features = nix-command flakes
'';
registry = {
nixpkgs.flake = inputs.nixpkgs;
unstable.flake = inputs.nixpkgs-unstable;
};
};
2022-11-09 22:28:10 +01:00
2023-01-29 15:30:13 +01:00
# auto upgrade with own flakes
system.autoUpgrade = {
enable = true;
flake = "github:Stunkymonkey/nixos";
};
2022-11-09 22:28:10 +01:00
2020-11-16 21:14:46 +01:00
environment.systemPackages = with pkgs; [
2023-01-12 23:18:58 +01:00
nix-index
nix-prefetch
2021-10-30 11:39:31 +02:00
nix-update
2024-06-11 18:41:45 +02:00
nixfmt-rfc-style
2023-11-11 17:09:38 +01:00
nixpkgs-hammering
2021-06-28 21:38:36 +02:00
nixpkgs-review
2020-11-16 21:14:46 +01:00
];
}