Regenerated
This commit is contained in:
+339
-336
File diff suppressed because it is too large
Load Diff
+7
-4
@@ -1364,8 +1364,8 @@ in
|
||||
{ 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
|
||||
@@ -1374,11 +1374,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;
|
||||
};
|
||||
};
|
||||
@@ -1386,7 +1389,7 @@ in
|
||||
{
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
home.file = builtins.listToAttrs (map toFileEntry scriptFiles);
|
||||
home.file = builtins.listToAttrs (map toFileEntry allFiles);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user