From ddb3a85be5c0d7e30c7245385fa94659504abbb6 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 16 Feb 2022 23:54:15 +0100 Subject: [PATCH] Add with pkgs to the top of gui.nix --- modules/gui.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/gui.nix b/modules/gui.nix index 21498a5..28943b3 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -1,5 +1,7 @@ { config, lib, pkgs, ... }: +with pkgs; + { # Display manager services.xserver.enable = true; @@ -18,7 +20,7 @@ # Window manager programs.sway = { enable = true; - extraPackages = with pkgs; [ + extraPackages = [ xwayland swaylock swayidle @@ -59,8 +61,8 @@ }; services.redshift = { - package = pkgs.gammastep; enable = true; + package = gammastep; executable = "/bin/gammastep"; temperature = { day = 6500; @@ -123,6 +125,6 @@ # Enable WebRTC screensharing xdg.portal = { enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-wlr ]; + extraPortals = [ xdg-desktop-portal-wlr ]; }; }