mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-21 07:02:07 +00:00
ci + lint
This commit is contained in:
parent
d088a98954
commit
66d9b25682
39 changed files with 395 additions and 225 deletions
|
|
@ -1,8 +1,9 @@
|
|||
{lib, ...}: {
|
||||
{ lib, ... }:
|
||||
{
|
||||
# Transitional cleanup for files previously owned by ~/dots. Keeping this
|
||||
# separate from steady-state modules makes it obvious what can be deleted
|
||||
# once every managed path has been fully handed over to Home Manager.
|
||||
home.activation.removeLegacyZshLinks = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
|
||||
home.activation.removeLegacyZshLinks = lib.hm.dag.entryBefore [ "checkLinkTargets" ] ''
|
||||
for path in "$HOME/.zshenv" "$HOME/.zshrc"; do
|
||||
if [ -L "$path" ]; then
|
||||
target="$(readlink "$path")"
|
||||
|
|
@ -15,7 +16,7 @@
|
|||
done
|
||||
'';
|
||||
|
||||
home.activation.removeLegacyTmuxLink = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
|
||||
home.activation.removeLegacyTmuxLink = lib.hm.dag.entryBefore [ "checkLinkTargets" ] ''
|
||||
path="$HOME/.config/tmux/tmux.conf"
|
||||
if [ -L "$path" ]; then
|
||||
target="$(readlink "$path")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue