some flake magic or something

This commit is contained in:
2026-02-21 21:02:47 +01:00
parent 3741241dbb
commit c240678e80
11 changed files with 81 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ isNixOS, ... }:
{
programs.fish = {
@@ -42,7 +42,9 @@
set -l rel_file (realpath --relative-to=$config_dir $file)
if home-manager switch -b backup
if home-manager switch --flake "$config_dir#${
if isNixOS then "nixos" else "arch"
}" -b backup
git add -A
set commit_msg "update: $rel_file"
git commit -m "$commit_msg"