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 c23d89dcb2
commit 558f9b3919

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";
};
};
} }