@@ -64,6 +64,20 @@ in {
|
||||
# File-picker.
|
||||
home.packages = [ pkgs.nautilus ];
|
||||
|
||||
systemd.user.services.wbg = lib.mkIf (! builtins.isNull cfg.wallpaper) {
|
||||
Unit = {
|
||||
Description = "Desktop wallpaper";
|
||||
After = [ "niri.service" ];
|
||||
PartOf = [ "niri.service" ];
|
||||
};
|
||||
Install.WantedBy = [
|
||||
"niri.service"
|
||||
];
|
||||
Service.ExecStart = ''
|
||||
${lib.getExe pkgs.wbg} "${cfg.wallpaper}"
|
||||
'';
|
||||
};
|
||||
|
||||
programs.niri = {
|
||||
settings = {
|
||||
# Activates some Nixpkgs patches to help run Electron applications under
|
||||
@@ -82,10 +96,7 @@ in {
|
||||
{ command = [ "${pkgs.swaynotificationcenter}/bin/swaync" ]; }
|
||||
++ lib.optional cfg.gammastep.enable
|
||||
{ command = [ "${pkgs.gammastep}/bin/gammastep" "-o" "-O" "4000k"
|
||||
"-b" "0.9:0.9" "-l" "0:0"]; }
|
||||
++ lib.optional
|
||||
(! builtins.isNull cfg.wallpaper)
|
||||
{ command = [ "${pkgs.wbg}/bin/wbg" "${cfg.wallpaper}" ]; };
|
||||
"-b" "0.9:0.9" "-l" "0:0"]; };
|
||||
|
||||
input = {
|
||||
keyboard.xkb = {
|
||||
|
||||
Reference in New Issue
Block a user