mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Make gammastep and theming part of DE configuration
This commit is contained in:
parent
aceeeef689
commit
8cc1a65fd8
9 changed files with 12 additions and 12 deletions
|
|
@ -17,7 +17,7 @@
|
|||
systemd.user.services.cliphist.Service.ExecStartPre = "${lib.getExe config.services.cliphist.package} wipe";
|
||||
|
||||
home.packages = [
|
||||
(wrappers.rofi { inherit (config.myConfig) theme; })
|
||||
(wrappers.rofi { inherit (config.myConfig.de) theme; })
|
||||
pkgs.wl-clipboard
|
||||
(pkgs.writeScriptBin "rofi-clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
|
||||
];
|
||||
|
|
|
|||
12
modules/home/de/gammastep.nix
Normal file
12
modules/home/de/gammastep.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.de.gammastep.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.de.gammastep.enable {
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
settings.general.adjustment-method = "wayland";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
wayland.windowManager.hyprland.enable = true;
|
||||
|
||||
home.packages = [
|
||||
(wrappers.rofi { inherit (config.myConfig) theme; })
|
||||
(wrappers.rofi { inherit (config.myConfig.de) theme; })
|
||||
pkgs.wl-clipboard
|
||||
pkgs.playerctl
|
||||
pkgs.brightnessctl
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
hypridle.enable = true;
|
||||
waybar.enable = true;
|
||||
cliphist.enable = true;
|
||||
gammastep.enable = true;
|
||||
};
|
||||
|
||||
services.dunst.enable = true;
|
||||
|
|
|
|||
51
modules/home/de/theme.nix
Normal file
51
modules/home/de/theme.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.myConfig.de;
|
||||
in
|
||||
{
|
||||
options.myConfig.de.theme = lib.mkOption { type = lib.types.str; };
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf ((cfg.theme == "dark") || (cfg.theme == "light")) {
|
||||
gtk = {
|
||||
enable = true;
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
theme.package = pkgs.gnome-themes-extra;
|
||||
iconTheme.package = pkgs.papirus-icon-theme;
|
||||
font.name = "Open Sans";
|
||||
font.package = pkgs.open-sans;
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
style.package = pkgs.adwaita-qt;
|
||||
platformTheme.name = "adwaita";
|
||||
};
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
package = pkgs.bibata-cursors;
|
||||
size = 24;
|
||||
};
|
||||
})
|
||||
|
||||
(lib.mkIf (cfg.theme == "dark") {
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
gtk.theme.name = "Adwaita-dark";
|
||||
gtk.iconTheme.name = "Papirus-Dark";
|
||||
qt.style.name = "adwaita-dark";
|
||||
home.pointerCursor.name = "Bibata-Original-Classic";
|
||||
})
|
||||
|
||||
(lib.mkIf (cfg.theme == "light") {
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-light";
|
||||
gtk.theme.name = "Adwaita";
|
||||
gtk.iconTheme.name = "Papirus";
|
||||
qt.style.name = "adwaita";
|
||||
home.pointerCursor.name = "Bibata-Original-Ice";
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue