Reworked home manager configuration to modules
This commit is contained in:
24
modules/home/applications/common.nix
Normal file
24
modules/home/applications/common.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.applications.common;
|
||||
in {
|
||||
options = {
|
||||
settings.applications.common.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable common applications
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
vlc
|
||||
bitwarden
|
||||
pavucontrol
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user