{ inputs, ... }: # Applies to any standalone (non-NixOS) home-manager install, where # home-manager owns the user profile on its own instead of being wired in # via a NixOS module. NixOS manages nix.conf/the flake registry and doesn't # need the genericLinux target at all, so this is skipped on NixOS hosts. { targets.genericLinux.enable = true; xdg.configFile."nix/nix.conf".text = "experimental-features = nix-command flakes\n"; xdg.configFile."nix/registry.json".text = builtins.toJSON { version = 2; flakes = [ { from = { type = "indirect"; id = "nixpkgs"; }; to = { type = "path"; path = inputs.nixpkgs.outPath; lastModified = inputs.nixpkgs.lastModified; narHash = inputs.nixpkgs.narHash; }; } ]; }; }