From c6c9929a090aa8022045514e09ecafd57a954c27 Mon Sep 17 00:00:00 2001 From: azahi Date: Thu, 10 Oct 2024 03:33:47 +0300 Subject: 2024-10-10 --- modules/common/nix.nix | 19 +++++++++---------- modules/common/systemd.nix | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'modules/common') diff --git a/modules/common/nix.nix b/modules/common/nix.nix index d1f835c..0ab2888 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -49,7 +49,7 @@ in } // configurations // local._module.args ''; - programs.bash.shellAliases.nix = "nix --verbose --print-build-logs"; + programs.bash.shellAliases.nix = "nix --verbose --print-build-logs --no-eval-cache"; }; nix = @@ -57,6 +57,8 @@ in notSelfInputs = filterAttrs (n: _: n != "self") inputs; in { + package = mkForce pkgs.nix; # Only use stable Nix. + nixPath = mapAttrsToList (n: v: "${n}=${v}") notSelfInputs ++ [ "nixfiles=${config.my.home}/src/nixfiles" ]; @@ -75,15 +77,12 @@ in my.username ]; - experimental-features = mkForce [ - "auto-allocate-uids" - "cgroups" - "fetch-closure" - "flakes" - "nix-command" - "recursive-nix" - # "configurable-impure-env" - # "pipe-operators" + substituters = [ + "https://cache.tvl.su" + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk=" ]; }; }; diff --git a/modules/common/systemd.nix b/modules/common/systemd.nix index 81df05c..e058ad8 100644 --- a/modules/common/systemd.nix +++ b/modules/common/systemd.nix @@ -26,8 +26,7 @@ with lib; resolved = { llmnr = "false"; dnsovertls = "opportunistic"; - domains = mapAttrsToList (_: v: v) my.domain; - fallbackDns = map (v: "${v}#dns.quad9.net") dns.const.quad9.default; + fallbackDns = dns.const.quad9.default; }; journald.extraConfig = '' -- cgit 1.4.1