Compare commits

..

No commits in common. "b3139f4e8d5593ee474f11359b5a3fb4b84c68ae" and "75cc2fe51e7d1c3ed85a18d5905bc668b6a015bf" have entirely different histories.

5 changed files with 14 additions and 9 deletions

View file

@ -2,7 +2,13 @@
self,
pkgs,
...
}: {
}: let
niri-switch-to-workspace = pkgs.writeShellScriptBin "niri-switch-to-workspace" ''
workspace="$(echo -en "main\nsocial\nkeepass\nbrowser\ninfra\nscratch\nmultimedia" | fuzzel --dmenu)"
# niri msg action focus-workspace-monitor "$workspace"
niri msg action focus-workspace "$workspace"
'';
in {
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
@ -99,5 +105,6 @@
television
;
inherit (self.packages.${pkgs.stdenv.system}) helix;
inherit niri-switch-to-workspace;
};
}

View file

@ -25,7 +25,7 @@ in {
time.timeZone = "Europe/Zurich";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "us";
console.keyMap = "uk";
security.polkit.enable = true;
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;

View file

@ -7,13 +7,11 @@ in {
anki
asciinema
beets
brave
bubblewrap
cachix
calc
calibre
cinny-desktop
comma
vscodium
difftastic
dnsutils
@ -21,7 +19,6 @@ in {
element-desktop
evince
gcc
gh
gnumake
gparted
halloy

View file

@ -5,7 +5,7 @@
enable = false;
};
nix-index = {
enable = true;
enable = false;
};
};
}

View file

@ -6,7 +6,7 @@
}: let
inherit (lib.options) mkEnableOption;
inherit (lib.modules) mkIf;
inherit (builtins) toString;
inherit (lib.strings) toString;
cfg = config.modules.services.searxng;
port = 4021;
in {
@ -15,8 +15,9 @@ in {
config = mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [port];
modules.system.services.nginx.enable = true;
services = {
nginx.enable = true;
searx = {
enable = true;
package = pkgs.searxng;
@ -100,7 +101,7 @@ in {
];
};
};
nginx.virtualHosts."search.copeberg.org" = {
nginx.virtualhosts."search.copeberg.org" = {
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
extraConfig = ''
access_log /dev/null;