From 65f1230f38c116db95a17bab0dd6ce6e24f68271 Mon Sep 17 00:00:00 2001 From: Bad Date: Fri, 9 Apr 2021 21:20:58 +0200 Subject: [PATCH] redshift and stuff --- profiles/sway/default.nix | 12 ++++++++++++ profiles/workstation/default.nix | 1 + users/mae/default.nix | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/profiles/sway/default.nix b/profiles/sway/default.nix index 475c796..cd78dea 100644 --- a/profiles/sway/default.nix +++ b/profiles/sway/default.nix @@ -2,6 +2,18 @@ { xdg.portal.enable = true; + services.geoclue2.enable = true; + location.provider = "geoclue2"; + + services.redshift = { + enable = true; + # Redshift with wayland support isn't present in nixos-19.09 atm. You have to cherry-pick the commit from https://github.com/NixOS/nixpkgs/pull/68285 to do that. + package = pkgs.redshift-wlr; + brightness.night = "0.75"; + extraOptions = [ + "-p redshift-wlr" + ]; + }; sound.enable = true; diff --git a/profiles/workstation/default.nix b/profiles/workstation/default.nix index 51145c7..3e414e0 100644 --- a/profiles/workstation/default.nix +++ b/profiles/workstation/default.nix @@ -7,4 +7,5 @@ libreoffice gimp ]; + services.dbus.packages = with pkgs; [ gnome3.dconf ]; } diff --git a/users/mae/default.nix b/users/mae/default.nix index 6a5d839..8bbfc83 100644 --- a/users/mae/default.nix +++ b/users/mae/default.nix @@ -2,9 +2,14 @@ { home-manager.users.mae = { imports = [ ../profiles/git ]; + home.packages = with pkgs; [ + arc-theme + ]; + home.sessionVariables = { XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; }; + gtk.theme.name = "arc-dark"; programs.zsh = { enable = true; zplug = {