1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: run deadnix

This commit is contained in:
oddlama 2023-09-04 22:01:47 +02:00
parent 0daf5651df
commit 562d1dffb3
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
35 changed files with 21 additions and 110 deletions

View file

@ -7,7 +7,6 @@
}: let
inherit
(lib)
all
any
attrNames
attrValues
@ -16,7 +15,6 @@
concatMap
concatMapStrings
converge
elem
escapeShellArg
escapeShellArgs
filter

View file

@ -11,11 +11,8 @@
any
attrNames
attrValues
concatStringsSep
disko
escapeShellArg
filterAttrs
foldl'
makeBinPath
mapAttrsToList
mdDoc
@ -24,12 +21,10 @@
mkEnableOption
mkForce
mkIf
mkMerge
mkOption
net
optional
optionalAttrs
recursiveUpdate
types
;
@ -277,11 +272,7 @@ in {
vms = mkOption {
default = {};
description = "Defines the actual vms and handles the necessary base setup for them.";
type = types.attrsOf (types.submodule ({
name,
config,
...
}: {
type = types.attrsOf (types.submodule ({name, ...}: {
options = {
nodeName = mkOption {
type = types.str;

View file

@ -1,14 +1,11 @@
{
lib,
config,
pkgs,
...
}: let
inherit
(lib)
concatStringsSep
flip
mapAttrs
mdDoc
mkDefault
mkEnableOption
@ -35,11 +32,7 @@ in {
};
options.services.nginx.virtualHosts = mkOption {
type = types.attrsOf (types.submodule ({
name,
config,
...
}: {
type = types.attrsOf (types.submodule ({config, ...}: {
options.oauth2 = {
enable = mkEnableOption (mdDoc "access protection of this resource using oauth2_proxy.");
allowedGroups = mkOption {

View file

@ -1,43 +1,31 @@
{
config,
lib,
nodes,
pkgs,
...
}: let
inherit
(lib)
any
assertMsg
attrNames
attrValues
concatAttrs
concatLists
concatMap
concatMapStrings
concatStringsSep
duplicates
escapeShellArg
filter
filterAttrs
flatten
flip
genAttrs
head
mapAttrs'
mapAttrsToList
mdDoc
mergeAttrs
mergeToplevelConfigs
mkForce
mkIf
mkMerge
mkOption
nameValuePair
net
optionalAttrs
optionals
partition
removeSuffix
stringLength
types

View file

@ -3,9 +3,4 @@
./fonts.nix
./wayland.nix
];
environment.systemPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
}

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{
systemd.network.wait-online.anyInterface = true;
services = {

View file

@ -1,6 +1,5 @@
{
config,
inputs,
lib,
options,
nodes,
@ -10,17 +9,12 @@
(lib)
attrNames
concatMap
elem
foldl'
getAttrFromPath
mdDoc
mkIf
mkOption
mkOptionType
mkMerge
recursiveUpdate
hasAttrByPath
setAttrByPath
types
;
@ -31,7 +25,7 @@ in {
description = mdDoc "Allows extending the configuration of other machines.";
type = types.attrsOf (mkOptionType {
name = "Toplevel NixOS config";
merge = loc: map (x: x.value);
merge = _loc: map (x: x.value);
});
};

View file

@ -9,8 +9,6 @@
mkOption
types
;
cfg = config.node;
in {
options.node = {
name = mkOption {

View file

@ -2,17 +2,14 @@
config,
inputs,
lib,
pkgs,
...
}: let
inherit
(lib)
assertMsg
attrNames
literalExpression
mapAttrs
mdDoc
mkIf
mkOption
types
;

View file

@ -11,7 +11,6 @@
mkDefault
mdDoc
mkIf
mkMerge
mkOption
types
;