Disable lvfs and minor bug fix in copy_files util.

This commit is contained in:
Tom Alexander 2025-04-19 20:58:16 -04:00
parent 56c0add33f
commit ca3ef67533
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,8 @@
config = lib.mkIf config.me.lvfs.enable ( config = lib.mkIf config.me.lvfs.enable (
lib.mkMerge [ lib.mkMerge [
{ {
services.fwupd.enable = true; # TODO: Is this installing firmware or just downloading it? Is this needed?
# services.fwupd.enable = true;
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) { environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true; hideMounts = true;
directories = [ directories = [

View File

@ -76,6 +76,7 @@ in
in in
{ {
home.activation = { home.activation = {
# TODO: Perhaps place a script in checkLinkTargets to verify copy targets can be overwritten so home-manager aborts before files are changed.
copyFiles = home-manager.lib.hm.dag.entryAfter [ "writeBoundary" ] ( copyFiles = home-manager.lib.hm.dag.entryAfter [ "writeBoundary" ] (
let let
copy_commands = builtins.map ( copy_commands = builtins.map (
@ -83,7 +84,7 @@ in
let let
target_config = config.me.copy.file."${target}"; target_config = config.me.copy.file."${target}";
source = lib.strings.escapeShellArg "${target_config.source}"; source = lib.strings.escapeShellArg "${target_config.source}";
destination = lib.strings.escapeShellArg target; destination = lib.strings.escapeShellArg "${target_config.target}";
mode = lib.strings.escapeShellArg "${target_config.mode}"; mode = lib.strings.escapeShellArg "${target_config.mode}";
in in
# $DRY_RUN_CMD ${pkgs.toyboy}/bin/install $VERBOSE_ARG -D -m ${mode} ${source} ${destination} # $DRY_RUN_CMD ${pkgs.toyboy}/bin/install $VERBOSE_ARG -D -m ${mode} ${source} ${destination}