format all

This commit is contained in:
Kopatz
2025-10-30 21:59:31 +01:00
parent b1dda4d037
commit 8a78e618bb
188 changed files with 3526 additions and 1825 deletions

View File

@@ -1,8 +1,12 @@
{ config, lib, ... }:
with lib;
let cfg = config.custom.nix.index;
in {
options.custom.nix.index = { enable = mkEnableOption "Enables nix index"; };
let
cfg = config.custom.nix.index;
in
{
options.custom.nix.index = {
enable = mkEnableOption "Enables nix index";
};
config = mkIf cfg.enable {
programs.command-not-found.enable = false;

View File

@@ -1,4 +1,10 @@
{ lib, inputs, config, pkgs, ... }:
{
lib,
inputs,
config,
pkgs,
...
}:
with lib;
let
cfg = config.custom.nix;

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.nix.ld;

View File

@@ -1,4 +1,10 @@
{ lib, inputs, config, pkgsVersion, ... }:
{
lib,
inputs,
config,
pkgsVersion,
...
}:
with lib;
let
cfg = config.custom.nix.settings;
@@ -15,12 +21,15 @@ in
};
config = mkIf cfg.enable {
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust =
lib.mkDefault 250;
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = lib.mkDefault 250;
nix = {
optimise.automatic = cfg.optimise;
settings.experimental-features = [ "nix-command" "flakes" "pipe-operators" ];
settings.experimental-features = [
"nix-command"
"flakes"
"pipe-operators"
];
# not used
#settings.substituters =
# lib.mkIf (config.networking.hostName == "kop-pc")