From b21b5fa4c0313b392ad7512179ccb7fbcc5b05a4 Mon Sep 17 00:00:00 2001
From: Julian Mutter <julian.mutter@comumail.de>
Date: Sat, 29 Jul 2023 06:28:59 +0200
Subject: [PATCH] nix: add redshift

---
 nix/configuration.nix | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/nix/configuration.nix b/nix/configuration.nix
index f73fcaa..5b61415 100644
--- a/nix/configuration.nix
+++ b/nix/configuration.nix
@@ -30,6 +30,11 @@
   # Set your time zone.
   time.timeZone = "Europe/Berlin";
 
+  # Set location used by redshift
+  location.provider = "manual";
+  location.latitude = 47.92;
+  location.longitude = 10.12;
+
   # Select internationalisation properties.
   i18n.defaultLocale = "en_US.UTF-8";
 
@@ -172,7 +177,19 @@
   environment.pathsToLink = [ "/share/nix-direnv" ];
   environment.shells = with pkgs; [ zsh ]; # adds zsh to /etc/shells
 
+  # List services that you want to enable:
+
+  # Enable the OpenSSH daemon.
+  services.openssh.enable = false;
+
+  services.syncthing.enable = true;
+  services.syncthing.user = "julian";
+  services.syncthing.group = "julian";
+
+  services.redshift.enable = true;
+
   services.flatpak.enable = true;
+
   xdg.portal.enable = true;
   xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
 
@@ -274,6 +291,7 @@
     zotero
     inkscape
     pulseaudio
+    gcolor3
   ];
 
   nixpkgs.overlays = [
@@ -303,15 +321,6 @@
   #   enableSSHSupport = true;
   # };
 
-  # List services that you want to enable:
-
-  # Enable the OpenSSH daemon.
-  services.openssh.enable = false;
-
-  services.syncthing.enable = true;
-  services.syncthing.user = "julian";
-  services.syncthing.group = "julian";
-
   # Open ports in the firewall.
   # networking.firewall.allowedTCPPorts = [ ... ];
   # networking.firewall.allowedUDPPorts = [ ... ];