mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 08:43:55 -05:00
user playerctld as systemd service
This commit is contained in:
parent
c3895dc388
commit
f8f1a48ce9
|
@ -129,7 +129,6 @@ in {
|
||||||
(lib.getExe pkgs.mako)
|
(lib.getExe pkgs.mako)
|
||||||
(lib.getExe pkgs.waybar)
|
(lib.getExe pkgs.waybar)
|
||||||
(lib.getExe pkgs.wayland-pipewire-idle-inhibit)
|
(lib.getExe pkgs.wayland-pipewire-idle-inhibit)
|
||||||
(lib.getExe' pkgs.playerctl "playerctld")
|
|
||||||
]
|
]
|
||||||
++ lib.lists.optional (cfg.desktop.redShift)
|
++ lib.lists.optional (cfg.desktop.redShift)
|
||||||
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38"
|
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38"
|
||||||
|
|
|
@ -161,7 +161,6 @@ in {
|
||||||
{command = lib.getExe pkgs.autotiling;}
|
{command = lib.getExe pkgs.autotiling;}
|
||||||
{command = lib.getExe pkgs.mako;}
|
{command = lib.getExe pkgs.mako;}
|
||||||
{command = lib.getExe pkgs.wayland-pipewire-idle-inhibit;}
|
{command = lib.getExe pkgs.wayland-pipewire-idle-inhibit;}
|
||||||
{command = lib.getExe' pkgs.playerctl "playerctld";}
|
|
||||||
]
|
]
|
||||||
++ lib.optional cfg.desktop.redShift
|
++ lib.optional cfg.desktop.redShift
|
||||||
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}
|
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
swaylock.enable = lib.mkDefault true;
|
swaylock.enable = lib.mkDefault true;
|
||||||
waybar.enable = lib.mkDefault true;
|
waybar.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
swayidle.enable = lib.mkDefault true;
|
swayidle.enable = lib.mkDefault true;
|
||||||
swayosd.enable = lib.mkDefault true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,6 +34,11 @@
|
||||||
swayosd
|
swayosd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
playerctld.enable = lib.mkDefault true;
|
||||||
|
swayosd.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configPackages =
|
configPackages =
|
||||||
|
|
|
@ -217,7 +217,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
swayidle.enable = lib.mkEnableOption "Swayidle idle daemon.";
|
swayidle.enable = lib.mkEnableOption "Swayidle idle daemon.";
|
||||||
swayosd.enable = lib.mkEnableOption "On Screen Display (OSD) for volume/brightness/etc.";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
./easyeffects
|
./easyeffects
|
||||||
./mpd
|
./mpd
|
||||||
./swayidle
|
./swayidle
|
||||||
./swayosd
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,8 @@
|
||||||
cfg = config.ar.home;
|
cfg = config.ar.home;
|
||||||
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
||||||
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
|
swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.apps.swayidle.enable {
|
config = lib.mkIf cfg.services.swayidle.enable {
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
config = lib.mkIf config.ar.home.apps.swayosd.enable {
|
|
||||||
services.swayosd.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue