diff options
| author | andromeda <andromeda@lenovo> | 2026-01-09 23:38:21 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-01-09 23:38:21 +0100 |
| commit | 3f1b2d87899ea261106bf2cf06fe15f77d51b3fa (patch) | |
| tree | b1f23daf83d1bcf60a95f0cae377aad2b079d40e | |
| parent | 0658c5d898d6267e23d28f60d2c32edcf85d5c06 (diff) | |
disable sudo lecture
| -rw-r--r-- | machines/lenovo.nix | 2 | ||||
| -rw-r--r-- | modules/nixos/common.nix | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/machines/lenovo.nix b/machines/lenovo.nix index 15f0ab3..86255b1 100644 --- a/machines/lenovo.nix +++ b/machines/lenovo.nix @@ -41,7 +41,7 @@ btrfs subvolume create /btrfs_tmp/root mkdir /btrfs_tmp/root/persist 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 umount /btrfs_tmp/root/persist rm -r /btrfs_tmp/root/persist diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index c0d1d73..94d77d4 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -17,4 +17,7 @@ boot.tmp.cleanOnBoot = true; networking.domain = lib.mkDefault config.networking.hostName; + + # disable lecture + security.sudo.extraConfig = ''Defaults lecture="never"''; } |
