{ # flake, inputs, outputs, lib, config, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") inputs.disko.nixosModules.disko # flake.diskoConfigurations.standard ] ++ ( with outputs.nixosModules; [ desktop-usage wifi ] ) ++ (with outputs.homeManagerModules; [ sway ]); nixpkgs = { overlays = [ outputs.overlays.additions outputs.overlays.modifications outputs.overlays.unstable-packages ]; config = { allowUnfree = true; }; }; nix = { registry = lib.mapAttrs (_: value: {flake = value;}) inputs; nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; settings = { experimental-features = "nix-command flakes"; auto-optimise-store = true; }; }; # not necessarily "base", but all my machines are UEFI so... # boot.loader.systemd-boot.enable = true; networking = { firewall = { enable = true; allowPing = true; allowedTCPPorts = [22]; allowedUDPPorts = []; }; }; system.stateVersion = "23.11"; }