home: Complete migration from stow to guix-home!
* Makefile: Removed as this is no longer used! * README.org: Removed section "Legacy Configuration"
This commit is contained in:
parent
227eab9830
commit
ca90382bd3
49
Makefile
49
Makefile
|
@ -1,49 +0,0 @@
|
||||||
# Set default target for make > 3.80
|
|
||||||
.DEFAULT_GOAL := default
|
|
||||||
|
|
||||||
# Default make to the dev target
|
|
||||||
.PHONY: default
|
|
||||||
default: all
|
|
||||||
|
|
||||||
# Variables
|
|
||||||
STOW := $(shell command -v stow 2> /dev/null)
|
|
||||||
STOW_FLAGS=-v -t $(HOME)
|
|
||||||
STOW_PACKAGE_DIR=user-config
|
|
||||||
STOW_PACKAGES=$(shell ls $(STOW_PACKAGE_DIR))
|
|
||||||
|
|
||||||
# Add additional flags if requested
|
|
||||||
ifeq ($(DRY),true)
|
|
||||||
STOW_FLAGS+=-n
|
|
||||||
endif
|
|
||||||
ifeq ($(RESTOW),true)
|
|
||||||
STOW_FLAGS+=-R
|
|
||||||
endif
|
|
||||||
ifeq ($(DELETE),true)
|
|
||||||
STOW_FLAGS+=-D
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: check-env
|
|
||||||
check-env:
|
|
||||||
ifndef STOW
|
|
||||||
$(error GNU stow must be installed)
|
|
||||||
endif
|
|
||||||
@[ -d ~/.config ] || mkdir ~/.config
|
|
||||||
@[ -d ~/.bin ] || mkdir ~/.bin
|
|
||||||
@[ -d ~/.local/share ] || mkdir -p ~/.local/share
|
|
||||||
|
|
||||||
.PHONY: list-packages
|
|
||||||
list-packages:
|
|
||||||
@ls $(STOW_PACKAGE_DIR)
|
|
||||||
|
|
||||||
.PHONY: $(STOW_PACKAGES)
|
|
||||||
$(STOW_PACKAGES): check-env
|
|
||||||
@cd $(STOW_PACKAGE_DIR) && $(STOW) $(STOW_FLAGS) $@
|
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: check-env
|
|
||||||
@cd $(STOW_PACKAGE_DIR) && $(STOW) $(STOW_FLAGS) $(STOW_PACKAGES)
|
|
||||||
|
|
||||||
.PHONY: init
|
|
||||||
init:
|
|
||||||
guix pull -C channels.scm
|
|
||||||
guix package -m user-manifest.scm
|
|
51
README.org
51
README.org
|
@ -56,57 +56,6 @@ following.
|
||||||
guix home reconfigure -e '(@ (rekahsoft guix-config home) %home)'
|
guix home reconfigure -e '(@ (rekahsoft guix-config home) %home)'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* TODO Legacy Configuration
|
|
||||||
|
|
||||||
Configurations for a variety of programs are available to be 'installed' by symbolically
|
|
||||||
linking them into ~$HOME~ using stow. This process is simplified by the provided ~Makefile~,
|
|
||||||
however is expected to be deprecated by the switch to Guix home, which is not yet fully
|
|
||||||
completed. Currently guix home only manages bash configuration, and all other configuration
|
|
||||||
is still managed using the 'legacy' stow method described here.
|
|
||||||
|
|
||||||
#+begin_src shell
|
|
||||||
# See what will be installed/linked by stow
|
|
||||||
make DRY=true
|
|
||||||
|
|
||||||
# Install/link all configurations
|
|
||||||
make
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** TODO Makefile Usage
|
|
||||||
|
|
||||||
~Makefile~ is expected to be become unnecessary after this configuration is managed by Guix home instead of using stow.
|
|
||||||
|
|
||||||
#+begin_verse
|
|
||||||
make [packages] [DRY=true] [RESTOW=true] [DELETE=true]
|
|
||||||
|
|
||||||
Where:
|
|
||||||
<DRY> must be undfined or 'true'
|
|
||||||
<RESTOW> must be undfined or 'true'
|
|
||||||
<DELETE> must be undfined or 'true'
|
|
||||||
|
|
||||||
Notes:
|
|
||||||
If no [packages] are listed, all packages are actioned upon via the all target
|
|
||||||
#+end_verse
|
|
||||||
|
|
||||||
*** Examples
|
|
||||||
|
|
||||||
#+begin_src shell
|
|
||||||
# Install a subset of the entire configuration
|
|
||||||
make zsh xorg
|
|
||||||
|
|
||||||
# Relink configuration
|
|
||||||
make RESTOW=true
|
|
||||||
|
|
||||||
# Relink configuration for a subset of packages
|
|
||||||
make RESTOW=true bash zsh
|
|
||||||
|
|
||||||
# Uninstall/unlink configuration
|
|
||||||
make DELETE=true
|
|
||||||
|
|
||||||
# Uninstall/unlink configuration for a subset of packages
|
|
||||||
make DELETE=true bash
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Working with Local Sources
|
* Working with Local Sources
|
||||||
|
|
||||||
Clone this repository.
|
Clone this repository.
|
||||||
|
|
Loading…
Reference in New Issue