-
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.
- Loading branch information
Showing
20 changed files
with
860 additions
and
360 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/**/*[~#] | ||
/**/.* | ||
/**/result | ||
/**/result-* | ||
!/**/.github | ||
!/**/.gitignore | ||
!/**/.vscode |
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,7 @@ | ||
# VSCodium settings | ||
|
||
[Settings](./settings.json) for | ||
[VSCodium](https://vscodium.com/) / | ||
[VSCode](https://code.visualstudio.com/) / | ||
[Code OSS](https://github.com/Microsoft/vscode) | ||
and [suggested extensions](./extensions.json). |
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 |
---|---|---|
|
@@ -11,3 +11,5 @@ nixos | |
nixpkgs | ||
ortholinear | ||
QMK | ||
VSCode | ||
VSCodium |
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,11 @@ | ||
{ pkgs ? import <nixpkgs> { }, ... }: | ||
pkgs.mkShell { | ||
nativeBuildInputs = with pkgs; [ | ||
cacert | ||
git | ||
nix | ||
nix-linter | ||
nixpkgs-fmt | ||
openssh | ||
]; | ||
} |
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,3 @@ | ||
# Scripts | ||
|
||
A collection of scripts that handle and manipulate the code. Mostly intended for use on the CI. |
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,15 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
with pkgs; writeScript "nix-cache" '' | ||
#!${bash}/bin/bash | ||
set -eu | ||
# shellcheck disable=SC2016 | ||
${findutils}/bin/find '${toString ../.}' -type f -name '*.nix' -a \( -not -path '${toString ../QMK}/*' -o -path '${toString ../QMK}/shell.nix' \) | | ||
${findutils}/bin/xargs -I{} sh -c ' | ||
set -eu | ||
if [ "$(${nix}/bin/nix-instantiate --eval -E "builtins.hasAttr \"shellHook\" ((import <nixpkgs> { }).callPackage \"{}\" { })")" == "true" ] ; then | ||
${nix}/bin/nix-build "{}" --no-out-link -A inputDerivation | ||
else | ||
${nix}/bin/nix-build "{}" --no-out-link | ||
fi | ||
' | ${cachix}/bin/cachix push "''${1}" | ||
'' |
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,7 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
with pkgs; writeScript "nix-format" '' | ||
#!${bash}/bin/bash | ||
set -eu | ||
${findutils}/bin/find '${toString ../.}' -type f -name '*.nix' -not -path '${toString ../QMK}/*' | | ||
${findutils}/bin/xargs ${nixpkgs-fmt}/bin/nixpkgs-fmt --check | ||
'' |
Oops, something went wrong.