nix and nu related changes

This commit is contained in:
LordMZTE 2024-05-09 22:42:13 +02:00
parent 01abdf5cb6
commit 9ce45bbc79
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 27 additions and 6 deletions

View file

@ -20,10 +20,32 @@ $env.config = {
shell_integration: true
use_kitty_protocol: true
highlight_resolved_externals: true
history: {
file_format: "sqlite"
isolation: true
}
keybindings: [
{
name: new_line_shift
modifier: shift
keycode: enter
mode: vi_insert
event: { edit: insertnewline }
},
]
}
def l [] { ls | sort-by type }
def ll [] { ls -la | sort-by type }
def la [] { ls -a | sort-by type }
# Run-in-Background function
def rbg [...argv] {
# TODO: Use a plugin to track number of running jobs
systemd-run --user ...$argv
}
# Aliases
def l [path: glob = "."] { ls $path | sort-by type }
def ll [path: glob = "."] { ls -la $path | sort-by type }
def la [path: glob = "."] { ls -a $path | sort-by type }
alias nv = nvim
alias nvide = neovide

View file

@ -140,7 +140,7 @@ pub fn populateEnvironment(env: *std.process.EnvMap) !bool {
var b = delimitedWriter(bufstream.writer(), ':');
for ([_][]const u8{
".local/mzte-nix/bin",
".nix-profile/bin",
".mix/escripts",
".cargo/bin",
".local/bin",

View file

@ -3,6 +3,5 @@
(provide run)
(define (run)
(define out (build-path (find-system-path 'home-dir) ".local" "mzte-nix"))
(cmd "nix" "build" ".#mzte-nix" "--impure" "--out-link" out)
(cmd "nix" "profile" "install" ".#mzte-nix" "--impure")
(cmd "nix" "build" ".#cgnix" "--impure" "--out-link" "nix/cgnix/nix.lua"))