some refactoring and modularizing locale
This commit is contained in:
18
modules/nixos/utils/anyrun/default.nix
Normal file
18
modules/nixos/utils/anyrun/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.nixos.utils.anyrun;
|
||||
in {
|
||||
options = {
|
||||
nixos.utils.anyrun.enable = mkEnableOption "Enables anyrun";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.anyrun
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user