dotfiles/justfile
winston 1a6686ead9
chore: remove fonts from sops-nix
Ok, hear me out: managing fonts with sops is a huge pain in the butt.
Especially when you need to have your YubiKey plugged in, to have your
terminal render.
2023-03-16 14:13:13 +01:00

39 lines
834 B
Makefile

secret-stage:
git add -f home/secrets/default.nix
secret-unstage:
git restore --staged home/secrets/default.nix
[linux]
boot: secret-stage && secret-unstage
sudo nixos-rebuild boot --flake .
[macos]
check:
darwin-rebuild check --flake .
[linux]
check:
nix flake check .
[macos]
switch: secret-stage && secret-unstage
darwin-rebuild switch --flake .
[linux]
switch: secret-stage && secret-unstage
sudo nixos-rebuild switch --flake .
[linux]
install-fonts:
#!/usr/bin/env bash
set -euo pipefail
mkdir -p $XDG_DATA_HOME/fonts
gpg --decrypt home/secrets/fonts.tgz.gpg | tar -xz -C $XDG_DATA_HOME/fonts --strip-components=1
[macos]
install-fonts:
#!/usr/bin/env bash
set -euo pipefail
mkdir -p ~/Library/Fonts
gpg --decrypt home/secrets/fonts.tgz.gpg | tar -xz -C ~/Library/Fonts --strip-components=1