From f6d8e3253f9aadce26cb9f7d51245e2691cd8627 Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Thu, 24 Sep 2026 19:47:24 -0400 Subject: loadable hosts --- darwin.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'darwin.nix') diff --git a/darwin.nix b/darwin.nix index 978af1b..6e339c3 100755 --- a/darwin.nix +++ b/darwin.nix @@ -6,16 +6,15 @@ }: let - paneru = builtins.getFlake "github:karinushka/paneru/bcf248ef60aa4c0b49002161b97bc6e268b05aa7"; - hostName = import ./host.nix; - primaryUser = if lib.hasSuffix "cs.purdue.edu" hostName then "yoder177" else "grace"; + paneru = builtins.getFlake "github:karinushka/paneru/5a033bc3a59f752ae72944f06945ab13cc570e04"; + host = import ./host.nix; in { imports = [ paneru.darwinModules.paneru ]; nixpkgs.config.allowUnfree = true; nixpkgs.hostPlatform = "aarch64-darwin"; - networking.hostName = hostName; + networking.hostName = host.name; environment.systemPackages = [ pkgs.raycast @@ -23,7 +22,7 @@ in ]; system = { - primaryUser = primaryUser; + primaryUser = host.user; stateVersion = 7; }; -- cgit v1.3.1