Add nixos-update script

Just calls nixos-rebuild switch using flake input
This commit is contained in:
Evie Litherland-Smith 2024-01-30 09:29:47 +00:00
parent f0318b4198
commit 228e89c4fd
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = [ home.packages = [
(pkgs.writeShellScriptBin "nixos-update"
(builtins.readFile ./nixos-update.sh))
(pkgs.writeShellScriptBin "git-sync-all" (pkgs.writeShellScriptBin "git-sync-all"
(builtins.readFile ./git-sync-all.sh)) (builtins.readFile ./git-sync-all.sh))
(pkgs.writeShellScriptBin "rsync-local-config" (pkgs.writeShellScriptBin "rsync-local-config"

2
home/scripts/nixos-update.sh Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo nixos-rebuild switch --flake flake:nixos --refresh