feat: erase your darlings
This commit is contained in:
parent
d8653015d5
commit
34e69262ff
4 changed files with 51 additions and 25 deletions
28
modules/base/erase-your-darlings.nix
Normal file
28
modules/base/erase-your-darlings.nix
Normal 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
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue