aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixos-modules-minfake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/nixos-modules-minfake.nix')
-rw-r--r--nixos/nixos-modules-minfake.nix37
1 files changed, 37 insertions, 0 deletions
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 = {
+ };
+}
+
+