helm/hosts/curve/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-10 06:59:41 -07:00
{ profiles, suites, ... }:
{
imports = [
./configuration.nix
profiles.users.anish
2021-10-12 05:35:18 -07:00
#profiles.users.profiles.firefox
#profiles.users.profiles.desktop
2021-11-13 09:47:38 -08:00
profiles.users.profiles.email
profiles.users.profiles.cal
2021-11-29 04:11:58 -08:00
profiles.wireguard
2021-11-13 09:47:38 -08:00
profiles.mossnet-hosts
2021-10-10 06:59:41 -07:00
] ++ suites.curve;
2021-11-13 09:47:38 -08:00
home-manager.users.anish = { self, suites, ... }: {
imports = [ ] ++ suites.hmBase;
2021-10-13 05:52:50 -07:00
};
2021-10-10 06:59:41 -07:00
#bud.enable = true;
2021-11-29 04:11:58 -08:00
# enable adb
# TODO move this (it's for KaiOS WebIDE devShell?)
programs.adb.enable = true;
virtualisation.docker.enable = true; # temp for KaiOS hack
services.udev.extraRules = ''
# Qualcomm EDL
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9008", MODE="0666", GROUP="plugdev"
# Qualcomm Memory Debug
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9006", MODE="0666", GROUP="plugdev"
'';
boot.blacklistedKernelModules = [ "qcserial" ];
users.users.anish.extraGroups = ["adbusers" "docker" "plugdev"];
# enable wireguard tunnel
# privKey = "/run/secrets/curve-wg"; -> local config
# publicKey = "..."; -> shipped to server config
# IP = "10.0.69.2"; -> shipped to both configs
2021-10-10 06:59:41 -07:00
}