# # # { config, pkgs, lib, ... }: { imports = [ # base # #{ # netboot_server = { # network.wan = "wlp3s0"; # network.lan = "enp0s25"; # }; #} # # Debugging # # # Testing # # # # # # # # # # Krebs # applications # # Virtualization # #{ # networking.firewall.allowedTCPPorts = [ 8080 ]; # networking.nat = { # enable = true; # externalInterface = "wlp3s0"; # internalInterfaces = [ "vboxnet0" ]; # }; #} # Services # # Hardware # # # # Filesystem # Security { programs.adb.enable = true; } # temporary { services.redis.enable = true; } # # # # # # { networking.wireguard.interfaces.wg0 = { ips = [ "10.244.0.2/24" ]; privateKeyFile = (toString ) + "/wireguard.key"; allowedIPsAsRoutes = true; peers = [ { # gum endpoint = "${config.krebs.hosts.gum.nets.internet.ip4.addr}:51820"; allowedIPs = [ "10.244.0.0/24" ]; publicKey = "yAKvxTvcEVdn+MeKsmptZkR3XSEue+wSyLxwcjBYxxo="; } #{ # # vbob # allowedIPs = [ "10.244.0.3/32" ]; # publicKey = "Lju7EsCu1OWXhkhdNR7c/uiN60nr0TUPHQ+s8ULPQTw="; #} ]; }; } # { # services.zerotierone.enable = true; # } ]; makefu.server.primary-itf = "wlp3s0"; nixpkgs.config.allowUnfree = true; # configure pulseAudio to provide a HDMI sink as well networking.firewall.enable = true; networking.firewall.allowedUDPPorts = [ 665 26061 ]; networking.firewall.trustedInterfaces = [ "vboxnet0" ]; krebs.build.host = config.krebs.hosts.x; krebs.tinc.retiolum.connectTo = [ "omo" "gum" "prism" "nextgum" ]; networking.extraHosts = '' 192.168.1.11 omo.local 80.92.65.53 www.wifionice.de wifionice.de ''; # hard dependency because otherwise the device will not be unlocked boot.initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; allowDiscards=true; }]; # avoid full boot dir boot.loader.grub.configurationLimit = 3; environment.systemPackages = [ pkgs.passwdqc-utils ]; # environment.variables = { GOROOT = [ "${pkgs.go.out}/share/go" ]; }; state = [ "/home/makefu/stockholm" "/home/makefu/.ssh/" "/home/makefu/.zsh_history" "/home/makefu/.bash_history" "/home/makefu/.zshrc" "/home/makefu/bin" "/home/makefu/.gnupg" "/home/makefu/.imapfilter" "/home/makefu/.mutt" "/home/makefu/docs" "/home/makefu/.password-store" "/home/makefu/.secrets-pass" ]; services.syncthing.user = lib.mkForce "makefu"; services.syncthing.dataDir = lib.mkForce "/home/makefu/.config/syncthing/"; }