topLevel: { flake.modules.nixos."hosts/yggdrasil" = { inputs, lib, pkgs, ... }: { nixpkgs = { config.allowUnfree = true; }; # Enable binfmt emulation. boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; environment.systemPackages = with pkgs; [ teamviewer teams-for-linux obsidian diebahn termscp nixpkgs-review ]; services.teamviewer.enable = true; environment.pathsToLink = [ "/libexec" ]; programs.ssh.extraConfig = '' AddressFamily inet ''; imports = with topLevel.config.flake.modules.nixos; [ inputs.nixos-hardware.nixosModules.common-cpu-amd inputs.nixos-hardware.nixosModules.common-pc inputs.nixos-hardware.nixosModules.common-pc-ssd inputs.catppuccin.nixosModules.catppuccin # System modules base dev desktop games # hardware audio bluetooth amdgpu # desktops # hyprland niri # apps _1password # Users cholli root ]; nix = { distributedBuilds = true; settings.builders-use-substitutes = true; buildMachines = [ { hostName = "192.168.178.2"; sshUser = "remotebuild"; sshKey = "/root/.ssh/remotebuild"; systems = [ "aarch64-linux" ]; protocol = "ssh-ng"; supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ]; } ]; }; }; }