From c868665bc019e4476c09cc507ddc7c37762fb6eb Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 23 Oct 2023 08:29:58 +0100 Subject: [PATCH] Replace command-not-found with nix-index Add nano syntax highlighting --- flake.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 900b622f..daf7c9e3 100644 --- a/flake.nix +++ b/flake.nix @@ -82,7 +82,25 @@ systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; - programs.${shell}.enable = true; + programs = { + ${shell}.enable = true; + nano = { + enable = true; + syntaxHighlight = true; + nanorc = '' + set nowrap + set tabstospaces + set tabsize 2 + ''; + }; + command-not-found.enable = false; + nix-index = { + enable = true; + enableBashIntegration = true; + enableFishIntegration = true; + enableZshIntegration = true; + }; + }; nix = { enable = true; settings = { @@ -90,7 +108,10 @@ auto-optimise-store = true; }; channel.enable = false; - nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; + nixPath = [ + "nixpkgs=${pkgs.path}" + "/nix/var/nix/profiles/per-user/root/channels" + ]; registry = { nixpkgs.to = { type = "path";