refactor(gs/chupacabra): Vendor urbint config
If I want to build this on TVL's CI I can't reference ~/code/urb/urbos, obviously, so I'll just vendor it here which is fine Change-Id: I40feb4b29fafae1d3bb0119b7cca1613a4582fdc Reviewed-on: https://cl.tvl.fyi/c/depot/+/885 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: BuildkiteCI
This commit is contained in:
parent
ae5c5b88e5
commit
0bd0ca09a3
3 changed files with 32 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
../modules/common.nix
|
||||
../modules/reusable/battery.nix
|
||||
../modules/tvl.nix
|
||||
../modules/urbint.nix
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
./sound.nix
|
||||
./kernel.nix
|
||||
./rtlsdr.nix
|
||||
/home/grfn/code/urb/urbos/system
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -129,9 +128,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
urbos.enable = true;
|
||||
urbos.username = "grfn";
|
||||
|
||||
services.udev.extraRules = ''
|
||||
# UDEV rules for Teensy USB devices
|
||||
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
|
|
31
users/glittershark/system/system/modules/urbint.nix
Normal file
31
users/glittershark/system/system/modules/urbint.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
nix = rec {
|
||||
binaryCaches = [ "https://nix.urbinternal.com" ];
|
||||
trustedBinaryCaches = binaryCaches;
|
||||
requireSignedBinaryCaches = false;
|
||||
};
|
||||
|
||||
services.openvpn.servers.urbint = {
|
||||
config = ''
|
||||
config /root/openvpn/urbint.conf
|
||||
'';
|
||||
autoStart = false;
|
||||
};
|
||||
|
||||
users.users."grfn".extraGroups = [ "docker" ];
|
||||
|
||||
services.clamav = {
|
||||
daemon.enable = true;
|
||||
updater = {
|
||||
enable = true;
|
||||
interval = "daily";
|
||||
frequency = 1; # per day
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue