1

feat: run homage as root

It makes no sus calls anyways
This commit is contained in:
Himadri Bhattacharjee
2025-03-11 16:53:28 +05:30
parent 857af93341
commit 48f7057034

View File

@@ -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