Regenerated

This commit is contained in:
2026-03-31 21:08:59 +02:00
parent 352192fd0a
commit ed163b1899
4 changed files with 286 additions and 328 deletions
+282 -282
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -3125,7 +3125,7 @@ in
** =generated/modules/traveldroid/system/bluetooth.nix=
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/bluetooth.nix :noweb yes :mkdirp yes :eval never
{ lib, config, pkgs, home-manager, ... }:
{ lib, config, pkgs, home-manager, ... }:
let
username = config.defaultUser or "henrov";
in
@@ -3142,7 +3142,7 @@ in
############################
# GUI Bluetooth manager
############################
environment.systemPackages = with pkgs; [
environment.systemPackages = (config.environment.systemPackages or []) ++ with pkgs; [
blueman
bluez
];
@@ -1,5 +1,5 @@
{ lib, config, pkgs, home-manager, ... }:
{ lib, config, pkgs, home-manager, ... }:
let
username = config.defaultUser or "henrov";
in
@@ -16,7 +16,7 @@ in
############################
# GUI Bluetooth manager
############################
environment.systemPackages = with pkgs; [
environment.systemPackages = (config.environment.systemPackages or []) ++ with pkgs; [
blueman
bluez
];
@@ -1,42 +0,0 @@
{ config, pkgs, lib, flakeRoot, ... }:
let
username = config.users.users.defaultUser or "henrov";
configDir = "/home/${username}/.config";
assetPath = "${flakeRoot}/.config";
in
{
environment.systemPackages = [ pkgs.rsync ];
systemd.services.copyAssets = {
description = "Copy assets to ${username}'s .config directory";
wantedBy = [ "multi-user.target" ];
# oneshot service runs once at boot
serviceConfig.Type = "oneshot";
# Always use /bin/sh -c for multi-line commands
serviceConfig.ExecStart = ''
/bin/sh -c '
echo "Copying assets from ${assetPath} to ${configDir} ..."
if [ ! -d "${assetPath}" ]; then
echo "ERROR: ${assetPath} does not exist"
exit 1
fi
mkdir -p "${configDir}"
chown -R u+rwx ${username}:${username} "${configDir}"
${pkgs.rsync}/bin/rsync -a --no-owner --no-group "${assetPath}/" "${configDir}/"
# Fix .config permissions
mkdir -p "${configDir}"
chown -R ${username}:${username} "${configDir}"
chmod -R u+rwx "${configDir}"
echo "Done copying config files."
'
'';
};
}