From 558f9b39199bcdabcf4fb5579a8c69c385bf9b54 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 29 May 2021 21:13:44 +0200 Subject: [PATCH] modules: add option to specify username Given that I use it in plenty of places, it makes sense to place it there for reference in other modules. --- modules/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/default.nix b/modules/default.nix index 69c0bdc..46c2e8e 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,5 +1,5 @@ # Common modules -{ ... }: +{ lib, ... }: { imports = [ @@ -8,4 +8,13 @@ ./services ./system ]; + + options.my = with lib; { + username = mkOption { + type = types.str; + default = "ambroisie"; + example = "alice"; + description = "my username"; + }; + }; }