From ae9bb69f1fa40ece209ccf4ae74bdaacee4366c2 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 2 Dec 2024 21:29:52 -0600 Subject: [PATCH] fish: add upgrade-nix shortcut --- home/features/cli/fish.nix | 1 + home/features/cli/nixvim.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 home/features/cli/nixvim.nix diff --git a/home/features/cli/fish.nix b/home/features/cli/fish.nix index 093e815..e3159e5 100644 --- a/home/features/cli/fish.nix +++ b/home/features/cli/fish.nix @@ -109,6 +109,7 @@ # Rebuild home-manager switch-home = "home-manager switch -b backup --flake ${config.home.homeDirectory}/.dotfiles#$USER@$(hostname -s)"; switch-nix = "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/.dotfiles"; + upgrade-nix = "nix-channel --update; nix-env --install --attr nixpkgs.nix nixpkgs.cacert"; # Trees tt = "cbonsai -S -t 0.25 -c \"&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,&,🌸,🌺,💮\""; diff --git a/home/features/cli/nixvim.nix b/home/features/cli/nixvim.nix new file mode 100644 index 0000000..830f936 --- /dev/null +++ b/home/features/cli/nixvim.nix @@ -0,0 +1,8 @@ +{ pkgs, lib, ... }: { + + imports = [ + + ]; + + programs.nixvim.enable = true; +} \ No newline at end of file