Cleanup And Trying To Add OpenSCAD

This commit is contained in:
Annika Merris 2024-08-28 12:13:06 -04:00
parent e0c1ea8d62
commit 43508d4653
4 changed files with 42 additions and 13 deletions

View file

@ -46,14 +46,23 @@
in
rec
{
nix.settings.extra-substituters = [
"https://cache.lix.systems"
"https://cache.nix.org"
];
nix.settings.trusted-public-keys = [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
nix = {
settings = {
extra-substituters = [
"https://cache.lix.systems"
"https://cache.nix.org"
];
trusted-public-keys = [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
};
gc = {
automatic = true;
randomizedDelaySec = "14m";
options = "--delete-order-than 10d";
};
};
nixosConfigurations = {
kim = import ./hosts/kim {
inherit inputs globals;

View file

@ -92,11 +92,6 @@ inputs.nixpkgs.lib.nixosSystem {
# TODO: Move this out
nix.gc = {
automatic = true;
randomizedDelaySec = "14m";
options = "--delete-older-than 10d";
};
}
];
}

View file

@ -2,6 +2,7 @@
{
imports = [
./nixpkgs-fmt.nix
./openscad.nix
./platformio.nix
./python.nix
./vscode.nix

View 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)
# ]
}