mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
fix: auto set hostname in build-name and diff
This commit is contained in:
parent
7f930c8c39
commit
1bd1fdb9cf
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
|
@ -11,7 +11,7 @@ build target='':
|
|||
|
||||
[doc('Build a nixos configuration')]
|
||||
[group('deploy')]
|
||||
build-system hostname:
|
||||
build-system hostname=`hostname -s`:
|
||||
@just build nixosConfigurations."{{ hostname }}".config.system.build.toplevel
|
||||
|
||||
[doc('Wrapper for nixos-facter')]
|
||||
|
|
@ -142,7 +142,7 @@ tree *ARGS=("--derivation .#nixosConfigurations." + shell("hostname -s") + ".con
|
|||
|
||||
[doc("Run nix-diff between current system")]
|
||||
[group("tools")]
|
||||
diff: build
|
||||
diff hostname=`hostname -s`: (build-system hostname)
|
||||
{{ nixcmd }} run nixpkgs#nvd -- diff /run/current-system {{ justfile_directory() }}/result
|
||||
|
||||
[doc("Run nurl")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue