From e50fd12af8066efdaced621538b6ae2af8cf307a Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Jun 2021 15:53:13 +0200 Subject: tv charybdis: isSystemUser --- tv/3modules/charybdis/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'tv') diff --git a/tv/3modules/charybdis/default.nix b/tv/3modules/charybdis/default.nix index a0638e1eb..9c5ce2731 100644 --- a/tv/3modules/charybdis/default.nix +++ b/tv/3modules/charybdis/default.nix @@ -84,6 +84,7 @@ in { users.users.${cfg.user.name} = { inherit (cfg.user) home name uid; createHome = true; + isSystemUser = true; }; }; } -- cgit v1.2.3 From 790e8e65df5222a5aeb4c121cda4d02a535e824b Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Jun 2021 15:53:47 +0200 Subject: tv ejabberd: isSystemUser --- tv/3modules/ejabberd/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'tv') diff --git a/tv/3modules/ejabberd/default.nix b/tv/3modules/ejabberd/default.nix index aaf262fa1..2ca88732b 100644 --- a/tv/3modules/ejabberd/default.nix +++ b/tv/3modules/ejabberd/default.nix @@ -119,6 +119,7 @@ in { users.users.${cfg.user.name} = { inherit (cfg.user) home name uid; createHome = true; + isSystemUser = true; }; }; } -- cgit v1.2.3 From 6c1f1c26e7a5e2d11cc8a1d43d86568c760af526 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 18 Jun 2021 20:58:53 +0200 Subject: tv: krebspaste? no thanks! --- tv/2configs/default.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'tv') diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index 19e191b7b..8e8d0a468 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -123,7 +123,6 @@ with import ; pkgs.hashPassword pkgs.htop pkgs.kpaste - pkgs.krebspaste pkgs.nix-prefetch-scripts pkgs.ovh-zone pkgs.push -- cgit v1.2.3 From 1fe0a9419290219dec4ea89c7b5e7052d7c19e18 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 24 Jun 2021 01:12:24 +0200 Subject: tv xtoggledpms: init --- tv/5pkgs/simple/xtoggledpms.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tv/5pkgs/simple/xtoggledpms.nix (limited to 'tv') diff --git a/tv/5pkgs/simple/xtoggledpms.nix b/tv/5pkgs/simple/xtoggledpms.nix new file mode 100644 index 000000000..d164ad712 --- /dev/null +++ b/tv/5pkgs/simple/xtoggledpms.nix @@ -0,0 +1,16 @@ +{ pkgs }: + +let + grep = "${pkgs.gnugrep}/bin/grep"; + xset = "${pkgs.xorg.xset}/bin/xset"; +in + +pkgs.writeDashBin "xtoggledpms" '' + # usage: xtoggledpms + set -efu + if ${xset} q | ${grep} -qF 'DPMS is Disabled'; then + ${xset} dpms force off + else + ${xset} s off -dpms + fi +'' -- cgit v1.2.3