1
0
Fork 0
dotfiles/darwin-configuration.nix

48 lines
832 B
Nix

{
imports = [
./system/defaults.nix
./system/fonts.nix
];
nix = {
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trustedUsers = [
"@admin"
];
extraOptions = ''
experimental-features = nix-command flakes
extra-platforms = x86_64-darwin
keep-derivations = true
keep-outputs = true
auto-optimise-store = true
'';
};
users = {
nix.configureBuildUsers = true;
users.daniel = {
home = "/Users/daniel";
};
};
environment = {
darwinConfig = "$HOME/.config/nixpkgs/darwin-configuration.nix";
variables = {
EDITOR = "nvim";
};
};
services = {
nix-daemon.enable = true;
};
}