summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2024-11-11users: warn users to use `pkgs.bashInteractive` instead of `pkgs.bash`Michael Hoang
2024-11-11users: assert that `programs.<shell>.enable = true;` for users' shellsMichael Hoang
Backport of https://github.com/NixOS/nixpkgs/pull/211603 and https://github.com/NixOS/nixpkgs/commit/093f354a1777e462bd80398c4fc624c4d383dc68
2024-11-11users: remove `lib.`Michael Hoang
2024-11-09docs: use `nix-darwin` instead of `Darwin`Michael Hoang
2024-11-09Merge pull request #1154 from Samasaur1/zshenv-rcsMichael Hoang
zsh: only run shell initialization in /etc/zshenv when RCs are enabled
2024-11-07zsh: only run shell initialization in /etc/zshenv when RCs are enabledSam
2024-11-08nix: don't allow using `auto-optimise-store` as it can corrupt the storeMichael Hoang
2024-11-07github-runner: Fix labels for different nixpkgs versionsYuriy Taraday
Changes to escapeShellArg introduced in https://github.com/NixOS/nixpkgs/pull/333744 made different versions of nixpkgs behave differently. If current nix-darwin is used with nixpkgs before that change, labels end up having labels quoted twice (see https://github.com/LnL7/nix-darwin/issues/1085), but without changes from https://github.com/LnL7/nix-darwin/pull/1055, with new nixpkgs, labels end up not quoted at all, and ShellCheck ends up complaining that commas might have been used as array item separator (see https://www.shellcheck.net/wiki/SC2054). Use the old version of escapeShellArg to always escape the list of labels and make nix-darwin work with both old and new versions of nixpkgs. Fixes https://github.com/LnL7/nix-darwin/issues/1085
2024-11-07buildkit-agents: don't use `mkdir -p -m`Michael Hoang
As `cfg.dataDir` will be the `home` of the Buildkite Agent user, it is guaranted to exist so we don't need to use the `-p` flag.
2024-11-07github-runner: replace `mkdir -p -m` with `umask`Michael Hoang
`mkdir -p -m` only applies the mode on the deepest directory which could be a security issue so we use umask to be more careful.
2024-11-07users: don't generate `ensurePerms` when no users to manageMichael Hoang
2024-11-07users: replace runtime check to prevent deleting `root` with assertionMichael Hoang
This fixes SC2050 as `${name} == "root"` will be generated as a constant expression.
2024-11-07system: replace `for f in $(ls ...)` with `for f in .../*`Michael Hoang
Fixes SC2045 but has one quirk which is if the bash glob doesn't match anything it'll treat it as a string and run the loop once with `f=.../*` so we need to check that `$f` actually exists.
2024-11-07treewide: fix shellcheck warnings and errorsMichael Hoang
2024-11-07checks: move manual `/run` instructions to activationMichael Hoang
2024-11-07system: run `shellcheck` on `activate` and `activate-user` scriptsMichael Hoang
2024-11-07examples: clean upMichael Hoang
2024-11-07examples: drop `ofborg` exampleMichael Hoang
We decided to drop this example as the package is not available in Nixpkgs and we won't be able to import it easily and keep this example evaluating as a useful smoke test. The code in this example is already documented under `services.ofborg.*` so any interested users can still find out how to set up `ofborg`.
2024-11-07ofborg: automatically add `ofborg` to `known{Users,Groups}`Michael Hoang
2024-11-07examples: fix evaluationMichael Hoang
2024-11-06Merge pull request #909 from motheki/fast-syntax-highlighting-supportMichael Hoang
Add support for zsh-fast-syntax-highlighting
2024-11-06Update modules/programs/zsh/default.nix Trevor Opiyo
Changes added by Enzime Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-05Update default.nixTrevor Opiyo
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-05prometheus-node-exporter: fix log permissionsEmily
The daemon won’t start as the assigned user doesn’t have permissions to create the log file.
2024-11-05Merge pull request #1145 from qowoz/shellcheck-timezoneMichael Hoang
time: shellcheck fix
2024-11-05time: shellcheck fixzowoq
https://www.shellcheck.net/wiki/SC2143
2024-11-04Merge pull request #1129 from mweinelt/node-exporterEmily
module: add prometheus-node-exporter service
2024-11-03Merge pull request #1125 from aschleck/new-window-pathMichael Hoang
Configure the folder that new Finder windows open
2024-11-03Merge pull request #1130 from aschleck/fn-keyMichael Hoang
Allow configuring the fn key action
2024-11-02Merge pull request #1135 from Enzime/push-lxwqqpssklynEmily
environment: remove misleading `environment.loginShell` option
2024-11-02Allow configuring the fn key actionApril Schleck
2024-11-02Configure the folder that new Finder windows openApril Schleck
2024-11-02users: don't check home directory is correct before creating userMichael Hoang
2024-11-01Merge pull request #1133 from bew/patch-1Michael Hoang
karabiner-elements: allow use of custom package
2024-10-31karabiner-elements: allow use of custom packageBenoît de Chezelles
2024-10-31tmux: remove `programs.tmux.defaultCommand`Michael Hoang
2024-10-31environment: remove misleading `environment.loginShell` optionMichael Hoang
2024-10-31zsh: enable by default as zsh is the default shell on macOSMichael Hoang
Historically this was a footgun because users would not always have this enabled leading to `darwin-rebuild` and other programs not being found.
2024-10-31module: add prometheus-node-exporter serviceMartin Weinelt
2024-10-28users: create users with home directory `/var/empty` by defaultMichael Hoang
2024-10-28users: remove `users.forceRecreate` optionMichael Hoang
2024-10-28users: fix unclosed stringMichael Hoang
2024-10-28users: remove `with lib;`Michael Hoang
2024-10-28users: replace FDA check with more fine grained permissions checkMichael Hoang
2024-10-27users: ensure all users' home directories in the config are correctMichael Hoang
2024-10-27users: move checks to `system.checks`Michael Hoang
2024-10-27users: allow `shell` to be managed by macOSMichael Hoang
2024-10-27users: change default shell to `/usr/bin/false` to match macOSMichael Hoang
2024-10-27users: allow `home` to be managed by macOSMichael Hoang
2024-10-27users: update properties on known usersMichael Hoang