28 lines
588 B
Nix
28 lines
588 B
Nix
{
|
|
inputs,
|
|
outputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf mkOption types;
|
|
cfg = config.horseman.bsae.erase-your-darlings;
|
|
in {
|
|
options = {
|
|
horseman.bsae.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
|
|
'';
|
|
|
|
};
|
|
}
|