From 5339e045194c5ad482250c0271959a5fd9f97db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 2 Jan 2022 17:23:58 +0100 Subject: nios: Add sentinel module --- nixos/nixos-modules-minfake.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 nixos/nixos-modules-minfake.nix (limited to 'nixos/nixos-modules-minfake.nix') diff --git a/nixos/nixos-modules-minfake.nix b/nixos/nixos-modules-minfake.nix new file mode 100644 index 0000000..e7836cb --- /dev/null +++ b/nixos/nixos-modules-minfake.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + + options = let + + mkFake = {type, default}: mkOption { + type = type; + default = default; + description = "The module this option was part of was removed as part of Turris trim"; + }; + mkFakeList = type: mkFake { + type = types.listOf type; + default = []; + }; + + mkFakeDisable = mkOption { + type = types.bool; + default = false; + description = "The in default disabled option that was removed as part of Turris trim"; + }; + + in { + + services.xserver.enable = mkFakeDisable; + services.xserver.displayManager.hiddenUsers = mkFakeList types.str; + services.xserver.startGnuPGAgent = mkFakeDisable; + + }; + + config = { + }; +} + + -- cgit v1.2.3