nixdots/options/system/default.nix
2024-08-24 10:48:05 +02:00

34 lines
778 B
Nix

{lib, ...}: let
inherit (lib) mkOption mkEnableOption types;
in {
imports = [
./boot
./impermanence.nix
];
options.myOptions.system = {
hostname = mkOption {
type = types.str;
description = "Hostname for this system";
};
username = mkOption {
type = types.str;
description = "Username for the primary admin account for this system";
};
sound = {
enable = mkEnableOption "sound related programs and audio-dependent programs";
};
docker = {
enable = mkEnableOption "docker virtualisation platform";
data-root = mkOption {
type = types.str;
description = "Path to the directory where docker data should be stored";
default = "/var/lib/docker";
};
};
};
}