Added and altered aliases

This commit is contained in:
2026-02-23 17:06:49 +01:00
parent aba3df3275
commit b8115d155f
2 changed files with 5 additions and 22 deletions
@@ -20,10 +20,11 @@ alias gcp='git add . && git commit && git push'
alias cd='z' alias cd='z'
alias emt='emacs README.org --batch -f org-babel-tangle && emacs -Q --batch README.org -f org-html-export-to-html' alis sm='cd ~/Repos/nixos/system-master'
alias nxs='cd ~/Repos/nixos/system-master/ && sudo nixos-rebuild switch --flake .#traveldroid' alias emt='sm && emacs README.org --batch -f org-babel-tangle && emacs -Q --batch README.org -f org-html-export-to-html'
alias nxt='cd ~/Repos/nixos/system-master/ && sudo nixos-rebuild test --flake .#traveldroid' alias nxs='sm && sudo nixos-rebuild switch --flake .#traveldroid'
alias nxv='cd ~/Repos/nixos/system-master/ && sudo nixos-rebuild build-vm --flake .#traveldroid && "$(ls -1 ./result/bin/run-*-vm | head -n 1)"' alias nxt='sm && sudo nixos-rebuild test --flake .#traveldroid'
alias nxv='sm && sudo nixos-rebuild build-vm --flake .#traveldroid && "$(ls -1 ./result/bin/run-*-vm | head -n 1)"'
alias rb='systemctl reboot' alias rb='systemctl reboot'
alias po='systemctl poweroff' alias po='systemctl poweroff'
-18
View File
@@ -1,18 +0,0 @@
{ pkgs, user, flakeRoot, lib, ... }:
let
repoConfDir = flakeRoot + "/assets/conf";
in
{
home.activation.copyWritableConf =
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
set -eu
target="$HOME/conf"
# Start fresh to avoid mixed old/new files
rm -rf "$target"
mkdir -p "$target"
# Copy repo content into a normal writable directory
cp -a "${repoConfDir}/." "$target/"
# Ensure the user can edit everything
chmod -R u+rwX "$target"
'';
}