mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
64ab7d6e8d
* Add flake.lock and clean up flake.nix Add a lockfile to work around https://github.com/NixOS/nix/issues/6541 (and because it's a good idea anyway). Also use flake-utils, and restrict ourselves to the five platforms supported by nixpkgs. Otherwise, the IFD for nmd fails on weird platforms. This fixes `nix flake check`. Remove the redundant `apps` output, see https://github.com/nix-community/home-manager/pull/2442#issuecomment-1133670487 * nixos,nix-darwin: factor out into a common module * nixos,nix-darwin: make `home-managers.users` shallowly visible Make sure the option is included in the NixOS/nix-darwin manual (but the HM submodule options aren't). Also add a static description to the HM submodule type so that we don't need to evaluate the submodules just to build the option manual. This makes nixos-search able to index the home-manager flake. Also clean up some TODOs. * flake: add nmd and nmt This avoids having to use `pkgs.fetchFromGitLab` in an IFD, which causes issues when indexing packages with nixos-search because `pkgs` is instantiated with every platform.
31 lines
924 B
Text
Executable file
31 lines
924 B
Text
Executable file
#! /usr/bin/env nix-shell
|
|
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/5edf5b60c3d8f82b5fc5e73e822b6f7460584945.tar.gz -i bash -p findutils nixfmt
|
|
|
|
CHECK_ARG=
|
|
|
|
case $1 in
|
|
-h)
|
|
echo "$0 [-c]"
|
|
;;
|
|
-c)
|
|
CHECK_ARG=-c
|
|
;;
|
|
esac
|
|
|
|
# The excludes are for files touched by open pull requests and we want
|
|
# to avoid merge conflicts.
|
|
find . -name '*.nix' \
|
|
! -path ./home-manager/home-manager.nix \
|
|
! -path ./modules/default.nix \
|
|
! -path ./modules/files.nix \
|
|
! -path ./modules/home-environment.nix \
|
|
! -path ./modules/launchd/launchd.nix \
|
|
! -path ./modules/lib/default.nix \
|
|
! -path ./modules/lib/file-type.nix \
|
|
! -path ./modules/manual.nix \
|
|
! -path ./modules/misc/news.nix \
|
|
! -path ./modules/programs/bash.nix \
|
|
! -path ./modules/programs/ssh.nix \
|
|
! -path ./modules/programs/zsh.nix \
|
|
! -path ./tests/default.nix \
|
|
-exec nixfmt $CHECK_ARG {} +
|