From 7bbbd7cbfec67225aa98676a27c007d18d0d5bb5 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Fri, 7 Oct 2022 17:46:04 +0300 Subject: [PATCH] Add sudo config for pacman without password --- config-root.toml | 13 +++++++++---- root/etc/sudoers.d/pacman | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 root/etc/sudoers.d/pacman diff --git a/config-root.toml b/config-root.toml index 867775a..71f0736 100644 --- a/config-root.toml +++ b/config-root.toml @@ -11,8 +11,6 @@ longkey = false showdiff = false workdir = "~/.config/sdotdrop" -[dotfiles] - [dotfiles."f_60-uinput-permissions.rules"] dst = "/etc/udev/rules.d/60-uinput-permissions.rules" src = "etc/udev/rules.d/60-uinput-permissions.rules" @@ -153,7 +151,9 @@ dst = "/etc/kernel/cmdline" src = "etc/systemd/timesyncd.conf" dst = "/etc/systemd/timesyncd.conf" -[profiles] +[dotfiles.f_sudoers_pacman] +src = "etc/sudoers.d/pacman" +dst = "/etc/sudoers.d/pacman" [profiles.Network] dotfiles = ["d_network", "f_networkd.conf"] @@ -162,7 +162,12 @@ dotfiles = ["d_network", "f_networkd.conf"] dotfiles = ["f_locale.conf", "f_locale.gen"] [profiles.Pacman] -dotfiles = ["f_pacman.conf", "f_pacman_zsh_hook", "f_pacserve.service.conf"] +dotfiles = [ + "f_pacman.conf", + "f_pacman_zsh_hook", + "f_pacserve.service.conf", + "f_sudoers_pacman", +] [profiles.Mirkwood] dotfiles = [ diff --git a/root/etc/sudoers.d/pacman b/root/etc/sudoers.d/pacman new file mode 100644 index 0000000..12be60e --- /dev/null +++ b/root/etc/sudoers.d/pacman @@ -0,0 +1 @@ +%wheel ALL = (root) NOPASSWD: /usr/bin/pacman