add: discord theme
This commit is contained in:
parent
96d7199c3f
commit
82635d7b8b
3 changed files with 275 additions and 2 deletions
33
modules/home-manager/vesktop.nix
Normal file
33
modules/home-manager/vesktop.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.programs.vesktop;
|
||||
package = pkgs.vesktop;
|
||||
in {
|
||||
|
||||
options = {
|
||||
programs.vesktop = {
|
||||
enable = mkEnableOption
|
||||
"vesktop, a custom client for discord";
|
||||
|
||||
theme = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "Custom css theme for vesktop";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
description = "Vesktop settings.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.pakages = [ package ];
|
||||
xdg.configFile."vesktop/theme/custom.css".text = cfg.theme;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue