Regenerated

This commit is contained in:
2026-03-26 17:59:14 +00:00
parent 9cd68fea7f
commit 5da1502f8f
5 changed files with 46 additions and 48 deletions
@@ -0,0 +1,12 @@
# ./assets/conf/desktop/hypr/animations.conf
animations {
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
@@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, pkgs, config, flakeRoot... }:
let
#################################
@@ -10,7 +10,7 @@ let
#################################
# Paths to assets
#################################
assetPath = ../../../assets/traveldroid/conf/${moduleName};
assetPath = "${flakeRoot}/.config/kitty";
programFiles = builtins.readDir assetPath;
# Convert asset files into a nix attribute set
@@ -5,7 +5,7 @@ let
username = config.defaultUser or "henrov";
# Path to the starship config in assets
starshipConfSrc = "${flakeRoot}/assets/traveldroid/conf/starship.toml";
starshipConfSrc = "${flakeRoot}/generated/.config/starship.toml";
in
{
#################################
@@ -2,14 +2,14 @@
let
username = config.users.users.defaultUser or "henrov";
homeDir = "/home/${username}";
assetPath = "${flakeRoot}/assets/copy_2_home";
configDir = "/home/${username}/.config";
assetPath = "${flakeRoot}/.config";
in
{
environment.systemPackages = [ pkgs.rsync ];
systemd.services.copyAssets = {
description = "Copy assets to ${username}'s home directory";
description = "Copy assets to ${username}'s .config directory";
wantedBy = [ "multi-user.target" ];
# oneshot service runs once at boot
@@ -18,24 +18,24 @@ in
# Always use /bin/sh -c for multi-line commands
serviceConfig.ExecStart = ''
/bin/sh -c '
echo "Copying assets from ${assetPath} to ${homeDir}/Droidnix ..."
echo "Copying assets from ${assetPath} to ${configDir} ..."
if [ ! -d "${assetPath}" ]; then
echo "ERROR: ${assetPath} does not exist"
exit 1
fi
mkdir -p "${homeDir}/Droidnix"
chown u+rwx ${username}:${username} "${homeDir}/Droidnix"
mkdir -p "${configDir}"
chown -R u+rwx ${username}:${username} "${configDir}"
${pkgs.rsync}/bin/rsync -a --no-owner --no-group "${assetPath}/" "${homeDir}/"
${pkgs.rsync}/bin/rsync -a --no-owner --no-group "${assetPath}/" "${configDir}/"
# Fix .config permissions
mkdir -p "${homeDir}/.config"
chown -R ${username}:${username} "${homeDir}/.config"
chmod u+rwx "${homeDir}/.config"
mkdir -p "${configDir}"
chown -R ${username}:${username} "${configDir}"
chmod -R u+rwx "${configDir}"
echo "Done copying assets."
echo "Done copying config files."
'
'';
};