mv arduino to modules

This commit is contained in:
smayzy 2025-07-21 13:55:23 +02:00
parent b100324fba
commit 763cd548f4
6 changed files with 24 additions and 1 deletions

View File

@ -18,7 +18,6 @@
environment.systemPackages = with pkgs; [
home-manager
arduino-ide
calibre
tor
tshark

View File

@ -18,6 +18,7 @@
./vpn
./utilities
./flatpak
./ide
];
# Timzone and locales (same for all machines so I put it here)

View File

@ -39,6 +39,7 @@ in
dev.enable = true;
gaming.enable = true;
};
arduino.enable = true;
};
};
}

View File

@ -37,6 +37,7 @@ in
dev.enable = true;
media.enable = true;
};
arduino.enable = true;
};
services.logind.lidSwitch = "ignore";
};

View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.arduino.enable = mkOption {
type = types.bool;
default = false;
description = "arduino ide";
};
config = mkIf config.smayzy.arduino.enable {
environment.systemPackages = with pkgs; [ arduino-ide ];
};
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./arduino.nix
];
}