mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Setup gammastep
This commit is contained in:
parent
400e04019c
commit
dfed3e9f53
4 changed files with 27 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
|||
enable = true;
|
||||
auto-gc.enable = true;
|
||||
};
|
||||
night-light.enable = true;
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
enable = true;
|
||||
auto-gc.enable = true;
|
||||
};
|
||||
night-light.enable = true;
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_8;
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@
|
|||
./printing.nix
|
||||
./syncthing.nix
|
||||
./nix-helper.nix
|
||||
./night-light.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
modules/system/night-light.nix
Normal file
24
modules/system/night-light.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.night-light.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.night-light.enable {
|
||||
services.geoclue2 = {
|
||||
enable = true;
|
||||
appConfig.gammastep = {
|
||||
isAllowed = true;
|
||||
isSystem = false;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
settings.general.adjustment-method = "wayland";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue