nixos: remove modules/linux/stow.nix
This commit is contained in:
parent
872ab45e0b
commit
117fa5d57c
2 changed files with 0 additions and 36 deletions
|
|
@ -28,7 +28,6 @@
|
||||||
./modules/linux/desktop.nix
|
./modules/linux/desktop.nix
|
||||||
./modules/linux/applications.nix
|
./modules/linux/applications.nix
|
||||||
./modules/linux/hyprland.nix
|
./modules/linux/hyprland.nix
|
||||||
./modules/linux/stow.nix
|
|
||||||
./modules/linux/users.nix
|
./modules/linux/users.nix
|
||||||
./modules/linux/secureboot.nix
|
./modules/linux/secureboot.nix
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
|
||||||
|
|
@ -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!"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue