mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 11:05:23 -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
25
flake.nix
25
flake.nix
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -92,11 +92,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
|
||||
# TODO: Move this out
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
randomizedDelaySec = "14m";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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