From 1959f26e19bb932cd0873455f1e0f14d4f3e7302 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sun, 7 Jan 2024 14:26:33 +0300 Subject: [PATCH] Nixfmt time Signed-off-by: Ivan Bushchik --- common/git.nix | 4 +--- common/russian-trusted-ca.nix | 9 ++++----- features.nix | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/common/git.nix b/common/git.nix index d2561e9..c5bb361 100644 --- a/common/git.nix +++ b/common/git.nix @@ -13,9 +13,7 @@ in { signing.key = "2F16FBF3262E090C"; signing.signByDefault = true; package = pkgs.gitAndTools.gitFull; - extraConfig = { - core.editor = "nvim"; - }; + extraConfig = { core.editor = "nvim"; }; }; }; }; diff --git a/common/russian-trusted-ca.nix b/common/russian-trusted-ca.nix index 6fcdd73..aa629c1 100644 --- a/common/russian-trusted-ca.nix +++ b/common/russian-trusted-ca.nix @@ -1,6 +1,7 @@ -{ config, pkgs,... }: +{ config, pkgs, ... }: -let +let + # Maybe I should rebase them to my own trusted location one day root_ca = pkgs.fetchurl { url = "https://gu-st.ru/content/lending/russian_trusted_root_ca_pem.crt"; hash = "sha256-k2pD/qbo5SW8wPgazZw9IbT8S5torOp5BtaYAFr8ZQQ="; @@ -9,6 +10,4 @@ let 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}" ]; -} +in { security.pki.certificateFiles = [ "${root_ca}" "${sub_ca}" ]; } diff --git a/features.nix b/features.nix index fe8bc04..25d5753 100644 --- a/features.nix +++ b/features.nix @@ -1,5 +1,5 @@ { lib, config, ... }: -let -in { + +{ options.my.features.secrets = lib.mkEnableOption "Enable secrets decrypting"; }