Regenerated
This commit is contained in:
+6
-7
@@ -351,17 +351,13 @@ in
|
||||
environment.systemPackages = [ pkgs.rsync ];
|
||||
|
||||
systemd.user.services.copyAssets = {
|
||||
enable = true;
|
||||
|
||||
description = "Copy assets to home directory";
|
||||
|
||||
wantedBy = [ "default.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
||||
script = ''
|
||||
# This is the proper field for commands
|
||||
ExecStart = ''
|
||||
echo "Copying assets from ${assetPath} to ${homeDir} ..."
|
||||
|
||||
if [ ! -d "${assetPath}" ]; then
|
||||
@@ -376,8 +372,11 @@ in
|
||||
echo "Done copying assets."
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
# Make sure the user manager is enabled for the default user
|
||||
users.users.${username}.extraGroups = [ "wheel" ]; # optional
|
||||
systemd.enableUserServices = true;
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user