diff options
Diffstat (limited to 'system/sysops.nix')
-rw-r--r-- | system/sysops.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/system/sysops.nix b/system/sysops.nix deleted file mode 100644 index ccf6d0b..0000000 --- a/system/sysops.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, lib, ...}: -let - - inherit (lib) concatMapStringsSep concatStringsSep mkOption types; - inherit (types) str listOf; - - bindir = "/run/current-system/sw/bin"; - - commands = concatStringsSep ", " ( - [ - "${bindir}/du *" - "${bindir}/iftop" - "${bindir}/iotop" - "${bindir}/ip6tables -L*" - "${bindir}/ipsec *" - "${bindir}/iptables -L*" - "${bindir}/journalctl *" - "${bindir}/lsof *" - "${bindir}/mtr *" - "${bindir}/nix-collect-garbage *" - "${bindir}/nmap *" - "${bindir}/tcpdump *" - "${bindir}/traceroute *" - ] ++ map (c: "${bindir}/systemctl ${c} *") - [ "kill" "reload" "restart" "start" "status" "stop" ] - ); - -in { - - config = { - security.sudo.extraConfig = '' - %wheel ALL=(ALL) NOPASSWD: ${commands} - ''; - }; -} |