Port iogamasters hyprland config
This commit is contained in:
47
modules/home/desktop/default.nix
Normal file
47
modules/home/desktop/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||
cfg = config.modules.desktop;
|
||||
in
|
||||
{
|
||||
options.modules.desktop =
|
||||
with lib.frajul;
|
||||
with lib.types;
|
||||
{
|
||||
colorscheme = mkOpt str "catppuccin-mocha" "Theme to use for the desktop";
|
||||
enable = mkBoolOpt false "Enable desktop";
|
||||
};
|
||||
|
||||
# Do not make conditional, just toggle things on and off
|
||||
imports = [
|
||||
inputs.prism.homeModules.prism
|
||||
inputs.nix-colors.homeManagerModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
prism = {
|
||||
enable = true;
|
||||
wallpapers = ./wallpapers;
|
||||
colorscheme = inputs.nix-colors.colorschemes.${cfg.colorscheme};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = inputs.nix-colors.colorschemes.${cfg.colorscheme}.slug;
|
||||
package = gtkThemeFromScheme { scheme = inputs.nix-colors.colorschemes.${cfg.colorscheme}; };
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user