From 48f7057034aacd71879a072d2ab7e5e978de0201 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Tue, 11 Mar 2025 16:53:28 +0530 Subject: [PATCH] feat: run homage as root It makes no sus calls anyways --- hosts/rahu/configuration.nix | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/hosts/rahu/configuration.nix b/hosts/rahu/configuration.nix index f05e00d..3838eff 100644 --- a/hosts/rahu/configuration.nix +++ b/hosts/rahu/configuration.nix @@ -79,7 +79,6 @@ after = [ "network.target" ]; serviceConfig = { ExecStart = "/home/user/local/homage"; - User = "user"; }; }; @@ -168,27 +167,6 @@ enableNg = true; }; - security.sudo = { - enable = true; - extraRules = [ - { - commands = [ - { - command = "/run/current-system/sw/sbin/poweroff"; - options = [ "NOPASSWD" ]; - } - { - command = "/run/current-system/sw/sbin/reboot"; - options = [ "NOPASSWD" ]; - } - ]; - groups = [ "wheel" ]; - } - ]; - # extraConfig = '' - # Defaults:rahu secure_path="${pkgs.lib.makeBinPath [ pkgs.systemd ]}:/run/current-system/sw/bin" - # ''; - }; nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ git