refactor(wayland.utility): utility modules, add gammastep/tools
This commit is contained in:
parent
ed8bad82e2
commit
ba410aa838
3 changed files with 58 additions and 44 deletions
|
|
@ -1,50 +1,17 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.homeModules.desktop.wayland.base;
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
imports = [
|
||||||
home = {
|
./gammastep
|
||||||
packages = with pkgs; [
|
./tools
|
||||||
grim
|
];
|
||||||
gtk3
|
|
||||||
libnotify
|
options.homeModules.desktop.wayland.utility = {
|
||||||
waypipe
|
tools = {
|
||||||
pulseaudio
|
enable = lib.mkEnableOption "Enable wayland specific tools";
|
||||||
pamixer
|
|
||||||
slurp
|
|
||||||
wf-recorder
|
|
||||||
wl-clipboard
|
|
||||||
wl-mirror
|
|
||||||
xdg-utils
|
|
||||||
wlr-randr
|
|
||||||
];
|
|
||||||
sessionVariables = {
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
SDL_VIDEODRIVER = "wayland";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
gammastep = {
|
||||||
systemd.user.targets.tray = {
|
enable = lib.mkEnableOption "Enable gammastep module";
|
||||||
Unit = {
|
|
||||||
Description = "Home Manager System Tray";
|
|
||||||
Requires = ["graphical-session-pre.target"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.gammastep = {
|
|
||||||
# enable = true;
|
|
||||||
# provider = "geoclue2";
|
|
||||||
# temperature = {
|
|
||||||
# day = 6000;
|
|
||||||
# night = 4600;
|
|
||||||
# };
|
|
||||||
# settings = {
|
|
||||||
# general.adjustment-method = "wayland";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
home/modules/desktop/wayland/utility/gammastep/default.nix
Normal file
20
home/modules/desktop/wayland/utility/gammastep/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.desktop.wayland.utility.gammastep;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.gammastep = {
|
||||||
|
enable = true;
|
||||||
|
enableVerboseLogging = true;
|
||||||
|
provider = "geoclue2";
|
||||||
|
temperature = {
|
||||||
|
day = 6000;
|
||||||
|
night = 4000;
|
||||||
|
};
|
||||||
|
settings.general.adjustment-method = "wayland";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
27
home/modules/desktop/wayland/utility/tools/default.nix
Normal file
27
home/modules/desktop/wayland/utility/tools/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.desktop.wayland.utility.tools;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
libnotify
|
||||||
|
wl-screenrec
|
||||||
|
wf-recorder
|
||||||
|
wl-clipboard
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.targets.tray = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Home Manager System Tray";
|
||||||
|
Requires = ["graphical-session-pre.target"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue