nixos/machines/core/nix.nix

47 lines
858 B
Nix
Raw Normal View History

2023-11-07 22:00:00 +01:00
{ config, 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;
};
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
2023-06-01 23:46:55 +02:00
warn-dirty = false
'';
registry = {
nixpkgs.flake = inputs.nixpkgs;
unstable.flake = inputs.nixpkgs-unstable;
};
};
nixpkgs.config.allowUnfree = true;
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
2021-06-28 21:38:36 +02:00
nixpkgs-fmt
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
];
}