-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single Admin user & multiple non-admin users #119
Comments
Thanks for the kind words on the project! Here is where I setup the user:
The You could do something like this (I haven't tested it):
For managing different software for different users, I'd look into breaking out Line 124 in d94dff0
Don't get confused by the ${user}, that just gets replaced with For how to break it out, I asked ChatGPT how to do it and here's what it said: To ensure different users on a macOS system receive distinct packages and settings declaratively with 1. Organize User-Specific Configuration FilesFirst, you need separate files for each user’s configuration, specifying packages and any custom settings they need. For example:
Each of these files will define the packages and settings unique to that user. Here’s an example structure for { config, pkgs, ... }:
{
home-manager.users.dustin = { pkgs, ... }: {
# Packages specific to user "dustin"
home.packages = with pkgs; [
emacs
git
tmux
];
# Additional user-specific settings go here
};
} For { config, pkgs, ... }:
{
home-manager.users.otheruser = { pkgs, ... }: {
# Packages specific to "otheruser"
home.packages = with pkgs; [
nano
htop
wget
];
# Additional user-specific settings go here
};
} 2. Integrate User Modules into
|
I've been watching this project for some time now, looks very cool & interesting!
Currently I have my own custom blueprint system which is based on homebrew, mackup, dotbot & transcrypt as well as many custom scripts.
As part of my system setup I always create a separate admin user and then all of my day-to-day users are non-admin.
This means that I always need to install things with homebrew as an admin user.
❓ So my question is...
I tried searching the repo, I see that there is a
trusted_user
thing and it seems that there is other stuff related to user info etc... but without diving into the setup I figured it might be easier to ask it here and then there is some documentation for future users.Thanks!!
The text was updated successfully, but these errors were encountered: