summaryrefslogtreecommitdiff
path: root/modules/users
AgeCommit message (Collapse)Author
2024-04-19treewide: remove lib.mdDocWeijia Wang
2024-03-04Merge pull request #821 from qowoz/usersMichael Hoang
users: fix `forceRecreate` bash comparison
2024-01-20fix: set shell for new users, and only known onesHraban Luyat
2024-01-20fix: user shell path handlingHraban Luyat
Properly detect the binary name (not just /nix/store/...-bash, but include the .../bin/bash), and use the symlinked name which also appears in /etc/shells.
2023-12-04users: fix `forceRecreate` bash comparisonzowoq
2023-06-24treewide: convert all option docs to MarkdownEmily
This process was automated by [my fork of `nix-doc-munge`]; thanks to @pennae for writing this tool! It automatically checks that the resulting documentation doesn't change, although my fork loosens this a little to ignore some irrelevant whitespace and typographical differences. As of this commit there is no DocBook remaining in the options documentation. You can play along at home if you want to reproduce this commit: $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \ nix shell nixpkgs#coreutils \ -c find . -name '*.nix' \ -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \ {} + [my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2021-02-17users: migrate nixbld -> _nixbldDaiderd Jordan
According to some investigation creating "role" accounts avoids migration problems when upgrading to certain macOS versions, so create the build users to match that definition and remove the old ones if present. Role accounts require name starting with _ and UID in 200-400 range
2020-09-02Remove deprecated types.loaOfMario Rodas
types.loaOf has been deprecated for a long time and is now in the process of removal. See: https://github.com/NixOS/nixpkgs/pull/96042
2020-02-11users: ensure uniqueness of gid/uid entriesDaiderd Jordan
Instead of a cryptic error during activation conflicting ids are now caught during evaluation. error: The option `users.uids.30001' has conflicting definitions
2020-01-21replace list values for types.loaOfDaiderd Jordan
This type has been deprecated in nixpkgs, these options will be replaced with types.attrsOf in the future.
2019-02-24users: gate the creation with an option, false by default and use createhomedirWael M. Nasreddine
2019-02-24users: create/chown the home only when it is different than /var/emptyWael M. Nasreddine
2019-02-24users: create the home-directory for a new userWael M. Nasreddine
2019-02-23users.users: only extend profiles if packages are definedDaiderd Jordan
2019-02-23Merge pull request #127 from kalbasit/nix-darwin_user-packagesDaiderd Jordan
users: install user packages via users.users.<name?>.packages
2019-02-21order the environmentWael M. Nasreddine
2019-02-21users: increase default nixbld users to 32 and set knownUsers by defaultDaiderd Jordan
Since the users.nix.configureBuildUsers target nixbld users, don't require them to be added to knownUsers explicitly.
2019-02-20users: install user packages via users.users.<name?>.packagesWael M. Nasreddine
2018-07-21types.string -> types.strDaiderd Jordan
These options unintentionally used the deprecated string type, the important difference between these is the fact that string merges by default (similar to eg. lines) while str can only have a single value.
2018-06-22users: add forceRecreate optionDaiderd Jordan
2018-03-03users: update the description for knownGroups/knownUsersDaiderd Jordan
2018-01-14users: add option to configure nixbld users.Daiderd Jordan
2018-01-14users: make users hidden by defaultDaiderd Jordan
2018-01-14users: add support for group membersDaiderd Jordan
Unlike user options this is updated if the group already exists.
2018-01-13users: remove enable optionDaiderd Jordan
2018-01-13users: move submodules to separate filesDaiderd Jordan
2018-01-13users: add options for user creationDaiderd Jordan
2018-01-13users: add options to create user groupsDaiderd Jordan