nixos: remove modules/linux/stow.nix

This commit is contained in:
Nico 2025-05-03 16:16:01 +10:00
parent 872ab45e0b
commit 117fa5d57c
2 changed files with 0 additions and 36 deletions

View file

@ -28,7 +28,6 @@
./modules/linux/desktop.nix
./modules/linux/applications.nix
./modules/linux/hyprland.nix
./modules/linux/stow.nix
./modules/linux/users.nix
./modules/linux/secureboot.nix
lanzaboote.nixosModules.lanzaboote

View file

@ -1,35 +0,0 @@
{ config, lib, pkgs, ... }:
{
systemd.user.services.stowinit = {
enable = true;
after = [ "network.target" ];
wantedBy = [ "default.target" ];
description = "apply stow configurations and pull dotfiles.";
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
script = ''
export installdir="$HOME/dots"
export repo="https://codeberg.org/nico/dots"
if [ ! -d "$installdir" ]; then
echo "cloning repo"
${pkgs.git}/bin/git clone $repo $installdir
else
echo "pulling latest dotfiles"
pushd $installdir
${pkgs.git}/bin/git pull $repo # works if repo is cloned using ssh
popd
fi
${pkgs.stow}/bin/stow --target=$HOME --dir=$installdir stow
echo "stowed configuration!"
'';
};
}