forked from nix-community/home-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spotify-player: tests chore: format fix: declare in modules.nix spotify-player: add news entry spotify-player: implement review suggestions spotify-player: fix maintainers Squashed commit of the following: commit 1c43dcf Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Apr 15 09:42:51 2024 +0200 ci: bump peaceiris/actions-gh-pages from 3 to 4 Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4. - [Release notes](https://github.com/peaceiris/actions-gh-pages/releases) - [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md) - [Commits](peaceiris/actions-gh-pages@v3...v4) --- updated-dependencies: - dependency-name: peaceiris/actions-gh-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 59d50bc Author: Nathan Henrie <[email protected]> Date: Mon Apr 15 01:40:27 2024 -0600 espanso: enable module on darwin commit 9f32c66 Author: Jose Plana <[email protected]> Date: Wed Apr 10 13:34:46 2024 +0200 k9s: configuration files in Darwin without XDG Support alternate configuration files for k9s in darwin where XDG is not mandated and k9s expects configuration files in `~/Library/Application Support/k9s/`. commit 76a1650 Author: Jose Plana <[email protected]> Date: Wed Apr 10 10:24:46 2024 +0200 k9s: fix typos in configuration file names commit 630a099 Author: Philipp Mildenberger <[email protected]> Date: Sun Apr 14 08:58:16 2024 +0200 nushell: fix nushell config path on darwin commit 4cc3c91 Author: home-manager-bot <[email protected]> Date: Sun Apr 14 08:56:05 2024 +0200 flake.lock: Update Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/fd281bd6b7d3e32ddfa399853946f782553163b5' (2024-04-03) → 'github:NixOS/nixpkgs/1042fd8b148a9105f3c0aca3a6177fd1d9360ba5' (2024-04-10) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit f33d508 Author: Mitchell Skaggs <[email protected]> Date: Sat Apr 13 12:59:33 2024 -0500 rio: remove redundant `lib.mdDoc` call This is an error as of NixOS/nixpkgs#303841 It seems to have been missed in nix-community#4215 commit 8fdf329 Author: MiSumiSumi <[email protected]> Date: Sat Apr 13 23:50:15 2024 +0900 neovim: enable use of external package manager (nix-community#5225) * neovim: add extraWrapperArgs option pass external arguments to neovim-unwrapper this gives users more flexibility in managing neovim configuration * neovim: add test for `extraWrapperArgs` commit 40ab43a Author: Bryn Edwards <[email protected]> Date: Sat Apr 13 07:27:43 2024 +0100 foot: set PATH in server's systemd unit file If not set, foot's terminal spawning shortcut will not work as the `footclient` binary is not on the server's PATH. commit 3135748 Author: Ramses <[email protected]> Date: Wed Apr 10 16:39:52 2024 +0200 fish: use the subcommand style for the status command (nix-community#4584) The flag style has been deprecated and will eventually be removed. commit 18f89ef Author: Tony Zorman <[email protected]> Date: Wed Apr 10 08:29:32 2024 +0200 firefox: add containersForce flag Firefox, upon exit, creates the default containers.json file in place of the one that home-manager created. This leads to errors when switching to a new profile, as home-manager is careful with overwriting existing files. The added option toggles that behaviour. Closes: nix-community#4989 commit b00d0e4 Author: Jack W <[email protected]> Date: Tue Apr 9 14:48:15 2024 -0400 bun: add module commit 40a9961 Author: Mario Rodas <[email protected]> Date: Tue Apr 9 01:57:29 2024 -0500 fzf: add compatibility with fzf≥0.48.0 fzf 0.48.0 [1] changed the way it integrates with shells. [1] https://github.com/junegunn/fzf/releases/tag/0.48.0 commit a561ad6 Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Date: Sun Apr 7 03:59:32 2024 +0000 flake.lock: Update Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29) → 'github:NixOS/nixpkgs/fd281bd6b7d3e32ddfa399853946f782553163b5' (2024-04-03) commit b787726 Author: Smaug123 <[email protected]> Date: Fri Apr 5 14:05:00 2024 +0100 home-manager: extract inline shell script to file
- Loading branch information
Showing
36 changed files
with
789 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# -*- mode: sh; sh-shell: bash -*- | ||
|
||
@initHomeManagerLib@ | ||
|
||
# A symbolic link whose target path matches this pattern will be | ||
# considered part of a Home Manager generation. | ||
homeFilePattern="$(readlink -e @storeDir@)/*-home-manager-files/*" | ||
|
||
forcedPaths=(@forcedPaths@) | ||
|
||
newGenFiles="$1" | ||
shift | ||
for sourcePath in "$@" ; do | ||
relativePath="${sourcePath#$newGenFiles/}" | ||
targetPath="$HOME/$relativePath" | ||
|
||
forced="" | ||
for forcedPath in "${forcedPaths[@]}"; do | ||
if [[ $targetPath == $forcedPath* ]]; then | ||
forced="yeah" | ||
break | ||
fi | ||
done | ||
|
||
if [[ -n $forced ]]; then | ||
verboseEcho "Skipping collision check for $targetPath" | ||
elif [[ -e "$targetPath" \ | ||
&& ! "$(readlink "$targetPath")" == $homeFilePattern ]] ; then | ||
# The target file already exists and it isn't a symlink owned by Home Manager. | ||
if cmp -s "$sourcePath" "$targetPath"; then | ||
# First compare the files' content. If they're equal, we're fine. | ||
warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be skipped since they are the same" | ||
elif [[ ! -L "$targetPath" && -n "$HOME_MANAGER_BACKUP_EXT" ]] ; then | ||
# Next, try to move the file to a backup location if configured and possible | ||
backup="$targetPath.$HOME_MANAGER_BACKUP_EXT" | ||
if [[ -e "$backup" ]]; then | ||
errorEcho "Existing file '$backup' would be clobbered by backing up '$targetPath'" | ||
collision=1 | ||
else | ||
warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be moved to '$backup'" | ||
fi | ||
else | ||
# Fail if nothing else works | ||
errorEcho "Existing file '$targetPath' is in the way of '$sourcePath'" | ||
collision=1 | ||
fi | ||
fi | ||
done | ||
|
||
if [[ -v collision ]] ; then | ||
errorEcho "Please move the above files and try again or use 'home-manager switch -b backup' to back up existing files automatically." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,12 @@ | |
githubId = 32838899; | ||
name = "Daniel Wagenknecht"; | ||
}; | ||
jack5079 = { | ||
name = "Jack W."; | ||
email = "[email protected]"; | ||
github = "jack5079"; | ||
githubId = 29169102; | ||
}; | ||
jkarlson = { | ||
email = "[email protected]"; | ||
github = "jkarlson"; | ||
|
@@ -512,4 +518,10 @@ | |
github = "zorrobert"; | ||
githubId = 118135271; | ||
}; | ||
diniamo = { | ||
name = "diniamo"; | ||
email = "[email protected]"; | ||
github = "diniamo"; | ||
githubId = 55629891; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
cfg = config.programs.bun; | ||
tomlFormat = pkgs.formats.toml { }; | ||
in { | ||
meta.maintainers = [ lib.hm.maintainers.jack5079 ]; | ||
|
||
options.programs.bun = { | ||
enable = lib.mkEnableOption "Bun JavaScript runtime"; | ||
|
||
package = lib.mkPackageOption pkgs "bun" { }; | ||
|
||
settings = lib.mkOption { | ||
type = tomlFormat.type; | ||
default = { }; | ||
example = lib.literalExpression '' | ||
{ | ||
smol = true; | ||
telemetry = false; | ||
test = { | ||
coverage = true; | ||
coverageThreshold = 0.9; | ||
}; | ||
install.lockfile = { | ||
print = "yarn"; | ||
}; | ||
} | ||
''; | ||
description = '' | ||
Configuration written to | ||
{file}`$XDG_CONFIG_HOME/.bunfig.toml`. | ||
See <https://bun.sh/docs/runtime/bunfig> | ||
for the full list of options. | ||
''; | ||
}; | ||
|
||
enableGitIntegration = lib.mkEnableOption "Git integration" // { | ||
default = true; | ||
}; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
home.packages = [ cfg.package ]; | ||
|
||
xdg.configFile.".bunfig.toml" = lib.mkIf (cfg.settings != { }) { | ||
source = tomlFormat.generate "bun-config" cfg.settings; | ||
}; | ||
|
||
# https://bun.sh/docs/install/lockfile#how-do-i-git-diff-bun-s-lockfile | ||
programs.git.attributes = | ||
lib.mkIf cfg.enableGitIntegration [ "*.lockb binary diff=lockb" ]; | ||
programs.git.extraConfig.diff.lockb = lib.mkIf cfg.enableGitIntegration { | ||
textconv = lib.getExe cfg.package; | ||
binary = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.