nixdots/options/system/default.nix

34 lines
778 B
Nix
Raw Normal View History

2024-08-24 10:33:53 +02:00
{lib, ...}: let
inherit (lib) mkOption mkEnableOption types;
2024-07-27 01:07:07 +02:00
in {
2024-04-07 18:28:15 +02:00
imports = [
2024-04-12 20:57:52 +02:00
./boot
2024-04-07 18:28:15 +02:00
./impermanence.nix
];
2024-04-07 16:54:36 +02:00
2024-03-21 21:47:25 +01:00
options.myOptions.system = {
hostname = mkOption {
type = types.str;
2024-03-23 23:06:58 +01:00
description = "Hostname for this system";
2024-03-21 21:47:25 +01:00
};
username = mkOption {
type = types.str;
2024-03-23 23:06:58 +01:00
description = "Username for the primary admin account for this system";
2024-03-21 21:47:25 +01:00
};
2024-05-15 21:24:55 +02:00
sound = {
enable = mkEnableOption "sound related programs and audio-dependent programs";
};
2024-08-24 10:33:53 +02:00
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";
};
};
2024-03-21 21:47:25 +01:00
};
}