{ flake.modules.nixos.nix = { inputs, ... }: { nixpkgs.config.allowUnfree = true; nix = { gc.automatic = true; optimise.automatic = true; registry.nixpkgs.flake = inputs.nixpkgs; channel.enable = false; settings = { trusted-users = [ "@wheel" ]; use-xdg-base-directories = true; auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ]; }; }; }; flake.modules.homeManager.nix = { pkgs, ... }: { home.packages = [ (pkgs.writeShellApplication { name = "ns"; runtimeInputs = [ pkgs.fzf pkgs.nix-search-tv ]; text = builtins.readFile "${pkgs.nix-search-tv.src}/nixpkgs.sh"; }) ]; programs.television = { enable = true; enableZshIntegration = false; }; programs.nix-search-tv = { enable = true; enableTelevisionIntegration = true; }; }; }