mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 05:31:12 -05:00
Cleanup And Trying To Add OpenSCAD
This commit is contained in:
parent
e0c1ea8d62
commit
43508d4653
4 changed files with 42 additions and 13 deletions
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./nixpkgs-fmt.nix
|
||||
./openscad.nix
|
||||
./platformio.nix
|
||||
./python.nix
|
||||
./vscode.nix
|
||||
|
|
|
|||
24
modules/common/programming/openscad.nix
Normal file
24
modules/common/programming/openscad.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
options = {
|
||||
openscad = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable openSCAD";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.gui.enable && config.openscad.enable) {
|
||||
environment.systemPackages = [
|
||||
pkgs.openscad
|
||||
];
|
||||
lib.mkIf (config.vscode.enable) {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
Leathong.openscad-language-support
|
||||
];
|
||||
};
|
||||
};
|
||||
# config = lib.mkMerge [
|
||||
# (lib.mkIf)
|
||||
# ]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue