disable sudo lecture

This commit is contained in:
andromeda
2026-01-09 23:38:21 +01:00
parent 0658c5d898
commit 3f1b2d8789
2 changed files with 4 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
btrfs subvolume create /btrfs_tmp/root btrfs subvolume create /btrfs_tmp/root
mkdir /btrfs_tmp/root/persist mkdir /btrfs_tmp/root/persist
mkdir /btrfs_tmp/root/etc mkdir /btrfs_tmp/root/etc
mount ${config.fileSystems."/persist".device} /btrfs_tmp/root/persist mount ${config.fileSystems."/persist".device} /btrfs_tmp/root/persist -o subvol=persist
cp /btrfs_tmp/root/persist/etc/ssh /btrfs_tmp/root/etc/ssh -r cp /btrfs_tmp/root/persist/etc/ssh /btrfs_tmp/root/etc/ssh -r
umount /btrfs_tmp/root/persist umount /btrfs_tmp/root/persist
rm -r /btrfs_tmp/root/persist rm -r /btrfs_tmp/root/persist

View File

@@ -17,4 +17,7 @@
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
networking.domain = lib.mkDefault config.networking.hostName; networking.domain = lib.mkDefault config.networking.hostName;
# disable lecture
security.sudo.extraConfig = ''Defaults lecture="never"'';
} }