Compare commits
5 commits
75cc2fe51e
...
b3139f4e8d
Author | SHA1 | Date | |
---|---|---|---|
b3139f4e8d |
|||
8eaa30b868 |
|||
70c11792b4 |
|||
e2617b79de |
|||
b8aef09858 |
5 changed files with 9 additions and 14 deletions
|
@ -2,13 +2,7 @@
|
||||||
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)
|
||||||
|
@ -105,6 +99,5 @@ in {
|
||||||
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 = "uk";
|
console.keyMap = "us";
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
|
||||||
|
|
|
@ -7,11 +7,13 @@ 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
|
||||||
|
@ -19,6 +21,7 @@ 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 = false;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.strings) toString;
|
inherit (builtins) toString;
|
||||||
cfg = config.modules.services.searxng;
|
cfg = config.modules.services.searxng;
|
||||||
port = 4021;
|
port = 4021;
|
||||||
in {
|
in {
|
||||||
|
@ -15,9 +15,8 @@ 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;
|
||||||
|
@ -101,7 +100,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