move asusd to options

This commit is contained in:
jacekpoz 2024-03-02 23:26:37 +01:00
parent 446e1b824b
commit 6244018977
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
6 changed files with 17 additions and 28 deletions

View file

@ -220,7 +220,6 @@
};
};
services = {
asusd.enable = true;
dunst.enable = true;
mpd.enable = true;
greetd = {

View file

@ -10,6 +10,7 @@ _: {
../../options/common/oomd.nix
../../options/common/pin-registry.nix
../../options/common/preserve-system.nix
../../options/desktop/asusd.nix
../../options/desktop/bluetooth.nix
../../options/desktop/dev/malloc-perturb.nix
../../options/desktop/fonts.nix

View file

@ -311,10 +311,10 @@ in {
"$mainMod SHIFT CONTROL, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${pkgs.swappy}/bin/swappy -f - -o - | ${shadower}/bin/shadower | ${pkgs.coreutils-full}/bin/tee \"$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')\" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send \"Screenshot taken (shadower)\""
"$mainMod SHIFT, R, exec, ${hyprland}/bin/hyprctl reload"
(mkIf config.myOptions.services.asusd.enable
", XF86Launch3, exec, ${pkgs.asusctl}/bin/asusctl led-mode -n")
(mkIf config.myOptions.services.asusd.enable
", XF86Launch4, exec, ${pkgs.asusctl}/bin/asusctl profile -n")
(mkIf config.services.asusd.enable
", XF86Launch3, exec, ${config.services.asusd.package}/bin/asusctl led-mode -n")
(mkIf config.services.asusd.enable
", XF86Launch4, exec, ${config.services.asusd.package}/bin/asusctl profile -n")
# TODO what the fuck is this
", XF86TouchpadToggle, exec, "
# TODO fix this maybe
@ -356,10 +356,10 @@ in {
"$mainMod CONTROL, K, focusmonitor, r"
# keyboard brightness
(mkIf config.myOptions.services.asusd.enable
", XF86KbdBrightnessUp, exec, ${pkgs.asusctl}/bin/asusctl -n")
(mkIf config.myOptions.services.asusd.enable
", XF86KbdBrightnessDown, exec, ${pkgs.asusctl}/bin/asusctl -p")
(mkIf config.services.asusd.enable
", XF86KbdBrightnessUp, exec, ${config.services.asusd.package}/bin/asusctl -n")
(mkIf config.services.asusd.enable
", XF86KbdBrightnessDown, exec, ${config.services.asusd.package}/bin/asusctl -p")
"$mainMod SHIFT, G, changegroupactive, f"
"$mainMod CONTROL, G, changegroupactive, b"
@ -399,8 +399,8 @@ in {
# run persistent special workspace windows
"[workspace special:nixos silent;tile] cd ~/niksos; ${foot}/bin/foot"
(mkIf config.myOptions.services.asusd.enable
"[workspace special:rog silent;tile] ${pkgs.asusctl}/bin/rog-control-center")
(mkIf config.services.asusd.enable
"[workspace special:rog silent;tile] ${config.services.asusd.package}/bin/rog-control-center")
"[workspace special:keepassxc silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
(if config.myOptions.programs.foot.server then "sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user restart foot.service" else ";")

View file

@ -1,16 +0,0 @@
{
config,
lib,
...
}: with lib; let
cfg = config.myOptions.services.asusd;
in {
options.myOptions.services.asusd.enable = mkEnableOption "enable asusd";
config = mkIf cfg.enable {
services.asusd = {
enable = true;
enableUserService = true;
};
};
}

View file

@ -1,6 +1,5 @@
_: {
imports = [
./asusd.nix
./dunst.nix
./greetd.nix
./mpd.nix

View file

@ -0,0 +1,6 @@
_: {
services.asusd = {
enable = true;
enableUserService = true;
};
}