изменено: 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
|
# настройки Nix
|
||||||
nixpkgs.config.allowUnfree = true;
|
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 = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
@ -304,9 +311,12 @@ in
|
||||||
'')+"/uuid");
|
'')+"/uuid");
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
publish = {
|
publish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hinfo = true;
|
hinfo = true;
|
||||||
|
workstation = true;
|
||||||
|
domain = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -320,7 +330,17 @@ in
|
||||||
networking.nameservers = [ serverIP ];
|
networking.nameservers = [ serverIP ];
|
||||||
|
|
||||||
# каждый компьютер знает, что kafpi.local - это адрес нашего сервера
|
# каждый компьютер знает, что 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