treewide: apply deadnix fixes

This commit is contained in:
Max Headroom 2022-10-17 14:54:48 +02:00
parent dbbf2330fd
commit 142a640154
35 changed files with 32 additions and 37 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
with lib;
{

View file

@ -1,5 +1,5 @@
vars:
{ name, config, lib, ... }:
{ config, lib, ... }:
with lib;
let

View file

@ -1,4 +1,4 @@
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
{ cluster, config, lib, pkgs, tools, ... }:
let
inherit (tools.meta) domain;

View file

@ -1,4 +1,4 @@
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
{ cluster, config, hosts, lib, ... }:
let
inherit (hosts.${config.networking.hostName}) interfaces;

View file

@ -1,4 +1,4 @@
{ config, tools, ... }:
{ tools, ... }:
{
vars = {

View file

@ -1,5 +1,3 @@
{ config, ... }:
{
services.websites = {
nodes = {

View file

@ -1,4 +1,4 @@
{ config, inputs, lib, pkgs, tools, ... }:
{ inputs, lib, pkgs, tools, ... }:
let
importWebsites = expr: import expr {

View file

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ modulesPath, ... }:
{
imports =

View file

@ -1,4 +1,4 @@
{ lib, config, tools, ... }:
{ config, tools, ... }:
let
inherit (tools.meta) adminEmail;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, tools, ... }:
{ config, lib, tools, ... }:
let
inherit (tools.meta) domain;
login = x: "https://login.${domain}/auth/realms/master/protocol/openid-connect/${x}";
@ -35,7 +35,7 @@ in
skip-provider-button = true;
};
};
services.nginx.virtualHosts = lib.genAttrs cfg.nginx.virtualHosts (vhost: {
services.nginx.virtualHosts = lib.genAttrs cfg.nginx.virtualHosts (_vhost: {
# apply protection to the whole vhost, not just /
extraConfig = ''
auth_request /oauth2/auth;

View file

@ -1,4 +1,4 @@
{ config, lib, tools, ... }:
{ config, tools, ... }:
with tools.nginx;
{
links = {

View file

@ -1,4 +1,4 @@
{ aspect, config, hosts, lib, pkgs, tools, ... }:
{ aspect, config, hosts, tools, ... }:
with tools.nginx;
let
inherit (tools.meta) domain;

View file

@ -1,4 +1,4 @@
{ config, lib, tools, ... }:
{ tools, ... }:
with tools.nginx.mappers;
with tools.nginx.vhosts;
{

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, tools, ... }:
{ config, pkgs, tools, ... }:
let
inherit (tools.identity) ldap;
inherit (tools.meta) domain;

View file

@ -1,4 +1,4 @@
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
{ cluster, config, inputs, lib, pkgs, tools, ... }:
let
inherit (tools.meta) domain;

View file

@ -1,4 +1,4 @@
{ config, inputs, lib, pkgs, tools, ... }:
{ config, lib, tools, ... }:
with tools.nginx;
let
inherit (config) links;

View file

@ -1,4 +1,4 @@
{ config, inputs, lib, pkgs, tools, ... }:
{ inputs, pkgs, tools, ... }:
let
importWebsites = expr: import expr {

View file

@ -1,4 +1,4 @@
{ config, hosts, ... }:
{ config, ... }:
let
inherit (config.networking) hostName;

View file

@ -1,4 +1,4 @@
{ aspect, config, hosts, inputs, lib, pkgs, tools, ... }:
{ aspect, config, hosts, inputs, tools, ... }:
{
imports =

View file

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ modulesPath, ... }:
{
imports =

View file

@ -1,4 +1,4 @@
{ lib, config, tools, ... }:
{ config, tools, ... }:
let
inherit (tools.meta) adminEmail;

View file

@ -1,4 +1,4 @@
{ aspect, inputs, config, hosts, pkgs, ... }:
{ aspect, inputs, hosts, ... }:
{
imports =

View file

@ -1,4 +1,4 @@
{ pkgs, aspect, hosts, tools, ... }:
{ aspect, hosts, ... }:
{
imports = with aspect; [

View file

@ -1,4 +1,3 @@
{ pkgs, lib, config, inputs, ... }:
{
nixpkgs.overlays = [
(self: super:

View file

@ -1,4 +1,4 @@
{ config, pkgs, hosts, inputs, lib, tools, ... }:
{ config, hosts, lib, tools, ... }:
let
orgDomain = tools.meta.domain;
orgRealm = lib.toUpper orgDomain;

View file

@ -1,4 +1,3 @@
{ pkgs, config, ... }:
{
boot.kernel.sysctl = {
"kernel.yama.ptrace_scope" = 1;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ lib, config, ... }:
{
age.secrets = {
hydraS3 = {

View file

@ -1,4 +1,3 @@
{ pkgs, config, ... }:
{
nix.trustedUsers = [ "nix" ];
users.users.nix = {

View file

@ -1,4 +1,4 @@
{ config, inputs, ... }:
{ inputs, ... }:
with inputs;
{

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
with lib;

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
let
component = name: builtins.readFile (builtins.toString ../../config/zsh/components + "/${name}.zsh");

View file

@ -1,4 +1,4 @@
{ hosts, config, lib, ... }:
{ hosts, lib, ... }:
let
filtered = lib.filterAttrs (_: host: host ? ssh) hosts;
idCapable = lib.filterAttrs (_: host: host.ssh ? id) filtered;

View file

@ -1,4 +1,4 @@
{ filters, inputs', pkgs, self, self', ... }:
{ filters, pkgs, self, self', ... }:
{
checks = filters.doFilter filters.checks {
keycloak = pkgs.callPackage ./keycloak-custom-jre.nix {

View file

@ -1,4 +1,4 @@
{ inputs, lib, ... }:
{ lib, ... }:
let
filters = import ./system-filter.nix;
doFilter' = system: filterSet: lib.filterAttrs (name: _:

View file

@ -1,7 +1,7 @@
{ inputs, self, ... }:
{
perSystem = { filters, inputs', pkgs, self', system, ... }:
perSystem = { filters, pkgs, self', ... }:
let
inherit (self'.packages) nix-super;