mv arduino to modules
This commit is contained in:
parent
b100324fba
commit
763cd548f4
@ -18,7 +18,6 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
arduino-ide
|
||||
calibre
|
||||
tor
|
||||
tshark
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
./vpn
|
||||
./utilities
|
||||
./flatpak
|
||||
./ide
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
@ -39,6 +39,7 @@ in
|
||||
dev.enable = true;
|
||||
gaming.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -37,6 +37,7 @@ in
|
||||
dev.enable = true;
|
||||
media.enable = true;
|
||||
};
|
||||
arduino.enable = true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
15
modules/nix/ide/arduino.nix
Normal file
15
modules/nix/ide/arduino.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
6
modules/nix/ide/default.nix
Normal file
6
modules/nix/ide/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./arduino.nix
|
||||
];
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user