Added nu_scripts

This commit is contained in:
Tyler Mayoff 2025-02-08 09:56:15 -05:00
parent c45afedd4a
commit 79681e72a2
2 changed files with 17 additions and 4 deletions

View file

@ -1,9 +1,13 @@
{config, ...}: { {
config,
pkgs,
...
}: {
programs.nushell = { programs.nushell = {
enable = true; enable = true;
shellAliases = # shellAliases =
config.home.shellAliases; # config.home.shellAliases;
extraConfig = '' extraConfig = ''
$env.PATH = ($env.PATH | split row (char esep) | append "~/.nix-profile/bin") $env.PATH = ($env.PATH | split row (char esep) | append "~/.nix-profile/bin")
@ -13,6 +17,12 @@
def gac [] { git add .; git commit } def gac [] { git add .; git commit }
def gacp [] { gac; git push } def gacp [] { gac; git push }
use ${pkgs.nu_scripts}/share/nu_scripts/aliases/git/git-aliases.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/rg/rg-completions.nu *
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/zellij/zellij-completions.nu *
''; '';
}; };
} }

View file

@ -5,6 +5,7 @@
}: { }: {
imports = [../common.nix ../gnome.nix ../home-backup.nix ../gui.nix]; imports = [../common.nix ../gnome.nix ../home-backup.nix ../gui.nix];
nixpkgs.config.allowUnfree = true;
home = { home = {
username = "tyler"; username = "tyler";
homeDirectory = "/home/tyler"; homeDirectory = "/home/tyler";
@ -13,5 +14,7 @@
ventoy ventoy
(config.lib.nixGL.wrap renderdoc) (config.lib.nixGL.wrap renderdoc)
]; ];
stateVersion = "23.11";
}; };
} }