commit be32134108d4287727f7c7ff5b76b4b9974f1aa7
parent 11e7997cbe759b939244bebd7e616153cd3aa330
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 21 May 2020 13:45:01 +0200
machines: clean sandbox machines
I need it to be quick to setup, not full fledge…
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 1 insertion(+), 29 deletions(-)
diff --git a/machines/sandbox.nix b/machines/sandbox.nix
@@ -1,27 +1,8 @@
{ config, pkgs, ... }:
-with import ../assets/machines.nix; {
+{
networking = {
firewall.enable = false; # we are in safe territory :D
- # Move this to private/*.nix
- hosts = {
- "${home.ips.honshu}" = [ "honshu.home" ];
- "${wireguard.ips.honshu}" = [ "honshu.vpn" ];
- "${home.ips.shikoku}" = [ "shikoku.home" ];
- "${wireguard.ips.shikoku}" = [ "shikoku.vpn" ];
- "${home.ips.wakasu}" = [ "wakasu.home" ];
- "${wireguard.ips.wakasu}" = [ "wakasu.vpn" ];
- "${home.ips.hokkaido}" = [ "hokkaido.home" ];
- "${wireguard.ips.hokkaido}" = [ "hokkaido.vpn" ];
- "${home.ips.sakhalin}" = [ "sakhalin.home" ];
- "${wireguard.ips.sakhalin}" = [ "sakhalin.vpn" ];
- "${wireguard.ips.massimo}" = [ "massimo.vpn" ];
- "${home.ips.synodine}" = [ "synodine.home" ];
- "${home.ips.okinawa}" = [ "okinawa.home" "cache.home" "svc.home" "nix.cache.home" "go.cache.home" ];
- "${wireguard.ips.okinawa}" = [ "okinawa.vpn" ];
- "${wireguard.ips.carthage}" = [ "carthage.vpn" ];
- "${wireguard.ips.kerkouane}" = [ "kerkouane.vpn" ];
- };
networkmanager = {
dns = "dnsmasq";
};
@@ -29,18 +10,9 @@ with import ../assets/machines.nix; {
profiles = {
dev.enable = true;
nix-config.buildCores = 4;
- #qemu-user = { arm = true; aarch64 = true; };
ssh = {
enable = true;
forwardX11 = true;
};
};
- programs = {
- podman.enable = true;
- };
- security.sudo = {
- extraConfig = ''
- %users ALL = (root) NOPASSWD: /home/vincent/.nix-profile/bin/kubernix
- '';
- };
}