Jump to content

Inkscape: Difference between revisions

From Official NixOS Wiki
DHCP (talk | contribs)
m fix indentation
 
Line 6: Line 6:
{{file|/etc/nixos/configuration.nix|nix|
{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
<nowiki>
  environment.systemPackages = with pkgs; [
environment.systemPackages = with pkgs; [
    inkscape
  inkscape
  ];
];
</nowiki>
</nowiki>
}}
}}
Line 21: Line 21:
{{file|/etc/nixos/configuration.nix|nix|
{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
<nowiki>
  environment.systemPackages = with pkgs; [
environment.systemPackages = with pkgs; [
    (inkscape-with-extensions.override {
  (inkscape-with-extensions.override {
      inkscapeExtensions = with inkscape-extensions; [ inkstitch ];
    inkscapeExtensions = with inkscape-extensions; [ inkstitch ];
    })
  })
  ];
];
</nowiki>
</nowiki>
}}
}}

Latest revision as of 06:59, 16 July 2026

Inkscape is a graphical editor for vector images.

Installation

Inkscape can be installed by adding it to the systemPackages:

❄︎ /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
  inkscape
];

Configuration

Plugins/Extensions

Inkscape supports various plugins, which are packages separately in NixOS.

To install only a subset of the available plugins, use inkscape-with-extensions with an override. The example below installs inkscape with only the inkstitch extension:

❄︎ /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
  (inkscape-with-extensions.override {
    inkscapeExtensions = with inkscape-extensions; [ inkstitch ];
  })
];

All plugins can be installed by setting inkscapeExtensions to null.

Available extensions can be found by looking them up in nixpkgs