mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 10:07:44 +00:00
15 lines
416 B
Nix
15 lines
416 B
Nix
{ config, lib, ... }: let
|
|
inherit (lib) last mkConst mkValue splitString;
|
|
in {
|
|
options = {
|
|
os = mkConst <| last <| splitString "-" config.nixpkgs.hostPlatform.system;
|
|
|
|
isLinux = mkConst <| config.os == "linux";
|
|
isDarwin = mkConst <| config.os == "darwin";
|
|
|
|
type = mkValue "server";
|
|
|
|
isDesktop = mkConst <| config.type == "desktop";
|
|
isServer = mkConst <| config.type == "server";
|
|
};
|
|
}
|