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 in
rec rec
{ {
nix.settings.extra-substituters = [ nix = {
"https://cache.lix.systems" settings = {
"https://cache.nix.org" extra-substituters = [
]; "https://cache.lix.systems"
"https://cache.nix.org"
nix.settings.trusted-public-keys = [ ];
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" trusted-public-keys = [
]; "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
};
gc = {
automatic = true;
randomizedDelaySec = "14m";
options = "--delete-order-than 10d";
};
};
nixosConfigurations = { nixosConfigurations = {
kim = import ./hosts/kim { kim = import ./hosts/kim {
inherit inputs globals; inherit inputs globals;

View file

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

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./nixpkgs-fmt.nix ./nixpkgs-fmt.nix
./openscad.nix
./platformio.nix ./platformio.nix
./python.nix ./python.nix
./vscode.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)
# ]
}