From 8dbcfef0202b33bfe2ebef204e362b3087f9edd0 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 7 Dec 2021 20:57:51 +0100 Subject: flameshot: admit NixOS 21.11 --- krebs/5pkgs/override/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/krebs/5pkgs/override/default.nix b/krebs/5pkgs/override/default.nix index 2291132b..1b346d4e 100644 --- a/krebs/5pkgs/override/default.nix +++ b/krebs/5pkgs/override/default.nix @@ -20,6 +20,9 @@ self: super: { "0.10.1" = [ ./flameshot/flameshot_imgur_0.9.0.patch ]; + "0.10.2" = [ + ./flameshot/flameshot_imgur_0.9.0.patch + ]; }.${old.version}; }); -- cgit v1.2.3 From c3d43331dbefc24fa8079dac827be49c126bca6a Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 7 Dec 2021 21:27:44 +0100 Subject: tv x220 nix.daemon*: admit NixOS 21.11 --- tv/2configs/hw/x220.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index ecbb84a4..a4342fcc 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -26,6 +26,18 @@ in LIBINPUT_MODEL_LENOVO_X220_TOUCHPAD_FW81=1 ''; } + + { + nix.buildCores = 2; + nix.maxJobs = 2; + } + (if lib.versionAtLeast lib.version "21.11" then { + nix.daemonCPUSchedPolicy = "batch"; + nix.daemonIOSchedPriority = 1; + } else { + nix.daemonIONiceLevel = 1; + nix.daemonNiceLevel = 1; + }) ]; boot.extraModulePackages = [ @@ -54,12 +66,6 @@ in START_CHARGE_THRESH_BAT0 = 80; }; - nix = { - buildCores = 2; - maxJobs = 2; - daemonIONiceLevel = 1; - daemonNiceLevel = 1; - }; services.logind.extraConfig = '' HandleHibernateKey=ignore -- cgit v1.2.3 From ba955a903ec8135400d0d649cc775aaeaa2bee63 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 7 Dec 2021 21:57:45 +0100 Subject: tv net.ipv6.conf.*.use_tempaddr: admit NixOS 21.11 --- tv/2configs/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index de298e16..8add07ff 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -94,8 +94,17 @@ with import ; { boot.kernel.sysctl = { # Enable IPv6 Privacy Extensions - "net.ipv6.conf.all.use_tempaddr" = 2; - "net.ipv6.conf.default.use_tempaddr" = 2; + # + # XXX use mkForce here because since NixOS 21.11 there's a collision in + # net.ipv6.conf.default.use_tempaddr, and boot.kernel.sysctl incapable + # of merging. + # + # XXX net.ipv6.conf.all.use_tempaddr is set because it was mentioned in + # https://tldp.org/HOWTO/Linux+IPv6-HOWTO/ch06s05.html + # TODO check if that is really necessary, otherwise we can rely solely + # on networking.tempAddresses in the future (when nothing is <21.11) + "net.ipv6.conf.all.use_tempaddr" = mkForce 2; + "net.ipv6.conf.default.use_tempaddr" = mkForce 2; }; } -- cgit v1.2.3 From a05213de2a259d2a1e328876827ef25f0fb7f7b3 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 8 Dec 2021 00:55:17 +0100 Subject: tv gitrepos: add texnix --- tv/2configs/gitrepos.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 6f4dedad..fc76e5fd 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -116,6 +116,9 @@ let { TabFS = { cgit.desc = "mount browser tabs & co. as a filesystem"; }; + texnix = { + cgit.desc = "TeX live environment generator"; + }; with-ssh = {}; } // mapAttrs (_: recursiveUpdate { cgit.section = "2. Host configurations"; }) { ni = { -- cgit v1.2.3