create shared niri config, refactor generic feature modules

This commit is contained in:
greyweather committed 2026-09-06 01:59:38 +01:00
1 parent 257654332d
commit e1a08112a7
23 files changed
+353 -410

No files matched your search

+1
View File
@@ -30,6 +30,7 @@
applications = {
gui = {
nautilus.enable = true;
kitty.enable = true;
vscode.enable = true;
equibop.enable = true;
+12 -6
View File
@@ -31,8 +31,8 @@
};
components = {
windowManagers = "niri";
shells = "noctalia";
windowManagers = [ "biri" ];
shells = [ "noctalia" ];
};
features = {
@@ -67,15 +67,19 @@
theme = "comfy";
};
};
thunderbird = {
enable = true;
};
};
extraPackages = with pkgs; [
nix-init
github-desktop
signal-desktop
];
shellScripts = let
mkBrightnessScript = direction: ''
mkBrightnessScript = direction: scriptName: ''
LOOP_COUNTER=0
DEVICE=$1
PRETTY_NAME=$(sudo ddccontrol dev:$DEVICE 2>&1 >/dev/null | grep -oP "/usr/share/ddccontrol-db/monitor/\K.+\.xml" | sed 's/.xml//')
@@ -88,7 +92,7 @@
LOOP_COUNTER=$(($LOOP_COUNTER + 1))
done
noctalia msg notification-show "Set brightness to $WRITTEN for display $PRETTY_NAME"
notify-send -e -a "${scriptName}" "Set brightness to $WRITTEN for display $PRETTY_NAME"
'';
in {
switch-os = ''
@@ -109,14 +113,16 @@
if [ "$bypass_value" = "1" ]; then
easyeffects -b 2
notify-send -e -a "toggle-easyeffects script" "Easy Effects enabled"
else
easyeffects -b 1
notify-send -e -a "toggle-easyeffects script" "Easy Effects disabled"
fi
'';
increase-brightness = mkBrightnessScript "+";
increase-brightness = mkBrightnessScript "+" "increase-brightness script";
decrease-brightness = mkBrightnessScript "-";
decrease-brightness = mkBrightnessScript "-" "decrease-brightness script";
};
};
};