add sops-nix

This commit is contained in:
Sean Kovacs 2026-04-03 10:30:18 -04:00
commit 330087d4ff
Signed by: sckova
GPG key ID: 00F325187C68651A
12 changed files with 130 additions and 20 deletions

View file

@ -14,6 +14,9 @@
email = "kovacsmillio@gmail.com";
};
sops.secrets.sckova_password.neededForUsers = true;
users.users.sckova.hashedPasswordFile = config.sops.secrets.sckova_password.path;
boot = {
plymouth.enable = true;
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";

View file

@ -1,21 +1,19 @@
{
lib,
pkgs,
config,
...
}:
{
sops.templates."searxng.env".content = ''
SEARXNG_SECRET=${config.sops.placeholder.searxng_secret}
'';
services.searx = {
enable = true;
redisCreateLocally = true;
environmentFile = config.sops.templates."searxng.env".path;
settings = {
server = {
secret_key = lib.removeSuffix "\n" (
builtins.readFile (
pkgs.runCommand "gen-key" { buildInputs = [ pkgs.openssl ]; } "openssl rand -hex 32 > $out"
)
);
port = 5364;
bind_address = "127.0.0.1";
};