From 0c11c9fbf6f577f0e23dc09ec383c44431b516fa Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Fri, 19 Apr 2024 20:34:23 +0200 Subject: modules: introduce role system --- modules/nixos/roles.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/nixos/roles.nix (limited to 'modules/nixos/roles.nix') diff --git a/modules/nixos/roles.nix b/modules/nixos/roles.nix new file mode 100644 index 0000000..71883e0 --- /dev/null +++ b/modules/nixos/roles.nix @@ -0,0 +1,7 @@ +{lib, ...}: { + options.role.sils = lib.mkOption { + type = lib.types.nullOr (lib.types.enum ["laptop" "undefined" "vm"]); + default = null; + description = "The role which should be applied to your configuration."; + }; +} -- cgit 1.4.1