mirror of
https://github.com/davegallant/nix-config
synced 2025-10-04 19:16:02 +00:00
Compare commits
2 Commits
616718705c
...
a1b613fb0c
Author | SHA1 | Date | |
---|---|---|---|
|
a1b613fb0c | ||
|
0a44de200d |
6
Makefile
6
Makefile
@@ -21,11 +21,7 @@ rollback:
|
|||||||
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix"
|
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix"
|
||||||
|
|
||||||
update:
|
update:
|
||||||
nix flake update
|
@./nix-flake-update.sh
|
||||||
make
|
|
||||||
git add .
|
|
||||||
git commit -S -m "nix flake update: $$(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')"
|
|
||||||
git push
|
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
alejandra .
|
alejandra .
|
||||||
|
12
flake.lock
generated
12
flake.lock
generated
@@ -204,11 +204,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708407374,
|
"lastModified": 1708501555,
|
||||||
"narHash": "sha256-EECzarm+uqnNDCwaGg/ppXCO11qibZ1iigORShkkDf0=",
|
"narHash": "sha256-zJaF0RkdIPbh8LTmnpW/E7tZYpqIE+MePzlWwUNob4c=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f33dd27a47ebdf11dc8a5eb05e7c8fbdaf89e73f",
|
"rev": "b50a77c03d640716296021ad58950b1bb0345799",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -220,11 +220,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708294118,
|
"lastModified": 1708440434,
|
||||||
"narHash": "sha256-evZzmLW7qoHXf76VCepvun1esZDxHfVRFUJtumD7L2M=",
|
"narHash": "sha256-XY+B9mbhL/i+Q6fP6gBQ6P76rv9rWtpjQiUJ+DGtaUg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e0da498ad77ac8909a980f07eff060862417ccf7",
|
"rev": "526d051b128b82ae045a70e5ff1adf8e6dafa560",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
9
nix-flake-update.sh
Executable file
9
nix-flake-update.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
|
||||||
|
make
|
||||||
|
git add .
|
||||||
|
git commit -S -m "nix flake update: $(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')
|
||||||
|
|
||||||
|
$update_msg"
|
||||||
|
git push
|
Reference in New Issue
Block a user