From 8a52c1acb46ba99584ee4cc7c83161d972718a59 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Oct 2019 21:35:17 +0200 Subject: Remove stow and scripts --- system/modules/programs/dotfiles.nix | 1 - user/adopt | 29 ----------------------------- user/stow | 2 -- user/unstow-all | 11 ----------- 4 files changed, 43 deletions(-) delete mode 100755 user/adopt delete mode 100755 user/stow delete mode 100755 user/unstow-all diff --git a/system/modules/programs/dotfiles.nix b/system/modules/programs/dotfiles.nix index 2e3f44aa..2fb66306 100644 --- a/system/modules/programs/dotfiles.nix +++ b/system/modules/programs/dotfiles.nix @@ -1,7 +1,6 @@ { config, pkgs, ... }: { environment.systemPackages = with pkgs; [ - stow fzf ghq ] ++ ( diff --git a/user/adopt b/user/adopt deleted file mode 100755 index 8e7bf4ff..00000000 --- a/user/adopt +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -DOTFILES_DIR=$(dirname $0) -STOW="$DOTFILES_DIR/stow" - -if [ "$#" -lt 2 ] -then - echo "usage: $(basename $0) tag file-to-adopt" - exit 1 -fi - -if [ -d $2 ] -then - TARGET="$DOTFILES_DIR/$1/$2" - if ! [ -d $TARGET ] - then - mkdir -p $TARGET - fi - mv $2/* $TARGET - $STOW $1 -elif [ -f $2 ] -then - TARGET="$DOTFILES_DIR/$1/$(dirname $2)" - if ! [ -d $TARGET ] - then - mkdir -p $TARGET - fi - mv $2 $TARGET - $STOW $1 -fi diff --git a/user/stow b/user/stow deleted file mode 100755 index 761a5b5d..00000000 --- a/user/stow +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -stow --target="$HOME" --no-folding "$@" diff --git a/user/unstow-all b/user/unstow-all deleted file mode 100755 index 3e56fd31..00000000 --- a/user/unstow-all +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env zsh - -set -euo pipefail - -echo "Checking if all packages can be unstowed" -./stow -Dn --ignore="tabnine_config\.json" *(/) - -echo "Unstowing!" -./stow -D --ignore="tabnine_config\.json" *(/) - -rmdir ~/.config/nixpkgs || echo "Could not remove nixpkgs directory. Remove it manually before running the installer." -- cgit 1.4.1