fix justfile

This commit is contained in:
Tyrel Souza 2023-01-17 21:16:37 -05:00
parent 4628fda65f
commit 5e8240b29f
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E

View File

@ -4,7 +4,7 @@
OS := if "${HOME}" =~ '/U.*' { OS := if "${HOME}" =~ '/U.*' {
"macos" "macos"
} else { } else {
if `cat /etc/issue` =~ "Deb.*" { "debian" } else { "ubuntu" } if `cat /etc/issue 2>/dev/null || true` =~ "Deb.*" { "debian" } else { "ubuntu" }
} }
HOSTNAME := `hostname| sed 's/.local//'` HOSTNAME := `hostname| sed 's/.local//'`
NIXPATH := "nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels" NIXPATH := "nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels"
@ -48,7 +48,7 @@ clean:
vimpacker: vimpacker:
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
rebuild: git-add clean rebuild: git-add
just rebuild-{{OS}} just rebuild-{{OS}}
rebuild-macos: rebuild-macos:
@ -57,7 +57,9 @@ rebuild-macos:
rebuild-ubuntu: rebuild-ubuntu:
NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv
NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}} NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}}
just clean
rebuild-debian: rebuild-debian:
NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv
NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}} NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}}
just clean