feat: erase your darlings

This commit is contained in:
KoenDR06 2026-03-24 01:29:01 +01:00
parent d8653015d5
commit 34e69262ff
4 changed files with 51 additions and 25 deletions

View file

@ -0,0 +1,28 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.base.erase-your-darlings;
in {
options = {
horseman.base.erase-your-darlings = {
enable = mkEnableOption "If set, assumes the machine has been set up as a Erase Your Darlings device";
};
};
config = mkIf cfg.enable {
environment.etc = {
nixos.source = "/persist/etc/nixos";
machine-id.source = "/persist/etc/machine-id";
};
security.sudo.extraConfig = ''
Defaults lecture = never
'';
};
}