mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 01:24:05 -05:00
43 lines
855 B
Nix
43 lines
855 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
monitorConfig =
|
|
(map (
|
|
m:
|
|
if m.enabled 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 dms ipc call wallpaper setFor ${m.name} ${m.background}"
|
|
]
|
|
else
|
|
"output ${m.name} disable"
|
|
))
|
|
config.monitors;
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
../dank
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
foot
|
|
polkit_gnome
|
|
swayidle
|
|
sway-audio-idle-inhibit
|
|
swaylock-effects
|
|
hyprlock
|
|
wljoywake
|
|
];
|
|
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
config = null;
|
|
extraConfig = builtins.readFile ./sway.conf + lib.strings.concatStringsSep "\n" monitorConfig;
|
|
};
|
|
}
|