mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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")
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.night-light.enable = lib.mkEnableOption "";
|
||||
options.myConfig.de.gammastep.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.night-light.enable {
|
||||
config = lib.mkIf config.myConfig.de.gammastep.enable {
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.myConfig;
|
||||
cfg = config.myConfig.de;
|
||||
in
|
||||
{
|
||||
options.myConfig.theme = lib.mkOption { type = lib.types.str; };
|
||||
options.myConfig.de.theme = lib.mkOption { type = lib.types.str; };
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf ((cfg.theme == "dark") || (cfg.theme == "light")) {
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
dark = "";
|
||||
light = "GitHub";
|
||||
}
|
||||
.${config.myConfig.theme};
|
||||
.${config.myConfig.de.theme};
|
||||
in
|
||||
{
|
||||
cat = "bat --plain --theme=${theme}";
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
dark = "GitHub Dark";
|
||||
light = "GitHub Light";
|
||||
}
|
||||
.${config.myConfig.theme};
|
||||
.${config.myConfig.de.theme};
|
||||
"workbench.iconTheme" = "material-icon-theme";
|
||||
"editor.fontFamily" = "JetBrainsMono Nerd Font";
|
||||
"explorer.confirmDelete" = false;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
imports = [ ../home.nix ];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
myConfig.theme = "light";
|
||||
myConfig.de.theme = "light";
|
||||
|
||||
wayland.windowManager.hyprland.settings.monitor = [
|
||||
"eDP-1,1920x1080@60,0x0,1"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
imports = [ ../home.nix ];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
myConfig.theme = "dark";
|
||||
myConfig.de.theme = "dark";
|
||||
|
||||
home.packages = [
|
||||
pkgs.ffmpeg
|
||||
|
|
|
|||
|
|
@ -15,14 +15,13 @@
|
|||
git.enable = true;
|
||||
vscode.enable = true;
|
||||
equalizer.enable = true;
|
||||
night-light.enable = true;
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
wrappers.bottom
|
||||
pkgs.fastfetch
|
||||
|
||||
(wrappers.kitty { inherit (config.myConfig) theme; })
|
||||
(wrappers.kitty { inherit (config.myConfig.de) theme; })
|
||||
wrappers.firefox
|
||||
pkgs.nemo-with-extensions
|
||||
pkgs.jetbrains.idea-community
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue