modules/options/system: module cleanup
This commit is contained in:
parent
6cb02f7382
commit
b43d09c783
1 changed files with 0 additions and 20 deletions
|
@ -5,8 +5,6 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) elemAt;
|
inherit (builtins) elemAt;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.modules) mkMerge;
|
|
||||||
inherit (lib.lists) optionals;
|
|
||||||
inherit (lib.types) enum listOf str nullOr bool package;
|
inherit (lib.types) enum listOf str nullOr bool package;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -25,33 +23,15 @@ in {
|
||||||
# filesystems
|
# filesystems
|
||||||
# ./fs.nix
|
# ./fs.nix
|
||||||
|
|
||||||
# emulation and virtualization
|
|
||||||
# ./emulation.nix
|
|
||||||
# ./virtualization.nix
|
|
||||||
|
|
||||||
# package and program related options
|
# package and program related options
|
||||||
# ./services
|
# ./services
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
# systemd-nspawn containers
|
|
||||||
# ./containers.nix
|
|
||||||
|
|
||||||
# monitor configuration
|
# monitor configuration
|
||||||
./monitors.nix
|
./monitors.nix
|
||||||
|
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
];
|
||||||
config = {
|
|
||||||
warnings = mkMerge [
|
|
||||||
(optionals (config.modules.system.users == []) [
|
|
||||||
''
|
|
||||||
You have not added any users to be supported by your system. You may end up with an unbootable system!
|
|
||||||
|
|
||||||
Consider setting {option}`config.modules.system.users` in your configuration
|
|
||||||
''
|
|
||||||
])
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
options.modules.system = {
|
options.modules.system = {
|
||||||
mainUser = mkOption {
|
mainUser = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue