2024-05-03 09:54:20 +00:00
|
|
|
{ config, lib, ... }:
|
2024-05-01 20:46:28 +00:00
|
|
|
{
|
|
|
|
# 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
|
2024-05-01 20:46:28 +00:00
|
|
|
substituters = [ "https://nix-community.cachix.org" ];
|
|
|
|
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
|
|
|
|
|
2024-05-03 09:54:20 +00:00
|
|
|
# We also want to add our defined users to the trusted-users list
|
2024-05-01 20:46:28 +00:00
|
|
|
# this is important so that we can use the substituters with no issues
|
2024-05-03 09:54:20 +00:00
|
|
|
trusted-users = lib.attrNames config.users.users;
|
2024-05-01 20:46:28 +00:00
|
|
|
};
|
|
|
|
}
|