mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
system.nixos.label = "default";
|
|
|
|
nix = {
|
|
channel = {
|
|
enable = true;
|
|
};
|
|
settings = {
|
|
require-sigs = false;
|
|
substituters = [
|
|
"https://cache.nixos.org"
|
|
"https://nix-community.cachix.org"
|
|
"https://mirror.yandex.ru/nixos"
|
|
"https://nixos-cache-proxy.sweetdogs.ru"
|
|
# "https://nixos-cache-proxy.cofob.dev" # https://gist.github.com/cofob/9b1fd205e6d961a45c225ae9f0af1394
|
|
# "https://nixos-cache-proxy.elxreno.com"
|
|
#"https://nixos.snix.store" # https://nixos.snix.store/
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
stalled-download-timeout = 4;
|
|
connect-timeout = 4;
|
|
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"
|
|
];
|
|
};
|
|
}
|