nixos/modules/base/nix.nix

32 lines
670 B
Nix
Raw Permalink Normal View History

2026-01-21 00:11:43 +01:00
{
config,
pkgs,
...
}: {
2025-12-13 21:41:52 +01:00
nixpkgs.config.allowUnfree = true;
2025-02-24 09:56:16 +01:00
nix.settings = {
2025-12-12 04:17:02 +01:00
trusted-users = [
"root"
"@wheel"
2025-12-13 21:41:52 +01:00
config.fireproof.username
2025-12-12 04:17:02 +01:00
];
2026-01-20 23:55:02 +01:00
experimental-features = ["nix-command" "flakes"];
warn-dirty = false;
2025-02-24 09:56:16 +01:00
substituters = [
"https://nix-community.cachix.org"
2025-12-13 21:09:32 +01:00
"https://install.determinate.systems"
2025-02-24 09:56:16 +01:00
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2025-12-13 21:09:32 +01:00
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
2025-02-24 09:56:16 +01:00
];
};
2026-01-20 23:55:02 +01:00
# Make 'nix repl' have all the nixpkgs available
environment.systemPackages = [pkgs.nixpkgs-fmt];
2025-01-31 15:13:22 +01:00
}