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