Add of searXng
This commit is contained in:
parent
4fddfe8724
commit
a3c5f8b272
3 changed files with 36 additions and 11 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./package.nix
|
./package.nix
|
||||||
|
./searXNG.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
|
@ -54,6 +55,7 @@
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "fr";
|
console.keyMap = "fr";
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.manager = {
|
users.users.manager = {
|
||||||
|
|
@ -61,6 +63,7 @@
|
||||||
description = "manager";
|
description = "manager";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.enable = true;
|
security.sudo.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@
|
||||||
git
|
git
|
||||||
cloudflared
|
cloudflared
|
||||||
cloudflare-warp
|
cloudflare-warp
|
||||||
|
zoxide
|
||||||
|
fzf
|
||||||
|
sqlite
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
];
|
];
|
||||||
|
|
|
||||||
19
searXNG.nix
Normal file
19
searXNG.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ config,lib,pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
searx = {
|
||||||
|
enable = true;
|
||||||
|
redisCreateLocally = true;
|
||||||
|
package = pkgs.searxng;
|
||||||
|
environmentFile = "/etc/searx.env";
|
||||||
|
settings.server = {
|
||||||
|
bind_address = "0.0.0.0";
|
||||||
|
port = 1692;
|
||||||
|
# WARNING: setting secret_key here might expose it to the nix cache
|
||||||
|
# see below for the sops or environment file instructions to prevent this
|
||||||
|
# secret_key = "$SEARXNG_SECRET";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue