refactor: cleanup modules

This commit is contained in:
ooks-io 2024-04-17 19:57:21 +12:00
parent 08f82791ed
commit 3cea196a1e
3 changed files with 4 additions and 10 deletions

View file

@ -1,13 +1,5 @@
{ lib, ... }:
{ {
imports = [ imports = [
./discord ./discord
]; ];
options.homeModules.desktop.communication = {
discord = {
enable = lib.mkEnableOption "Enable discord module";
};
};
} }

View file

@ -4,10 +4,12 @@ let
cfg = config.homeModules.desktop.communication.discord; cfg = config.homeModules.desktop.communication.discord;
fonts = config.homeModules.theme.fonts; fonts = config.homeModules.theme.fonts;
inherit (config.colorscheme) colors; inherit (config.colorscheme) colors;
inherit (lib) mkIf mkEnableOption;
in 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 ]; home.packages = [ pkgs.vesktop ];
xdg.configFile."vesktop/themes/nix.css".text = /* css */ '' xdg.configFile."vesktop/themes/nix.css".text = /* css */ ''

View file

@ -1,4 +1,4 @@
{lib, config, pkgs, ... }: { lib, config, pkgs, ... }:
let let
cfg = config.homeModules.desktop.creative.audio.audacity; cfg = config.homeModules.desktop.creative.audio.audacity;