mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: more dynamic theming
This commit is contained in:
23
modules/nixos/shell/dunst.nix
Normal file
23
modules/nixos/shell/dunst.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.dunst;
|
||||
in
|
||||
{
|
||||
options.shell.components.dunst = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured dunst setup");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username}.services.dunst = {
|
||||
enable = true;
|
||||
settings = { };
|
||||
};
|
||||
};
|
||||
}
|
||||
37
modules/nixos/shell/waybar.nix
Normal file
37
modules/nixos/shell/waybar.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.waybar;
|
||||
in
|
||||
{
|
||||
options.shell.components.waybar = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured waybar setup");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username}.programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
modules-center = [ "clock" ];
|
||||
modules-right = [
|
||||
"privacy"
|
||||
"tray"
|
||||
];
|
||||
|
||||
"custom/theme" = { };
|
||||
};
|
||||
};
|
||||
systemd = lib.mkIf config.desktops.hyprland.enable {
|
||||
enable = true;
|
||||
target = "hyprland-session.target";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user