flakes/modules/system/nix.nix

29 lines
875 B
Nix
Raw Normal View History

2026-06-19 07:36:13 +10:00
{ config, inputs, pkgs, ... }: {
nix = {
2026-06-19 07:36:13 +10:00
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
2025-04-03 22:20:16 +11:00
package = pkgs.nixVersions.latest;
settings = rec {
extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
substituters = [
"https://cache.nixos.org?priority=10"
"https://lava.cachix.org"
"https://nix-gaming.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
];
trusted-substituters = substituters;
2024-01-18 12:03:39 +07:00
trusted-users = [ "root" "rin" ];
};
2021-07-15 20:26:09 +07:00
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
2025-11-22 15:37:16 +11:00
programs.nh.enable = true;
2021-07-15 20:26:09 +07:00
}