mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 09:06:55 -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
23
flake.nix
23
flake.nix
|
|
@ -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"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
randomizedDelaySec = "14m";
|
||||||
|
options = "--delete-order-than 10d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings.trusted-public-keys = [
|
|
||||||
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
||||||
];
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
kim = import ./hosts/kim {
|
kim = import ./hosts/kim {
|
||||||
inherit inputs globals;
|
inherit inputs globals;
|
||||||
|
|
|
||||||
|
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
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