Commit ea245d13bc93

Vincent Demeester <vincent@sbr.pm>
2021-10-29 18:22:02
users/vincent: move autorandr configuration to desktop.nix
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 342ad91
Changed files (2)
users
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;
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 ];