Regenerated
This commit is contained in:
+282
-282
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -3125,7 +3125,7 @@ in
|
|||||||
** =generated/modules/traveldroid/system/bluetooth.nix=
|
** =generated/modules/traveldroid/system/bluetooth.nix=
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/bluetooth.nix :noweb yes :mkdirp yes :eval never
|
#+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, ... }:
|
||||||
{ lib, config, pkgs, home-manager, ... }:
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
in
|
in
|
||||||
@@ -3142,7 +3142,7 @@ in
|
|||||||
############################
|
############################
|
||||||
# GUI Bluetooth manager
|
# GUI Bluetooth manager
|
||||||
############################
|
############################
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = (config.environment.systemPackages or []) ++ with pkgs; [
|
||||||
blueman
|
blueman
|
||||||
bluez
|
bluez
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ lib, config, pkgs, home-manager, ... }:
|
{ lib, config, pkgs, home-manager, ... }:
|
||||||
{ lib, config, pkgs, home-manager, ... }:
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
in
|
in
|
||||||
@@ -16,7 +16,7 @@ in
|
|||||||
############################
|
############################
|
||||||
# GUI Bluetooth manager
|
# GUI Bluetooth manager
|
||||||
############################
|
############################
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = (config.environment.systemPackages or []) ++ with pkgs; [
|
||||||
blueman
|
blueman
|
||||||
bluez
|
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."
|
|
||||||
'
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user