disable sudo lecture
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user