more fixups
This commit is contained in:
parent
44d03fb8ad
commit
831806c2dc
6 changed files with 21 additions and 31 deletions
|
|
@ -26,8 +26,10 @@ in
|
|||
|
||||
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
|
||||
if [ ! -d "${repoDir}" ]; then
|
||||
$DRY_RUN_CMD mkdir -p "$(dirname "${repoDir}")"
|
||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" || true
|
||||
run mkdir -p "$(dirname "${repoDir}")"
|
||||
if ! run ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" 2>&1; then
|
||||
echo "WARNING: could not clone nix-config (network may not be ready)"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
|
@ -7,10 +8,13 @@ let
|
|||
isNixOS = builtins.pathExists /etc/NIXOS;
|
||||
in
|
||||
{
|
||||
home.packages = lib.mkIf isNixOS [ pkgs.hyprpaper ];
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
package = lib.mkIf (!isNixOS) null;
|
||||
settings = {
|
||||
preload = [ "~/img/screen/wallpaper.jpg" ];
|
||||
wallpaper = [ ",~/img/screen/wallpaper.jpg" ];
|
||||
splash = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue