Regenerated
This commit is contained in:
+292
-298
File diff suppressed because it is too large
Load Diff
+4
-10
@@ -2358,20 +2358,17 @@ workspace {
|
|||||||
** =generated/modules/traveldroid/desktop/wallpaper.nix=
|
** =generated/modules/traveldroid/desktop/wallpaper.nix=
|
||||||
Setting up wallpaper engine + wallpaper gui
|
Setting up wallpaper engine + wallpaper gui
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/wallpaper.nix :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/wallpaper.nix :noweb yes :mkdirp yes :eval never
|
||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
homeDir = "/home/${username}";
|
homeDir = "/home/${username}";
|
||||||
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
|
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
|
||||||
wallpaperDst = "${homeDir}/Wallpapers";
|
wallpaperDst = "${homeDir}/Wallpapers";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ rsync bash ];
|
environment.systemPackages = with pkgs; [ rsync bash ];
|
||||||
|
|
||||||
############################
|
|
||||||
# User systemd oneshot service to copy wallpapers
|
|
||||||
############################
|
|
||||||
systemd.user.services.copyWallpapers = {
|
systemd.user.services.copyWallpapers = {
|
||||||
description = "Copy wallpapers from repo to ~/Wallpapers";
|
description = "Copy wallpapers from repo to ~/Wallpapers";
|
||||||
wants = [ "graphical-session.target" ];
|
wants = [ "graphical-session.target" ];
|
||||||
@@ -2379,10 +2376,7 @@ in
|
|||||||
|
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
|
||||||
serviceConfig.ExecStart = ''
|
serviceConfig.ExecStart = "${pkgs.bash}/bin/bash -c 'mkdir -p \"${wallpaperDst}\" && rsync -av \"${wallpaperSrc}/\" \"${wallpaperDst}/\"'";
|
||||||
mkdir -p "${wallpaperDst}"
|
|
||||||
rsync -avu "${wallpaperSrc}/" "${wallpaperDst}/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
serviceConfig.Restart = "no";
|
serviceConfig.Restart = "no";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
homeDir = "/home/${username}";
|
homeDir = "/home/${username}";
|
||||||
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
|
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
|
||||||
wallpaperDst = "${homeDir}/Wallpapers";
|
wallpaperDst = "${homeDir}/Wallpapers";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ rsync bash ];
|
environment.systemPackages = with pkgs; [ rsync bash ];
|
||||||
|
|
||||||
############################
|
|
||||||
# User systemd oneshot service to copy wallpapers
|
|
||||||
############################
|
|
||||||
systemd.user.services.copyWallpapers = {
|
systemd.user.services.copyWallpapers = {
|
||||||
description = "Copy wallpapers from repo to ~/Wallpapers";
|
description = "Copy wallpapers from repo to ~/Wallpapers";
|
||||||
wants = [ "graphical-session.target" ];
|
wants = [ "graphical-session.target" ];
|
||||||
@@ -19,10 +16,7 @@ in
|
|||||||
|
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
|
||||||
serviceConfig.ExecStart = ''
|
serviceConfig.ExecStart = "${pkgs.bash}/bin/bash -c 'mkdir -p \"${wallpaperDst}\" && rsync -av \"${wallpaperSrc}/\" \"${wallpaperDst}/\"'";
|
||||||
mkdir -p "${wallpaperDst}"
|
|
||||||
rsync -avu "${wallpaperSrc}/" "${wallpaperDst}/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
serviceConfig.Restart = "no";
|
serviceConfig.Restart = "no";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user