изменено: configuration.nix
This commit is contained in:
parent
1cae8ceb77
commit
6246fe357c
1 changed files with 22 additions and 2 deletions
|
|
@ -254,7 +254,14 @@ in
|
|||
|
||||
# настройки Nix
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"http://10.0.174.12:5000"
|
||||
];
|
||||
trusted-public-keys = ["kafpi.local:PttR9S1eDyint3v0LCp5zfBGG+xfxzQ+cxKAQARNpyw="];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
|
@ -304,9 +311,12 @@ in
|
|||
'')+"/uuid");
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
hinfo = true;
|
||||
workstation = true;
|
||||
domain = true;
|
||||
addresses = true;
|
||||
};
|
||||
};
|
||||
|
|
@ -320,7 +330,17 @@ in
|
|||
networking.nameservers = [ serverIP ];
|
||||
|
||||
# каждый компьютер знает, что kafpi.local - это адрес нашего сервера
|
||||
networking.hosts."${serverIP}" = [ "kafpi.local" ];
|
||||
networking.hosts."${serverIP}" = [ "kafpi.local" "hydra.kafpi.local" ];
|
||||
security.pki.certificateFiles = [
|
||||
(builtins.fetchurl {
|
||||
url = "http://10.0.174.12/server.crt";
|
||||
sha256 = "sha256:0qx4acdhiciffvk1l7wkxyzapjwjy9zisq0mwyl727x97zrmi5ds";
|
||||
})
|
||||
(builtins.fetchurl {
|
||||
url = "http://10.0.174.12/hydra.crt";
|
||||
sha256 = "sha256:1l5cvsikb5dnf49ajjjmz50avfkxm28jy65vnb9xidlv5vapi1zp";
|
||||
})
|
||||
];
|
||||
|
||||
#### ЛОКАЛИЗАЦИЯ #####
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue