From df7d101411c863841db3c67919cf4e08dd0b239c Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 24 Mar 2024 12:26:11 +0100 Subject: [PATCH] Remove nano, it's bs --- system/default.nix | 2 +- system/{programs/default.nix => programs.nix} | 6 +-- system/programs/nano.nix | 49 ------------------- 3 files changed, 2 insertions(+), 55 deletions(-) rename system/{programs/default.nix => programs.nix} (66%) delete mode 100644 system/programs/nano.nix diff --git a/system/default.nix b/system/default.nix index f3cd87d..f35cdeb 100644 --- a/system/default.nix +++ b/system/default.nix @@ -3,8 +3,8 @@ _: { ./hardware ./boot ./services - ./programs ./nix + ./programs.nix ./system.nix ./network.nix ./localisation.nix diff --git a/system/programs/default.nix b/system/programs.nix similarity index 66% rename from system/programs/default.nix rename to system/programs.nix index b8534b5..e1e2d3c 100644 --- a/system/programs/default.nix +++ b/system/programs.nix @@ -1,8 +1,4 @@ -{ pkgs, lib, ... }: { - imports = [ - ./nano.nix - ]; - +{ pkgs, ... }: { # Basic list of must-have packages for all systems environment.systemPackages = with pkgs; [ vim diff --git a/system/programs/nano.nix b/system/programs/nano.nix deleted file mode 100644 index 4ca7e7c..0000000 --- a/system/programs/nano.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ pkgs, ... }: { - programs.nano = { - # enabled by default anyway, we can keep it in case my neovim config breaks - enable = true; - nanorc = '' - include ${pkgs.nanorc}/share/*.nanorc # extended syntax highlighting - - # Options - # https://github.com/davidhcefx/Modern-Nano-Keybindings - set tabsize 4 - set tabstospaces - set linenumbers - set numbercolor yellow,normal - set indicator # side-bar for indicating cur position - set smarthome # `Home` jumps to line start first - set afterends # `Ctrl+Right` move to word ends instead of word starts - set wordchars "_" # recognize '_' as part of a word - set zap # delete selected text as a whole - set historylog # remember search history - set multibuffer # read files into multibuffer instead of insert - set mouse # enable mouse support - bind M-R redo main - bind ^C copy main - bind ^X cut main - bind ^V paste main - bind ^K zap main - bind ^H chopwordleft all - bind ^Q exit all - bind ^Z suspend main - bind M-/ comment main - bind ^Space complete main - - bind M-C location main - bind ^E wherewas all - bind M-E findprevious all - bind ^R replace main - bind ^B pageup all # vim-like support - bind ^F pagedown all - bind ^G firstline all - bind M-G lastline all - - bind M-1 help all # fix ^G been used - bind Sh-M-C constantshow main # fix M-C, M-F and M-b been used - bind Sh-M-F formatter main - bind Sh-M-B linter main - ''; - }; -} -