# # # { config, pkgs, lib, ... }: { imports = [ # base { programs.adb.enable = true; } # #{ # netboot_server = { # network.wan = "wlp3s0"; # network.lan = "enp0s25"; # }; #} # Restore: # systemctl cat borgbackup-job-state # export BORG_PASSCOMMAND BORG_REPO BORG_RSH # borg list "$BORG_REPO" # mount newroot somewhere && cd somewhere # borg extract "$BORG_REPO::x-state-2019-04-17T01:41:51" --progress # < extract to cwd # # Debugging # # # Testing # # # # # # # # # # Krebs # # # applications # # Virtualization # # #{ # networking.firewall.allowedTCPPorts = [ 8080 ]; # networking.nat = { # enable = true; # externalInterface = "wlp3s0"; # internalInterfaces = [ "vboxnet0" ]; # }; #} # Services # # # # { nixpkgs.overlays = [ (self: super: super.prefer-remote-fetch self super) ]; } # Hardware # + bluetooth # # # # # # # Filesystem # Security # 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="; #} ]; }; } ]; makefu.server.primary-itf = "wlp3s0"; nixpkgs.config.allowUnfree = true; nixpkgs.config.oraclejdk.accept_license = 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" "prism" "nextgum" "wbob" ]; # 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/bin" "/home/makefu/.gnupg" "/home/makefu/.imapfilter" "/home/makefu/.mutt" "/home/makefu/docs" "/home/makefu/notes" "/home/makefu/.password-store" "/home/makefu/.secrets-pass" "/home/makefu/.config/syncthing" ]; services.syncthing.user = lib.mkForce "makefu"; services.syncthing.dataDir = lib.mkForce "/home/makefu/.config/syncthing/"; }