From 28249452e79ed9b51ec5ea4d7d7d32fbacfde38a Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 19:40:29 +0100 Subject: ma gui/look-up: add pkgs --- makefu/2configs/gui/look-up.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'makefu') diff --git a/makefu/2configs/gui/look-up.nix b/makefu/2configs/gui/look-up.nix index d27f5cff7..244cf21b5 100644 --- a/makefu/2configs/gui/look-up.nix +++ b/makefu/2configs/gui/look-up.nix @@ -1,3 +1,4 @@ +{pkgs, ... }: { systemd.services.look-up = { startAt = "*:30"; -- cgit v1.2.3 From 754d36818c85925b36e0de03e81d22473eb5b7ad Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 19:41:47 +0100 Subject: ma download.binaergewitter: fix logrotate --- makefu/2configs/bgt/download.binaergewitter.de.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu') diff --git a/makefu/2configs/bgt/download.binaergewitter.de.nix b/makefu/2configs/bgt/download.binaergewitter.de.nix index d49ad158b..bd5dc5bf7 100644 --- a/makefu/2configs/bgt/download.binaergewitter.de.nix +++ b/makefu/2configs/bgt/download.binaergewitter.de.nix @@ -43,7 +43,7 @@ in { services.logrotate = { enable = true; - config = '' + settings.header = '' ${bgtaccess} ${bgterror} { rotate 5 weekly -- cgit v1.2.3 From c78b8c9d7c9b160a748aa9dd165d0e6330c741a0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 19:42:41 +0100 Subject: ma security/hotfix: rip --- makefu/2configs/default.nix | 2 +- makefu/2configs/security/hotfix.nix | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 makefu/2configs/security/hotfix.nix (limited to 'makefu') diff --git a/makefu/2configs/default.nix b/makefu/2configs/default.nix index 66c77e1eb..9a08a4497 100644 --- a/makefu/2configs/default.nix +++ b/makefu/2configs/default.nix @@ -11,7 +11,7 @@ with import ; ./editor/vim.nix ./binary-cache/nixos.nix ./minimal.nix - ./security/hotfix.nix + # ./security/hotfix.nix ]; # users are super important diff --git a/makefu/2configs/security/hotfix.nix b/makefu/2configs/security/hotfix.nix deleted file mode 100644 index fc52f21e6..000000000 --- a/makefu/2configs/security/hotfix.nix +++ /dev/null @@ -1,4 +0,0 @@ -{ pkgs, lib,... }: { - # https://github.com/berdav/CVE-2021-4034 - security.wrappers.pkexec.source = lib.mkForce (pkgs.writeText "pkexec" ""); -} -- cgit v1.2.3 From ce30f4b31833062f328d2bda3a82bfc1425a6471 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 19:48:02 +0100 Subject: ma krops: bump home-manager , nix-hardware --- makefu/krops.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makefu') diff --git a/makefu/krops.nix b/makefu/krops.nix index d907c8e36..94677609e 100644 --- a/makefu/krops.nix +++ b/makefu/krops.nix @@ -75,20 +75,20 @@ (lib.mkIf ( host-src.hw ) { nixos-hardware.git = { url = https://github.com/nixos/nixos-hardware.git; - ref = "12620020f76b1b5d2b0e6fbbda831ed4f5fe56e1"; + ref = "9d87bc030a0bf3f00e953dbf095a7d8e852dab6b"; }; }) (lib.mkIf ( host-src.nix-ld ) { nix-ld.git = { url = https://github.com/Mic92/nix-ld.git; - ref = "c25cc4b"; + ref = "7d251c0c5adf6b9b003499243be257d0f130b3d6"; }; }) (lib.mkIf ( host-src.home-manager ) { home-manager.git = { url = https://github.com/rycee/home-manager; - ref = "1de492f"; + ref = "054d9e3187ca00479e8036dc0e92900a384f30fd"; }; }) ]; -- cgit v1.2.3 From 6c391d7361240671b9165b7092105a1bf86517a0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:00:20 +0100 Subject: ma download.binaergewitter: logrotate new format --- makefu/2configs/bgt/download.binaergewitter.de.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'makefu') diff --git a/makefu/2configs/bgt/download.binaergewitter.de.nix b/makefu/2configs/bgt/download.binaergewitter.de.nix index bd5dc5bf7..31da31a71 100644 --- a/makefu/2configs/bgt/download.binaergewitter.de.nix +++ b/makefu/2configs/bgt/download.binaergewitter.de.nix @@ -43,16 +43,13 @@ in { services.logrotate = { enable = true; - settings.header = '' - ${bgtaccess} ${bgterror} { - rotate 5 - weekly - create 600 nginx nginx - postrotate - ${pkgs.systemd}/bin/systemctl reload nginx - endscript - } - ''; + settings.bgt = { + files = [ bgtaccess bgterror ]; + rotate = 5; + frequency = "weekly"; + create = "600 nginx nginx"; + postrotate = "${pkgs.systemd}/bin/systemctl reload nginx"; + }; }; # 20.09 unharden nginx to write logs -- cgit v1.2.3 From 369803fe3126aaf4a6921f6d5995477c071e2d3e Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:02:06 +0100 Subject: ma gui/look-up: fix refactoring --- makefu/2configs/gui/look-up.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'makefu') diff --git a/makefu/2configs/gui/look-up.nix b/makefu/2configs/gui/look-up.nix index 244cf21b5..eea84bc48 100644 --- a/makefu/2configs/gui/look-up.nix +++ b/makefu/2configs/gui/look-up.nix @@ -1,5 +1,8 @@ -{pkgs, ... }: -{ +{pkgs, config, ... }: +let + user = config.krebs.build.user.name; +in + { systemd.services.look-up = { startAt = "*:30"; serviceConfig = { -- cgit v1.2.3 From 543783c1bb1bb5dd21e9203d37e400cdb6af5ef4 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:15:54 +0100 Subject: ma pkgs.ratt: update vendor sha256 --- makefu/5pkgs/ratt/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu') diff --git a/makefu/5pkgs/ratt/default.nix b/makefu/5pkgs/ratt/default.nix index 0ad94c55e..575a33f2b 100644 --- a/makefu/5pkgs/ratt/default.nix +++ b/makefu/5pkgs/ratt/default.nix @@ -11,7 +11,7 @@ buildGoModule rec { }; proxyVendor = true; - vendorSha256 = "sha256-AOtWR7Ew+0I7+TrMZOCxOKGCv+mlvcqy9s+gX2JKwnE="; + vendorSha256 = "sha256-tCSwyusVstEkz2pXYGX5JmS+VgqErSPtnh4LomaaFcE="; # tests try to access the internet to scrape websites doCheck = false; -- cgit v1.2.3 From 20a0952d87f1c25ac85758d03d0a1b2339fe57c6 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:38:03 +0100 Subject: ma pkgs.pkgrename: allow-multiple-definitions i have no idea what i am doing --- makefu/5pkgs/pkgrename/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makefu') diff --git a/makefu/5pkgs/pkgrename/default.nix b/makefu/5pkgs/pkgrename/default.nix index 5eeb161e7..c0944b03c 100644 --- a/makefu/5pkgs/pkgrename/default.nix +++ b/makefu/5pkgs/pkgrename/default.nix @@ -2,19 +2,19 @@ }: stdenv.mkDerivation rec { name = "pkgrename"; - version = "1.03"; + version = "1.05"; src = fetchFromGitHub { owner = "hippie68"; repo = "pkgrename"; - rev = "c3e5c47ed9367273bd09577af46d3d9bf87b2a50"; + rev = "c7c95f0ea49324433db4a7df8db8b0905198e62e"; sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3"; }; buildInputs = [ curl.dev ]; buildPhase = '' cd pkgrename.c - gcc pkgrename.c src/*.c -o pkgrename -lcurl -s -O1 $(curl-config --cflags --libs) + $CC pkgrename.c src/*.c -o pkgrename -s -O3 $(curl-config --cflags --libs) -Wl,--allow-multiple-definition ''; installPhase = '' install -D pkgrename $out/bin/pkgrename -- cgit v1.2.3 From 908bb16cc8356a1b77fc79a9f49c0bd0a3d8b3e0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:59:24 +0100 Subject: ma gui/look-up: fix configuration --- makefu/2configs/gui/look-up.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'makefu') diff --git a/makefu/2configs/gui/look-up.nix b/makefu/2configs/gui/look-up.nix index eea84bc48..e04098cc2 100644 --- a/makefu/2configs/gui/look-up.nix +++ b/makefu/2configs/gui/look-up.nix @@ -1,6 +1,7 @@ {pkgs, config, ... }: let user = config.krebs.build.user.name; + window-manager = "awesome"; in { systemd.services.look-up = { -- cgit v1.2.3