moar modules

This commit is contained in:
Tristan 2023-05-07 09:17:27 +01:00
parent a1175ba492
commit 011009d22f
17 changed files with 556 additions and 240 deletions

View file

@ -11,7 +11,10 @@ let
"monitor = " + display.name +
", " + resToString display.resolution +
", " + display.position +
", " + toString display.scaling;
", " + toString display.scaling +
(if ( display.wallpaper != "" ) then ''
exec-once = ${pkgs.swaybg}/bin/swaybg -o ${display.name} -i ${display.wallpaper} &
'' else "");
resolutionType = types.submodule ({ x, y, freq, ... }:
{
@ -52,6 +55,10 @@ let
description = "XxY";
default = "auto";
};
wallpaper = mkOption {
description = "path to wallpaper";
default = "";
};
};
});