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.
This commit is contained in:
Bruno BELANYI 2021-05-29 21:13:44 +02:00
parent 2d9b11406a
commit 8efe75295d

View file

@ -1,5 +1,5 @@
# Common modules # Common modules
{ ... }: { lib, ... }:
{ {
imports = [ imports = [
@ -8,4 +8,13 @@
./services ./services
./system ./system
]; ];
options.my = with lib; {
username = mkOption {
type = types.str;
default = "ambroisie";
example = "alice";
description = "my username";
};
};
} }