{ inputs, ... }: { environment.etc."nix/flake-channels/nixpkgs".source = inputs.nixpkgs; nix = { registry.nixpkgs.flake = inputs.nixpkgs; nixPath = [ "nixpkgs=/etc/nix/flake-channels/nixpkgs" ]; settings = { experimental-features = [ "nix-command" "flakes" ]; builders-use-substitutes = true; auto-optimise-store = true; warn-dirty = false; trusted-users = [ "@wheel" ]; substituters = [ "https://nix-community.cachix.org" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; }; }; nixpkgs.config.allowUnfree = true; }