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 + ]; + }; + }; }