revert statix fixes for empty_pattern
empty_pattern forces {...} to be converted to {_}, which breaks situations where an import is done multiple ways with the same attributes, and only some of the imported files use those attributes (ex. systems/<host>/default.nix) Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
1b65b78d13
commit
c0ca89728e
@ -31,6 +31,9 @@ forEachSystem (system: {
|
|||||||
excludes = [ "settings.json$" ];
|
excludes = [ "settings.json$" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# toml hooks
|
||||||
|
check-toml.enable = true;
|
||||||
|
|
||||||
# git hooks
|
# git hooks
|
||||||
check-merge-conflicts.enable = true;
|
check-merge-conflicts.enable = true;
|
||||||
## prevents committing to main
|
## prevents committing to main
|
||||||
|
@ -97,7 +97,7 @@ rec {
|
|||||||
# type:
|
# type:
|
||||||
# genNonX86 :: AttrSet -> [AttrSet]
|
# genNonX86 :: AttrSet -> [AttrSet]
|
||||||
genNonX86 =
|
genNonX86 =
|
||||||
{ _ }:
|
{ ... }:
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
config.nixpkgs = {
|
config.nixpkgs = {
|
||||||
|
4
statix.toml
Normal file
4
statix.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
disabled = ["empty_pattern"]
|
||||||
|
nix_version = '2.4'
|
||||||
|
ignore = ['.direnv']
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
{ _ }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.zerotierone = {
|
services.zerotierone = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ _ }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
users = [
|
users = [
|
||||||
"alice"
|
"alice"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ _ }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
users = [
|
users = [
|
||||||
"alice"
|
"alice"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ _ }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.gammastep = {
|
services.gammastep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user