commit ea245d13bc93a442c2870aaf19d688981c306e64
parent 342ad917229c35d6d3cf851d281154210aa8dab2
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 29 Oct 2021 18:22:02 +0200
users/vincent: move autorandr configuration to desktop.nix
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/users/vincent/default.nix b/users/vincent/default.nix
@@ -90,12 +90,6 @@ in
];
}
]
- ++ optionals (config.profiles.laptop.enable && config.profiles.desktop.enable) [
- {
- # FIXME move this in its own file
- programs.autorandr.enable = true;
- }
- ]
++ optionals config.profiles.docker.enable [
{
home.packages = with pkgs; [ docker docker-compose ];
diff --git a/users/vincent/desktop/default.nix b/users/vincent/desktop/default.nix
@@ -10,6 +10,7 @@
./mpv.nix
./spotify.nix
] ++ lib.optionals nixosConfig.profiles.desktop.i3.enable [ ./i3.nix ];
+
home.sessionVariables = { WEBKIT_DISABLE_COMPOSITING_MODE = 1; };
home.packages = with pkgs; [
aspell
@@ -30,7 +31,9 @@
youtube-dl
my.batzconverter
mpw
- ]; # ++ lib.optionals nixosConfig.profiles.desktop.i3.enable [ pkgs.brave ];
+ ];
+
+ programs.autorandr.enable = nixosConfig.profiles.laptop.enable;
home.file.".XCompose".source = ./xorg/XCompose;
# home.file.".Xmodmap".source = ./xorg/Xmodmap;