treewide: apply deadnix fixes
This commit is contained in:
parent
dbbf2330fd
commit
142a640154
35 changed files with 32 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ lib, ... }:
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
vars:
|
||||
{ name, config, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
|
||||
{ cluster, config, lib, pkgs, tools, ... }:
|
||||
|
||||
let
|
||||
inherit (tools.meta) domain;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
|
||||
{ cluster, config, hosts, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (hosts.${config.networking.hostName}) interfaces;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, tools, ... }:
|
||||
{ tools, ... }:
|
||||
|
||||
{
|
||||
vars = {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.websites = {
|
||||
nodes = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, inputs, lib, pkgs, tools, ... }:
|
||||
{ inputs, lib, pkgs, tools, ... }:
|
||||
|
||||
let
|
||||
importWebsites = expr: import expr {
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, tools, ... }:
|
||||
{ config, tools, ... }:
|
||||
|
||||
let
|
||||
inherit (tools.meta) adminEmail;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, tools, ... }:
|
||||
{ config, tools, ... }:
|
||||
with tools.nginx;
|
||||
{
|
||||
links = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ aspect, config, hosts, lib, pkgs, tools, ... }:
|
||||
{ aspect, config, hosts, tools, ... }:
|
||||
with tools.nginx;
|
||||
let
|
||||
inherit (tools.meta) domain;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, tools, ... }:
|
||||
{ tools, ... }:
|
||||
with tools.nginx.mappers;
|
||||
with tools.nginx.vhosts;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, tools, ... }:
|
||||
{ config, pkgs, tools, ... }:
|
||||
let
|
||||
inherit (tools.identity) ldap;
|
||||
inherit (tools.meta) domain;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ cluster, config, hosts, inputs, lib, pkgs, tools, ... }:
|
||||
{ cluster, config, inputs, lib, pkgs, tools, ... }:
|
||||
let
|
||||
inherit (tools.meta) domain;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, inputs, lib, pkgs, tools, ... }:
|
||||
{ config, lib, tools, ... }:
|
||||
with tools.nginx;
|
||||
let
|
||||
inherit (config) links;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, inputs, lib, pkgs, tools, ... }:
|
||||
{ inputs, pkgs, tools, ... }:
|
||||
|
||||
let
|
||||
importWebsites = expr: import expr {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, hosts, ... }:
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (config.networking) hostName;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ aspect, config, hosts, inputs, lib, pkgs, tools, ... }:
|
||||
{ aspect, config, hosts, inputs, tools, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, tools, ... }:
|
||||
{ config, tools, ... }:
|
||||
|
||||
let
|
||||
inherit (tools.meta) adminEmail;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ aspect, inputs, config, hosts, pkgs, ... }:
|
||||
{ aspect, inputs, hosts, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, aspect, hosts, tools, ... }:
|
||||
{ aspect, hosts, ... }:
|
||||
|
||||
{
|
||||
imports = with aspect; [
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ pkgs, lib, config, inputs, ... }:
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, hosts, inputs, lib, tools, ... }:
|
||||
{ config, hosts, lib, tools, ... }:
|
||||
let
|
||||
orgDomain = tools.meta.domain;
|
||||
orgRealm = lib.toUpper orgDomain;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
boot.kernel.sysctl = {
|
||||
"kernel.yama.ptrace_scope" = 1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
age.secrets = {
|
||||
hydraS3 = {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
nix.trustedUsers = [ "nix" ];
|
||||
users.users.nix = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, inputs, ... }:
|
||||
{ inputs, ... }:
|
||||
|
||||
with inputs;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
component = name: builtins.readFile (builtins.toString ../../config/zsh/components + "/${name}.zsh");
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, lib, ... }:
|
||||
{ lib, ... }:
|
||||
let
|
||||
filters = import ./system-filter.nix;
|
||||
doFilter' = system: filterSet: lib.filterAttrs (name: _:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ inputs, self, ... }:
|
||||
|
||||
{
|
||||
perSystem = { filters, inputs', pkgs, self', system, ... }:
|
||||
perSystem = { filters, pkgs, self', ... }:
|
||||
let
|
||||
inherit (self'.packages) nix-super;
|
||||
|
||||
|
|
Loading…
Reference in a new issue