feat: packages2

This commit is contained in:
Philipp Hochkamp 2022-03-05 12:38:34 +01:00
parent 40f300f95a
commit 7cca126b52
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
home.packages = with pkgs; [
my.scripts
jq
nnn
bat
htop

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
REV=$(curl https://api.github.com/repos/ragon000/nixos-config/branches/main | jq -r .commit.sha)
if [[ $(uname) == "Linux" ]]; then
sudo nixos-rebuild switch --flake "github:ragon000/nixos-config?rev=$REV"
else # Darwin