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/default.nix | 1 + modules/nixos/roles.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 modules/nixos/roles.nix diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 2d05002..fae14fc 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ + ./roles.nix ./sils ]; } 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