From 2e646d30546c19058e03fc0970dd96987379bd7b Mon Sep 17 00:00:00 2001 From: ediblerope Date: Fri, 9 Jan 2026 13:07:18 +0000 Subject: [PATCH] Update users.nix --- settings/users.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/settings/users.nix b/settings/users.nix index ebdf756..43cfc7e 100644 --- a/settings/users.nix +++ b/settings/users.nix @@ -2,14 +2,16 @@ { config, pkgs, lib, ... }: { -# Define a user account. Don't forget to set a password with ‘passwd’. -users.users.fred = { - isNormalUser = true; - description = "fred"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - bazaar - fastfetch - ]; - }; + config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { + # Define a user account. Don't forget to set a password with 'passwd'. + users.users.fred = { + isNormalUser = true; + description = "fred"; + extraGroups = [ "networkmanager" "wheel" ]; + packages = with pkgs; [ + bazaar + fastfetch + ]; + }; + }; }