format all
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ lib, inputs, config, pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.nix;
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.nix.ld;
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user