Added upgrade command to make

This commit is contained in:
2025-05-06 14:20:49 +02:00
parent 5dd1dbe196
commit 7fb0d6e075
2 changed files with 14 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
HOSTNAME ?= $(hostname)
all:
echo "No command provided"
@echo "No command provided"
switch:
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
@@ -9,6 +9,10 @@ switch:
test:
nixos-rebuild test --flake ".#${HOSTNAME}" --use-remote-sudo
upgrade:
sudo nix flake update
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
clean:
sudo nix-collect-garbage -d
sudo nix-store --optimise

18
flake.lock generated
View File

@@ -46,11 +46,11 @@
]
},
"locked": {
"lastModified": 1746317522,
"narHash": "sha256-/jZ4Wd4HHUEWPSlNj48k1E4Mh+1fUbwI/vSlPPIMG3U=",
"lastModified": 1746413188,
"narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "621986fed37c5d0cb8df010ed8369694dc47c09b",
"rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
"type": "github"
},
"original": {
@@ -167,11 +167,11 @@
},
"nixpkgs-stable-darwin": {
"locked": {
"lastModified": 1746301764,
"narHash": "sha256-5odz+NZszRya//Zd0P8h+sIwOnV35qJi+73f4I+iv1M=",
"lastModified": 1746399091,
"narHash": "sha256-q4yTsA+Wkukj/vEQlR7b7+33hWg5jzlvqAWUbZ+QZ5I=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "537ee98218704e21ea465251de512ab6bbb9012e",
"rev": "89140b70abfdc4c22481776e1c9df92fb631b173",
"type": "github"
},
"original": {
@@ -222,11 +222,11 @@
"nuschtosSearch": "nuschtosSearch"
},
"locked": {
"lastModified": 1746309817,
"narHash": "sha256-oqOpTyjdeY+LP+WiU9LxGdZ/bZ9YK7MNzNMDUw98kPM=",
"lastModified": 1746485010,
"narHash": "sha256-KK1prO/dQ0HY17YseXI+udT/WbK4s6YdR2YXJE9kGTU=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "c978122396a4208bf1965d346b7456e7256fe70c",
"rev": "53084257189483605182aaf388696ace02f5d208",
"type": "github"
},
"original": {