Files
nixos/modules/essentials/settings.nix
T
2026-01-15 20:39:10 +03:00

62 lines
1.4 KiB
Nix

{
config,
lib,
...
}:
{
system.nixos.label = "default";
nix = {
channel = {
enable = true;
};
settings = {
require-sigs = false;
substituters = [
"https://nixos-cache-proxy.cofob.dev" # https://gist.github.com/cofob/9b1fd205e6d961a45c225ae9f0af1394
"https://nixos-cache-proxy.elxreno.com"
"https://nix-community.cachix.org"
# "https://cache.nixos.org"
# "https://nixos-cache-proxy.sweetdogs.ru"
#"https://nixos.snix.store" # https://nixos.snix.store/
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
auto-optimise-store = true;
experimental-features = [
"flakes"
"nix-command"
];
};
};
nixpkgs.config.allowUnfree = true;
security = {
sudo.wheelNeedsPassword = false;
polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")){ // for sudo
return polkit.Result.YES;
}
});
'';
};
};
systemd.network.wait-online.enable = false;
time.timeZone = "Europe/Moscow";
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
#"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"ru_RU.UTF-8/UTF-8"
];
};
}