treewide: add gammastep

This commit is contained in:
Anthony Rodriguez 2024-12-27 23:15:38 +01:00
parent 408750a151
commit c06597fe7f
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
4 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,17 @@
{lib, ...}: {
services.gammastep = {
enable = true;
tray = true;
provider = "geoclue2";
};
systemd.user.services.gammastep = {
Unit = {
PartOf = lib.mkForce [];
After = lib.mkForce ["graphical-session.target"];
};
Service = {
Slice = lib.mkForce "background-graphical.slice";
};
};
}

View file

@ -0,0 +1,15 @@
{
location.provider = "geoclue2";
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
submissionUrl = "https://beacondb.net/v2/geosubmit";
submissionNick = "geoclue";
appConfig.gammastep = {
isAllowed = true;
isSystem = false;
};
};
}

View file

@ -24,17 +24,18 @@ in {
nixos nixos
"${nixos}/hardware/uni-sync.nix" "${nixos}/hardware/uni-sync.nix"
"${nixos}/programs/games.nix"
"${nixos}/services/logind.nix" "${nixos}/services/logind.nix"
"${nixos}/services/greetd.nix" "${nixos}/services/greetd.nix"
"${nixos}/programs/hyprland.nix" "${nixos}/programs/hyprland.nix"
"${nixos}/services/gnome.nix" "${nixos}/services/gnome.nix"
"${nixos}/programs/games.nix"
"${nixos}/services/documentation.nix" "${nixos}/services/documentation.nix"
"${nixos}/services/flatpak.nix" "${nixos}/services/flatpak.nix"
"${nixos}/services/location.nix"
]; ];
home-manager = { home-manager = {
@ -54,6 +55,7 @@ in {
"${hm}/services/flatpak.nix" "${hm}/services/flatpak.nix"
"${hm}/services/syncthing.nix" "${hm}/services/syncthing.nix"
"${hm}/services/gammastep.nix"
]; ];
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };

View file

@ -37,6 +37,8 @@ in {
"${nixos}/services/mail.nix" "${nixos}/services/mail.nix"
"${nixos}/services/documentation.nix" "${nixos}/services/documentation.nix"
"${nixos}/services/location.nix"
]; ];
home-manager = { home-manager = {
@ -55,6 +57,8 @@ in {
"${hm}/services/syncthing.nix" "${hm}/services/syncthing.nix"
"${hm}/terminal/emulators/foot.nix" "${hm}/terminal/emulators/foot.nix"
"${hm}/services/gammastep.nix"
]; ];
extraSpecialArgs = specialArgs; extraSpecialArgs = specialArgs;
}; };