Compare commits

..

3 Commits

Author SHA1 Message Date
Dave Gallant
a840229bb8 Cleanup justfile 2024-03-16 11:33:01 -04:00
Dave Gallant
d70ee19e2a nix flake update: 2024-03-16 15:06:51 UTC
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/b1d47989352fcb722a1f19295a9461ed1ef8435a' (2024-03-15)
  → 'github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212' (2024-03-15)
2024-03-16 11:06:51 -04:00
Dave Gallant
6cebdc98fc Fix rollback errors and alias u to update 2024-03-16 11:05:56 -04:00
2 changed files with 7 additions and 6 deletions

6
flake.lock generated
View File

@@ -187,11 +187,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1710503106,
"narHash": "sha256-WQenjcuNH9cnEYqh/PFxpmjK9PQnEPGt1Z7TCfYBhXs=",
"lastModified": 1710534455,
"narHash": "sha256-huQT4Xs0y4EeFKn2BTBVYgEwJSv8SDlm82uWgMnCMmI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b1d47989352fcb722a1f19295a9461ed1ef8435a",
"rev": "9af9c1c87ed3e3ed271934cb896e0cdd33dae212",
"type": "github"
},
"original": {

View File

@@ -1,15 +1,16 @@
set export
config := "machines/$(hostname)/configuration.nix"
alias u := update
arch := `uname -s`
cmd := if arch == "Linux" { "nixos-rebuild --use-remote-sudo" } else { "darwin-rebuild" }
rebuild:
$cmd switch --flake . -I nixos-config=$config
$cmd switch --flake . -I nixos-config="machines/$(hostname)/configuration.nix"
rollback:
$cmd switch --rollback -I nixos-config=$config
$cmd switch --rollback --flake .
update:
@./nix-flake-update.sh