grimm-nix-shared/default.nix

21 lines
427 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.grimmShared;
in {
options.grimmShared = {
enable = mkEnableOption "grimm-shared-modules";
enableLocale = mkOption {
type = types.bool;
default = true;
description = "Sets german units but english language";
};
};
imports = [] ++
(optionals cfg.enable ([]
++ optionals cfg.enableLocale [./modules/localisation.nix]
));
}