i hate discord so much

This commit is contained in:
Jill 2024-02-07 12:36:18 +03:00
parent a86eea72df
commit 5251310b99
2 changed files with 33 additions and 26 deletions

View File

@ -85,6 +85,7 @@
# distractions
distractions.steam.enable = true;
distractions.discord.enable = true;
distractions.discord.armcord = true;
};
};
}

View File

@ -6,9 +6,11 @@ let
in {
options.modules.software.distractions.discord = {
enable = mkEnableOption "Enable Discord, a social messaging app";
armcord = mkEnableOption "Use Armcord, an alternative Electron client";
};
config = mkIf cfg.enable {
config = mkIf cfg.enable (mkMerge [
(mkIf (!cfg.armcord) {
user.packages = let
flags =
[
@ -33,5 +35,9 @@ in {
'';
});
in [ discord ];
};
})
(mkIf cfg.armcord {
user.packages = with pkgs.unstable; [ armcord ];
})
]);
}