templates/darwin/core.nix

26 lines
894 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.settings = {
# We need this to be able to use the nix-command and flakes features.
# these are essential to use this system configuration as a flake.
experimental-features = [
"nix-command"
"flakes"
];
# this allows the system builder to use substitutes
builders-use-substitutes = true;
2024-05-01 21:40:06 +00:00
# we want these because we don't have to build every package from source
substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
# We also want to add our defined users to the trusted-users list
# this is important so that we can use the substituters with no issues
trusted-users = lib.attrNames config.users.users;
};
}