justfile defaults to building current machines config.

I think just is still a good fit for this. Much more and a nushell
script might be more appropriate.
This commit is contained in:
Gabe Venberg 2024-03-27 18:05:32 -05:00
parent c5ffac15d3
commit 380b92d50b
3 changed files with 6 additions and 6 deletions

View file

@ -77,12 +77,12 @@
nixvim.homeManagerModules.nixvim
];
};
"gabe@workstation" = home-manager.lib.homeManagerConfiguration {
"gabe@gv-workstation" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = {inherit inputs outputs;};
# > Our main home-manager configuration file <
modules = [
./hosts/gabe-workstation.nix
./hosts/gabe-gv-workstation.nix
nixvim.homeManagerModules.nixvim
];
};

View file

@ -1,16 +1,16 @@
default:
just --list
nixos target:
nixos target=`hostname`:
sudo nixos-rebuild --flake .#{{target}} switch
home-manager target:
home-manager target=(`whoami`+"@"+`hostname`):
home-manager --flake .#{{target}} switch
check-home-manager target:
check-home-manager target=(`whoami`+"@"+`hostname`):
home-manager build --no-out-link --flake .#{{target}}
bootstrap-home-manager target:
bootstrap-home-manager target=(`whoami`+"@"+`hostname`):
nix run --extra-experimental-features "nix-command flakes" --no-write-lock-file github:nix-community/home-manager/ -- --extra-experimental-features "nix-command flakes" --flake .#{{target}} switch
format: