Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Gallant
a1b613fb0c nix flake update: 2024-02-22 00:57:22 UTC
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e0da498ad77ac8909a980f07eff060862417ccf7' (2024-02-18)
  → 'github:NixOS/nixpkgs/526d051b128b82ae045a70e5ff1adf8e6dafa560' (2024-02-20)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/f33dd27a47ebdf11dc8a5eb05e7c8fbdaf89e73f' (2024-02-20)
  → 'github:NixOS/nixpkgs/b50a77c03d640716296021ad58950b1bb0345799' (2024-02-21)
2024-02-21 19:57:22 -05:00
Dave Gallant
0a44de200d Create nix-flake-update.sh 2024-02-21 19:56:50 -05:00
3 changed files with 16 additions and 11 deletions

View File

@@ -21,11 +21,7 @@ rollback:
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix"
update:
nix flake update
make
git add .
git commit -S -m "nix flake update: $$(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')"
git push
@./nix-flake-update.sh
fmt:
alejandra .

12
flake.lock generated
View File

@@ -204,11 +204,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1708407374,
"narHash": "sha256-EECzarm+uqnNDCwaGg/ppXCO11qibZ1iigORShkkDf0=",
"lastModified": 1708501555,
"narHash": "sha256-zJaF0RkdIPbh8LTmnpW/E7tZYpqIE+MePzlWwUNob4c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f33dd27a47ebdf11dc8a5eb05e7c8fbdaf89e73f",
"rev": "b50a77c03d640716296021ad58950b1bb0345799",
"type": "github"
},
"original": {
@@ -220,11 +220,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1708294118,
"narHash": "sha256-evZzmLW7qoHXf76VCepvun1esZDxHfVRFUJtumD7L2M=",
"lastModified": 1708440434,
"narHash": "sha256-XY+B9mbhL/i+Q6fP6gBQ6P76rv9rWtpjQiUJ+DGtaUg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e0da498ad77ac8909a980f07eff060862417ccf7",
"rev": "526d051b128b82ae045a70e5ff1adf8e6dafa560",
"type": "github"
},
"original": {

9
nix-flake-update.sh Executable file
View 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