testing ghostty and lock update, which results in some build errors. rocmrocmrocm
This commit is contained in:
@@ -4,54 +4,72 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib) mkIf mkOption mkEnableOption types;
|
||||
cfg = config.home.programs.discord;
|
||||
in {
|
||||
options = {
|
||||
home.programs.discord.enable = mkEnableOption "Enables discord";
|
||||
home.programs.discord = {
|
||||
enable = mkEnableOption "Enables discord";
|
||||
variant = mkOption {
|
||||
type = types.enum ["stable" "ptb" "canary" "vesktop"];
|
||||
default = "stable";
|
||||
description = "Preferred package version to use";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [vesktop];
|
||||
home.packages = let
|
||||
variant = cfg.variant or "stable";
|
||||
in
|
||||
if variant == "stable"
|
||||
then [pkgs.discord]
|
||||
else if variant == "ptb"
|
||||
then [pkgs.discord-ptb]
|
||||
else if variant == "canary"
|
||||
then [pkgs.discord-canary]
|
||||
else if variant == "vesktop"
|
||||
then [pkgs.vesktop]
|
||||
else throw "Unknown package variant: ${variant}";
|
||||
|
||||
xdg.configFile."vesktop/themes/base16.css".text =
|
||||
/*
|
||||
css
|
||||
*/
|
||||
''
|
||||
/**
|
||||
* @name Material Gruvbox
|
||||
* @.
|
||||
* @author Costeer
|
||||
* @version 1.5.0
|
||||
* @website https://github.com/Costeer
|
||||
* @source https://github.com/Costeer/Gruvbox-Material-Themes
|
||||
*/
|
||||
|
||||
@import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css);
|
||||
|
||||
:root {
|
||||
--accentcolor: 137, 180, 130;
|
||||
--accentcolor2: 211, 134, 155;
|
||||
--linkcolor: 125, 174, 163;
|
||||
--mentioncolor: 211, 134, 155;
|
||||
--textbrightest: 221, 199, 161;
|
||||
--textbrighter: 212, 190, 152;
|
||||
--textbright: 168, 153, 132;
|
||||
--textdark: 146, 131, 116;
|
||||
--textdarker: 146, 131, 116;
|
||||
--textdarkest: 80, 80, 80;
|
||||
--font: Input Sans Narrow;
|
||||
--main-font: Input Sans Narrow;
|
||||
--code-font: Input Mono Compressed;
|
||||
--backgroundaccent: 80, 73, 69;
|
||||
--backgroundprimary: 60, 56, 54;
|
||||
--backgroundsecondary: 50, 48, 47;
|
||||
--backgroundsecondaryalt: 40, 40, 40;
|
||||
--backgroundtertiary: 29, 32, 33;
|
||||
--backgroundfloating: 20, 22, 23;
|
||||
--settingsicons: 1;
|
||||
}
|
||||
|
||||
'';
|
||||
xdg.configFile = mkIf (cfg.variant == "vesktop") {
|
||||
"vesktop/themes/base16.css".text =
|
||||
/*
|
||||
css
|
||||
*/
|
||||
''
|
||||
/**
|
||||
* @name Material Gruvbox
|
||||
* @.
|
||||
* @author Costeer
|
||||
* @version 1.5.0
|
||||
* @website https://github.com/Costeer
|
||||
* @source https://github.com/Costeer/Gruvbox-Material-Themes
|
||||
*/
|
||||
@import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css);
|
||||
:root {
|
||||
--accentcolor: 137, 180, 130;
|
||||
--accentcolor2: 211, 134, 155;
|
||||
--linkcolor: 125, 174, 163;
|
||||
--mentioncolor: 211, 134, 155;
|
||||
--textbrightest: 221, 199, 161;
|
||||
--textbrighter: 212, 190, 152;
|
||||
--textbright: 168, 153, 132;
|
||||
--textdark: 146, 131, 116;
|
||||
--textdarker: 146, 131, 116;
|
||||
--textdarkest: 80, 80, 80;
|
||||
--font: Input Sans Narrow;
|
||||
--main-font: Input Sans Narrow;
|
||||
--code-font: Input Mono Compressed;
|
||||
--backgroundaccent: 80, 73, 69;
|
||||
--backgroundprimary: 60, 56, 54;
|
||||
--backgroundsecondary: 50, 48, 47;
|
||||
--backgroundsecondaryalt: 40, 40, 40;
|
||||
--backgroundtertiary: 29, 32, 33;
|
||||
--backgroundfloating: 20, 22, 23;
|
||||
--settingsicons: 1;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user