mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 00:52:39 +02:00
fix: enable sudo password - proxmox
This commit is contained in:
@@ -1,9 +1,4 @@
|
|||||||
{
|
{lib, ...}:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
username,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Template for Proxmox's VM, mainly based on:
|
# Template for Proxmox's VM, mainly based on:
|
||||||
@@ -13,21 +8,6 @@
|
|||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
{
|
{
|
||||||
# DO NOT promote ryan to input password for sudo.
|
|
||||||
# this is a workaround for the issue of remote deploy:
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/118655
|
|
||||||
security.sudo.extraRules = [
|
|
||||||
{
|
|
||||||
users = [username];
|
|
||||||
commands = [
|
|
||||||
{
|
|
||||||
command = "ALL";
|
|
||||||
options = ["NOPASSWD"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
# after resize the disk, it will grow partition automatically.
|
# after resize the disk, it will grow partition automatically.
|
||||||
growPartition = true;
|
growPartition = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user