mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-06-07 04:29:30 +00:00
~
This commit is contained in:
parent
58e551abb2
commit
f2e479415c
2 changed files with 14 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ result/
|
|||
result
|
||||
*.img
|
||||
*.img.*
|
||||
|
||||
|
|
25
Justfile
25
Justfile
|
@ -1,27 +1,28 @@
|
|||
default:
|
||||
@just --list
|
||||
@just --list
|
||||
|
||||
rebuild host operation:
|
||||
sudo nixos-rebuild {{operation}} --flake ./nixos#{{host}}
|
||||
sudo nixos-rebuild {{operation}} --flake ./nixos#{{host}}
|
||||
|
||||
home-rebuild operation:
|
||||
home-manager {{operation}} --flake ./nixos
|
||||
home-manager {{operation}} --flake ./nixos
|
||||
|
||||
switch host:
|
||||
just rebuild {{host}} switch
|
||||
just home-rebuild switch
|
||||
just rebuild {{host}} switch
|
||||
just home-rebuild switch
|
||||
|
||||
clean:
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||
nix-collect-garbage -d
|
||||
nix store optimise
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old
|
||||
nix-collect-garbage -d
|
||||
nix store optimise
|
||||
|
||||
# commit local changes and push to upstream
|
||||
push:
|
||||
@git add .
|
||||
git commit -m "~"
|
||||
git push
|
||||
@git add .
|
||||
git commit -m "~"
|
||||
git push
|
||||
|
||||
# run `switch` on default host
|
||||
sd:
|
||||
@just switch ioides
|
||||
@just switch ioides
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue