-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: standardise on
primary
user
- Loading branch information
Showing
9 changed files
with
76 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ hmUsers, ... }: | ||
{ | ||
# In this profile, the `nixos` system-level user loads the home-manager | ||
# profile for the `primary` user defined in the flake's | ||
# `self.home.users.primary` option. | ||
# | ||
# The user profile names defined in `self.home.users.<name>` don't need to | ||
# correspond directly to system-level usernames. They can, instead, be | ||
# imported as a module in any `home-manager.users` configuration, allowing for | ||
# more flexibility. | ||
# | ||
# Compare with the `primary` system user (in this directory), which uses a | ||
# simplified (but limited) approach. | ||
home-manager.users.nixos = {...}: { imports = [hmUsers.primary]; }; | ||
|
||
users.users.nixos = { | ||
password = "nixos"; | ||
description = "default"; | ||
isNormalUser = true; | ||
extraGroups = [ "wheel" ]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ hmUsers, ... }: | ||
{ | ||
# You'll need to define an initial hashed or plaintext password for this user. | ||
users.users.primary = { | ||
description = "primary administrative user on this machine"; | ||
}; | ||
|
||
# The following home-manager user definition doesn't include any further | ||
# customization beyond the default `hmUsers.primary` profile, so its | ||
# implementation can be simplified. | ||
# | ||
# Note, however, that the pattern demonstrated in the `nixos` user profile is | ||
# more flexible in the long run, especially if you want to share the same | ||
# home-manager profile amongst multiple users with different usernames. | ||
home-manager.users = { inherit (hmUsers) primary; }; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters