From 4b84b88dc4c08fc9c222f5eb8a76effdd3c3ced8 Mon Sep 17 00:00:00 2001 From: twoneis Date: Wed, 13 Mar 2024 20:12:18 +0100 Subject: [PATCH] niri config sorta working --- modules/system/default.nix | 2 ++ modules/system/home/default.nix | 1 + modules/system/home/niri-setup/default.nix | 5 +++++ modules/system/home/themes/default.nix | 3 +++ modules/system/niri/config.kdl | 10 +++++++--- 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 modules/system/home/niri-setup/default.nix diff --git a/modules/system/default.nix b/modules/system/default.nix index d7a84f1..6659c55 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -15,6 +15,8 @@ ./virt.nix ]; + environment.sessionVariables.NIXOS_OZONE_WL = "1"; + networking.extraHosts = '' 10.10.11.245 surveillance.htb diff --git a/modules/system/home/default.nix b/modules/system/home/default.nix index 0a83f28..ca4f7a6 100644 --- a/modules/system/home/default.nix +++ b/modules/system/home/default.nix @@ -11,6 +11,7 @@ ./gdb ./git ./media + ./niri-setup ./notes ./shell ./terminal diff --git a/modules/system/home/niri-setup/default.nix b/modules/system/home/niri-setup/default.nix new file mode 100644 index 0000000..bb3de7b --- /dev/null +++ b/modules/system/home/niri-setup/default.nix @@ -0,0 +1,5 @@ +{ pkgs, ... }: { + programs.fuzzel= { + enable = true; + }; +} diff --git a/modules/system/home/themes/default.nix b/modules/system/home/themes/default.nix index ff1fa68..15afdc5 100644 --- a/modules/system/home/themes/default.nix +++ b/modules/system/home/themes/default.nix @@ -7,6 +7,9 @@ gtk = { enable = true; + gtk3.extraConfig = { + gtk-application-prefer-dark-theme = true; + }; theme.name = "Adwaita Dark"; }; } diff --git a/modules/system/niri/config.kdl b/modules/system/niri/config.kdl index 8fe508f..6350e4b 100644 --- a/modules/system/niri/config.kdl +++ b/modules/system/niri/config.kdl @@ -2,8 +2,10 @@ // "/-" comments out the following node. input { - // If this line is omitted, holding down a key won't work anymore - keyboard { xkb { } } + // If this section is omitted, holding down a key won't work anymore + keyboard { + xkb { } + } touchpad { tap natural-scroll @@ -19,7 +21,7 @@ input { // `niri msg outputs` to list available outputs with options output "eDP-1" { - scale 2.0 + scale 1.0 mode "1920x1080@60" @@ -68,6 +70,8 @@ binds { Mod+T { spawn "alacritty"; } Mod+B { spawn "firefox"; } + Mod+S { spawn "fuzzel"; } + XF86AudioRaiseVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } XF86AudioLowerVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }