From 117fa5d57c3ac2e62a32a7d9f924a36926058eb6 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:01 +1000 Subject: [PATCH] nixos: remove modules/linux/stow.nix --- flake.nix | 1 - modules/linux/stow.nix | 35 ----------------------------------- 2 files changed, 36 deletions(-) delete mode 100644 modules/linux/stow.nix diff --git a/flake.nix b/flake.nix index 14dea0d..8d8bfdf 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/modules/linux/stow.nix b/modules/linux/stow.nix deleted file mode 100644 index 59d9941..0000000 --- a/modules/linux/stow.nix +++ /dev/null @@ -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!" - ''; - }; - -}