From 65ea8beba00be7539a3a76bb50286f50ec26e51d Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 14 Jan 2025 12:22:06 +0100 Subject: [PATCH] options: remove isServer since we have server profile --- modules/options/homeVars.nix | 2 +- modules/options/systemVars.nix | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/options/homeVars.nix b/modules/options/homeVars.nix index 3b2688c..fe69889 100644 --- a/modules/options/homeVars.nix +++ b/modules/options/homeVars.nix @@ -20,7 +20,7 @@ in { }; }; - config.assertions = mkIf (!config.local.systemVars.isServer) [ + config.assertions = mkIf (!config.local.profiles.server.enable) [ { assertion = options.local.homeVars.fullName.isDefined; } diff --git a/modules/options/systemVars.nix b/modules/options/systemVars.nix index cb8d169..b4aad13 100644 --- a/modules/options/systemVars.nix +++ b/modules/options/systemVars.nix @@ -4,7 +4,7 @@ ... }: let inherit (lib) mkOption; - inherit (lib.types) bool str; + inherit (lib.types) str; in { options.local.systemVars = { hostName = mkOption { @@ -17,11 +17,6 @@ in { description = "username for the home directory"; default = null; }; - isServer = mkOption { - type = bool; - description = "whether or not this host is a server"; - default = false; - }; }; config.assertions = [