refactor(nixos): inline module enable conditions
This commit was merged in pull request #134.
This commit is contained in:
1 parent
d53246caf0
commit
f48bac5ec1
33 files changed
+33
-78
No files matched your search
@@ -6,14 +6,13 @@
|
||||
}:
|
||||
# Alacritty as the desktop terminal.
|
||||
let
|
||||
cfg = config.modules.desktop.apps.alacritty; # NOLINT(let_order)
|
||||
user = config.user.name;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.apps.alacritty.enable =
|
||||
lib.mkEnableOption "Alacritty as the desktop terminal";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = lib.mkIf config.modules.desktop.apps.alacritty.enable {
|
||||
home-manager.users.${user}.home.packages = [ pkgs.alacritty ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user