mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
"just activate"
This commit is contained in:
parent
ba090bc142
commit
e79eb45efa
1 changed files with 7 additions and 7 deletions
14
justfile
14
justfile
|
|
@ -1,15 +1,15 @@
|
|||
default:
|
||||
@just --list
|
||||
|
||||
# Activate local system configuration
|
||||
[group('main')]
|
||||
system:
|
||||
nix run . $HOSTNAME
|
||||
|
||||
# Activate local home configuration
|
||||
# Activate local configuration (home if exists, else system)
|
||||
[group('main')]
|
||||
home:
|
||||
nix run . $USER@$HOSTNAME
|
||||
activate:
|
||||
if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \
|
||||
set -x; nix run . $USER@$HOSTNAME; \
|
||||
else \
|
||||
set -x; nix run . $HOSTNAME; \
|
||||
fi
|
||||
|
||||
# Update primary flame inputs
|
||||
update:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue