Add nixos-update script
Just calls nixos-rebuild switch using flake input
This commit is contained in:
parent
f0318b4198
commit
228e89c4fd
|
@ -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
2
home/scripts/nixos-update.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo nixos-rebuild switch --flake flake:nixos --refresh
|
Loading…
Reference in a new issue