refactor: cleanup modules
This commit is contained in:
parent
08f82791ed
commit
3cea196a1e
3 changed files with 4 additions and 10 deletions
|
|
@ -1,13 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./discord
|
||||
];
|
||||
|
||||
options.homeModules.desktop.communication = {
|
||||
discord = {
|
||||
enable = lib.mkEnableOption "Enable discord module";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@ let
|
|||
cfg = config.homeModules.desktop.communication.discord;
|
||||
fonts = config.homeModules.theme.fonts;
|
||||
inherit (config.colorscheme) colors;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
options.homeModules.desktop.communication.discord.enable = mkEnableOption "Enable discord home manager module";
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.vesktop ];
|
||||
|
||||
xdg.configFile."vesktop/themes/nix.css".text = /* css */ ''
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.desktop.creative.audio.audacity;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue