1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17:44 +00:00

chore: migrate nine host

This commit is contained in:
RGBCube 2025-02-22 17:38:46 +03:00
parent f67d2760f7
commit bf396257de
34 changed files with 400 additions and 177 deletions

View file

@ -1,5 +1,5 @@
{ config, lib, ... }: let
inherit (lib) any elem getAttr last mapAttrsToList mkConst splitString;
inherit (lib) last mkConst mkValue splitString;
in {
options = {
os = mkConst <| last <| splitString "-" config.nixpkgs.hostPlatform.system;
@ -7,7 +7,9 @@ in {
isLinux = mkConst <| config.os == "linux";
isDarwin = mkConst <| config.os == "darwin";
isDesktop = mkConst <| config.isDarwin || false; # (any (elem "graphical") <| mapAttrsToList (_: getAttr "extraGroups") config.users.users);
isServer = mkConst <| !config.isDesktop;
type = mkValue "server";
isDesktop = mkConst <| config.type == "desktop";
isServer = mkConst <| config.type == "server";
};
}