all repos — nixfiles @ 2903d0b4be122e03f2d824111b17389e838076b5

System and user configuration, managed by nix and home-manager

add projectdo-compatible justfile

Alin
commit

2903d0b4be122e03f2d824111b17389e838076b5

parent

3c53a9150112f5b9412c39d21035423f6fc14251

1 file changed, 19 insertions(+), 0 deletions(-)

changed files
A justfile
@@ -0,0 +1,19 @@
+flake := ".?submodules=1" + +test: + nix flake check + +build: + home-manager switch --flake {{ flake }} + +run action="switch": + #!/usr/bin/env fish + set --local os $(string split -- - $system)[-1] + switch $os: + case "darwin": + sudo darwin-rebuild {{ action }} --flake {{ flake }}#{$hostname} + case "linux": + nixos-rebuild {{ action }} --flake {{ flake }}#{$hostname} + case *: + + end