mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
a
This commit is contained in:
parent
53f63064e8
commit
23fc0ec9a2
1 changed files with 2 additions and 1 deletions
3
justfile
3
justfile
|
|
@ -7,6 +7,7 @@ default:
|
||||||
# Activate the given host or home environment
|
# Activate the given host or home environment
|
||||||
[group('main')]
|
[group('main')]
|
||||||
activate host="":
|
activate host="":
|
||||||
|
nix flake lock
|
||||||
@if [ -z "{{host}}" ]; then \
|
@if [ -z "{{host}}" ]; then \
|
||||||
if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \
|
if [ -f ./configurations/home/$USER@$HOSTNAME.nix ]; then \
|
||||||
echo "Activating home env $USER@$HOSTNAME ..."; \
|
echo "Activating home env $USER@$HOSTNAME ..."; \
|
||||||
|
|
@ -43,4 +44,4 @@ tart-ssh:
|
||||||
[group('misc')]
|
[group('misc')]
|
||||||
fuckboot:
|
fuckboot:
|
||||||
sudo nix-collect-garbage -d
|
sudo nix-collect-garbage -d
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue