chore: add a new host and make a few adjustments

This commit is contained in:
TheGeneralist 2025-06-23 09:09:26 +02:00
parent d084d841ce
commit 688acfe889
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
16 changed files with 195 additions and 65 deletions

View file

@ -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.";
};
};
}