Added nixos configs

This commit is contained in:
2026-02-22 19:25:39 +01:00
parent c0f19a200d
commit 8694deed28
9013 changed files with 118058 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
{ 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"
'';
}