mirror of
https://github.com/ivabus/nixos
synced 2024-11-24 01:15:06 +03:00
Create russian-trusted-ca.nix
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
163312cc03
commit
97332e32d5
2 changed files with 15 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
./locale.nix
|
||||
./networking.nix
|
||||
./remote-access.nix
|
||||
./russian-trusted-ca.nix
|
||||
./security.nix
|
||||
./stateless.nix
|
||||
./user.nix
|
||||
|
|
14
common/russian-trusted-ca.nix
Normal file
14
common/russian-trusted-ca.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs,... }:
|
||||
|
||||
let
|
||||
root_ca = pkgs.fetchurl {
|
||||
url = "https://gu-st.ru/content/lending/russian_trusted_root_ca_pem.crt";
|
||||
hash = "sha256-k2pD/qbo5SW8wPgazZw9IbT8S5torOp5BtaYAFr8ZQQ=";
|
||||
};
|
||||
sub_ca = pkgs.fetchurl {
|
||||
url = "https://gu-st.ru/content/lending/russian_trusted_sub_ca_pem.crt";
|
||||
hash = "sha256-8K5YnzZ3TynvNkj3mEsI1C/M5vH/7rYjbXc9rrJ0TqY=";
|
||||
};
|
||||
in {
|
||||
security.pki.certificateFiles = [ "${root_ca}" "${sub_ca}" ];
|
||||
}
|
Loading…
Reference in a new issue