Update users.nix

This commit is contained in:
ediblerope 2026-01-09 13:07:18 +00:00 committed by GitHub
parent a6c4e2b77b
commit 2e646d3054
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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