Unified home and system modules!
This commit is contained in:
17
modules/app/discord.nix
Normal file
17
modules/app/discord.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.samfelag.modules.app.discord;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.discord = {
|
||||
enable = mkEnableOption "discord";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.home.packages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user