generate monitors from home config properly

This commit is contained in:
TheWanderingCrow 2025-07-11 22:07:32 -04:00
parent 8b60957c58
commit 2c168c0bfa
3 changed files with 3 additions and 6 deletions

View file

@ -5,6 +5,7 @@
common/optional/browsers/firefox.nix
common/optional/comms
common/optional/media
common/optional/gaming
];
monitors = [

View file

@ -8,7 +8,7 @@
(
map (m:
if m.enabled
then "output ${m.name} mode ${toString m.width}x${toString m.height}@${toString m.refreshRate}Hz pos ${toString m.x} ${toString m.y} bg ${toString m.background} stretch"
then lib.strings.concatStringsSep "\n" ["output ${m.name} mode ${toString m.width}x${toString m.height}@${toString m.refreshRate}Hz pos ${toString m.x} ${toString m.y} transform ${toString m.transform}" "exec swww img -o ${m.name} ${m.background}"]
else "output ${m.name} disable")
)
config.monitors;

View file

@ -35,13 +35,9 @@
in {
home.packages = [
steam-session
pkgs.vintagestory
#pkgs.vintagestory
pkgs.mudlet
pkgs.r2modman
pkgs.prismlauncher
];
nixpkgs.config.permittedInsecurePackages = [
"dotnet-runtime-7.0.20" # VintageStory dep
];
}