mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
17 lines
457 B
Nix
17 lines
457 B
Nix
{ config, lib, pkgs, ... }: let
|
|
inherit (lib) mkOption types;
|
|
in {
|
|
options = {
|
|
onLinux = mkOption {
|
|
type = types.bool;
|
|
default = pkgs.stdenv.isLinux;
|
|
description = "Whether the system is running on Linux";
|
|
};
|
|
|
|
isServer = mkOption {
|
|
type = types.bool;
|
|
default = config.nixpkgs.hostPlatform.isAarch64;
|
|
description = "Whether the system is a server. Determined by the processor architecture.";
|
|
};
|
|
};
|
|
}
|