chore: add a new host and make a few adjustments
This commit is contained in:
parent
d084d841ce
commit
688acfe889
16 changed files with 195 additions and 65 deletions
|
|
@ -1,11 +1,17 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) mkOption types;
|
||||
in {
|
||||
options = {
|
||||
onLinux = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
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.";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue