Compare commits
No commits in common. "b3139f4e8d5593ee474f11359b5a3fb4b84c68ae" and "75cc2fe51e7d1c3ed85a18d5905bc668b6a015bf" have entirely different histories.
b3139f4e8d
...
75cc2fe51e
5 changed files with 14 additions and 9 deletions
|
@ -2,7 +2,13 @@
|
||||||
self,
|
self,
|
||||||
pkgs,
|
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 {
|
environment.systemPackages = builtins.attrValues {
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
|
@ -99,5 +105,6 @@
|
||||||
television
|
television
|
||||||
;
|
;
|
||||||
inherit (self.packages.${pkgs.stdenv.system}) helix;
|
inherit (self.packages.${pkgs.stdenv.system}) helix;
|
||||||
|
inherit niri-switch-to-workspace;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ in {
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console.keyMap = "us";
|
console.keyMap = "uk";
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
||||||
|
|
|
@ -7,13 +7,11 @@ in {
|
||||||
anki
|
anki
|
||||||
asciinema
|
asciinema
|
||||||
beets
|
beets
|
||||||
brave
|
|
||||||
bubblewrap
|
bubblewrap
|
||||||
cachix
|
cachix
|
||||||
calc
|
calc
|
||||||
calibre
|
calibre
|
||||||
cinny-desktop
|
cinny-desktop
|
||||||
comma
|
|
||||||
vscodium
|
vscodium
|
||||||
difftastic
|
difftastic
|
||||||
dnsutils
|
dnsutils
|
||||||
|
@ -21,7 +19,6 @@ in {
|
||||||
element-desktop
|
element-desktop
|
||||||
evince
|
evince
|
||||||
gcc
|
gcc
|
||||||
gh
|
|
||||||
gnumake
|
gnumake
|
||||||
gparted
|
gparted
|
||||||
halloy
|
halloy
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
nix-index = {
|
nix-index = {
|
||||||
enable = true;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (builtins) toString;
|
inherit (lib.strings) toString;
|
||||||
cfg = config.modules.services.searxng;
|
cfg = config.modules.services.searxng;
|
||||||
port = 4021;
|
port = 4021;
|
||||||
in {
|
in {
|
||||||
|
@ -15,8 +15,9 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [port];
|
networking.firewall.allowedTCPPorts = [port];
|
||||||
|
|
||||||
|
modules.system.services.nginx.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nginx.enable = true;
|
|
||||||
searx = {
|
searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.searxng;
|
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}";
|
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
access_log /dev/null;
|
access_log /dev/null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue