From 6d2c537e5aa255a405cea2fe6b2e9377779b2ff3 Mon Sep 17 00:00:00 2001 From: Natalie Date: Wed, 7 May 2025 13:23:34 -0700 Subject: [PATCH] remove option to have no user --- lib/mkSystem.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/mkSystem.nix b/lib/mkSystem.nix index 60d156f..09f69df 100644 --- a/lib/mkSystem.nix +++ b/lib/mkSystem.nix @@ -6,7 +6,7 @@ inputs, }: name: { user, # ./users/{name} - host ? null, # ./users/{name}/{host} (optional) + host, # ./users/{name}/{host} (optional) system, # arch-os extraModules ? [], }: let @@ -102,9 +102,7 @@ in (pathOrNull userConfigPath) # The host-wide configuration.nix ( - if host != null - then pathOrNull hostConfigPath - else null + pathOrNull hostConfigPath ) # Set up nix-index and enable comma for easy one-shot command use @@ -131,9 +129,7 @@ in pathOrNull userHomePath ) ( - if host != null - then pathOrNull hostHomePath - else null + pathOrNull hostHomePath ) #Can't have conditional import path ../modules/macos/tiling/sketchybar-home.nix