Regenerated

This commit is contained in:
2026-04-11 19:54:13 +02:00
parent 9e1439ce32
commit e207bc367b
3 changed files with 353 additions and 344 deletions
@@ -2,8 +2,8 @@
{ lib, config, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
scriptsPath = flakeRoot + "/generated/.config/scripts";
scriptFiles = lib.filesystem.listFilesRecursive scriptsPath;
configPath = flakeRoot + "/generated/.config";
allFiles = lib.filesystem.listFilesRecursive configPath;
toRelative = file:
let
@@ -12,11 +12,14 @@ let
in
builtins.unsafeDiscardStringContext relative;
isShellScript = file:
lib.hasSuffix ".sh" (toString file);
toFileEntry = file: {
name = toRelative file;
value = {
source = file;
executable = true;
executable = isShellScript file;
force = true;
};
};
@@ -24,7 +27,7 @@ in
{
home-manager.users = {
${username} = {
home.file = builtins.listToAttrs (map toFileEntry scriptFiles);
home.file = builtins.listToAttrs (map toFileEntry allFiles);
};
};
}