summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2024-09-13Merge pull request #1075 from emilazy/push-oszxxzpyppzmEmily
version: make `system.stateVersion` mandatory
2024-09-12Merge pull request #1072 from antoineco/zsh/no-nix-shell-checkEmily
Remove nix-shell early return in /etc/{zshenv,bashrc}
2024-09-12{bash,zsh}: remove nix-shell early return in /etc/{bashrc,zshenv}Antoine Cotten
The condition does not match the comment, and therefore not the original intention. It currently returns early in *any* type of Nix shell, not just pure ones, including 'nix develop'. Besides being unnecessary, this check prevents Nix shells from functioning properly. For instance, it causes the initialization of the Zsh fpath to be skipped, which is critical. The fact that the user is unable to opt out of this behaviour makes this an ever bigger problem since /etc/zshenv is being loaded unconditionally by Zsh. For reference, NixOS does not perform such check, and apparently never did.
2024-09-12version: make `system.stateVersion` mandatoryEmily
When testing the Sequoia UID change, I discovered that @mjm didn’t have `system.stateVersion` set; I suspect this is not too uncommon. Let’s make it required now, like NixOS is trying to, to improve our backwards‐compatibility story in anticipation of starting to cut release branches.
2024-09-12Merge pull request #1067 from antoineco/module/nixpkgs-flakeEmily
Put nixpkgs in NIX_PATH and system registry for flake configs
2024-09-11zsh: don't be noisy when scripts are run with -uSebastian Reuße
When a script specifies the shell option "nounset" as part of the shebang (e.g., via "#!/usr/bin/env -S zsh -u"), our initialization scripts would produce error messages of the form: __ETC_FOO_SOURCED: parameter not set These messages could probably be confusing to users when running such scripts. By providing a fall-back in the parameter expansion, we can avoid them. This patch does not address interactive shell start-up, where such messages may (or may not) be less problematic. NixOS/nixpkgs@7d84dbdf5b91439f798363559310d86b21bfa86c
2024-09-11zsh: let children shells set their fpathJörg Thalheim
Currently zshenv by default only sets fpath without exporting it. A parent shell would also not set those variables usually as they are shell local. It also sources a file called set-environment but this is protected by an environment variable called __NIX_DARWIN_SET_ENVIRONMENT_DONE. Hence any modification done by the parent shell should persist as long as __NIX_DARWIN_SET_ENVIRONMENT_DONE is not unset. This behavior deviates from what we do in bashrc and breaks common setups such as tmux/mosh or screen. NixOS/nixpkgs@55819e6c861f53450030eea832a76583a6786370
2024-09-11flake: put nixpkgs in NIX_PATH and system registry for flake configsJade Lovelace
Currently there are a bunch of really wacky hacks required to get nixpkgs path correctly set up under flake configs such that `nix run nixpkgs#hello` and `nix run -f '<nixpkgs>' hello` hit the nixpkgs that the system was built with. In particular you have to use specialArgs or an anonymous module, and everyone has to include this hack in their own configs. We can do this for users automatically. NixOS/nixpkgs@e456032addae76701eb17e6c03fc515fd78ad74f Co-authored-by: Antoine Cotten <hello@acotten.com>
2024-09-11{ids,checks}: update for new builder UID/GID valuesEmily
2024-09-11checks: make `oldBuildUsers` check fail hardEmily
Checking for the Sequoia stuff won’t work properly if a system is still in this old state. Best to be loud about it to deal with any straggler systems that haven’t yet dealt with this issue.
2024-09-11checks: factor out `nix.useDaemon` checkEmily
2024-09-10zsh: prefer Nix completions these from Zsh packageSebastian Reuße
Zsh ships some rudimentary completions for programs where upstream also ships their own completions (e.g., curl). So as not to shadow those completions, we need to prepend to the fpath instead of appending. NixOS/nixpkgs@8dad5a22399782a4ef681174219546cb050e580f
2024-09-10zsh: move fpath init from /etc/zshrc to /etc/zshenvJan Malakhovski
We want these to be set even when /etc/zshrc loading is disabled. NixOS/nixpkgs@f70e3f3738300ef1e94737c09364cd176893858f
2024-09-10checks.nix: fix typonatsukium
2024-09-06nixos/github-runner: quote comma separators so as to pass shellcheckSirio Balmelli
Shellcheck complains: > args=( > ^-- SC2054 (warning): Use spaces, not commas, to separate array elements. Quote the --labels argument to resolve. Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2024-09-05users: allow arbitrary group IDsEmily
The upstream Nix UID/GID changes for Sequoia will require us to manage a group with GID 350. That will require more work on our end to ensure compatibility and a working migration path, but this is enough to allow hacking around it locally in system configurations for now.
2024-09-05linux-builder: make `package.nixosConfig` accurateMichael Hoang
2024-09-01Merge pull request #1051 from booxter/suppress-gpg-connect-agent-stderrMichael Hoang
gpg: Suppress stderr from gpg-connect-agent on shell init
2024-08-29gpg: Suppress stderr from gpg-connect-agent on shell initIhar Hrachyshka
In some scenarios, the command may fail, e.g. when the shell is executed with a different $HOME from where gpg agent is configured to run from. (E.g. this happens in kitty terminal test suite.) This patch will suppress stderr errors on tty in this situation. Note that zsh does not allow to suppress execution of /etc/zshenv on startup, so it's impossible to skip it in the test suite environment. An alternative would be to set IN_NIX_SHELL in the test suite, but this was rejected in upstream: https://github.com/kovidgoyal/kitty/pull/7800 There's also a kitty package specific fix posted here but this may be unnecessary once nix-darwin is patched here: https://github.com/NixOS/nixpkgs/pull/338070 Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2024-08-29Add sha256 for DeterminateSystems Nix installer 0.22.0Corey Jewett
2024-08-25Merge pull request #1044 from Enzime/add/known-hashMichael Hoang
etc: add known hash for DetSys installer 0.20.0+
2024-08-25etc: add known hash for DetSys installer 0.20.0+Michael Hoang
2024-08-21feat: system.disableInstallerToolsisabel
2024-08-17Merge pull request #1026 from thecaralice/nochanMichael Hoang
Allow disabling channels
2024-08-17fix: respect user nixPath configurationAlice Carroll
2024-08-17feat: allow disabling channelsAlice Carroll
2024-08-17refactor: rename environment.postBuild to environment.extraSetupAlice Carroll
2024-08-05(feature) Add swapLeftCtrlAndFnMaxime Daffis
Use this and never find yourself again hitting fn because of muscle memory! (you can even physically swap the keycaps, at least on M series) Keycodes have been pulled from https://hidutil-generator.netlify.app/ and the hex value has been converted to a base 10 int.
2024-08-02(feature) Add Stage Manager (com.apple.WindowManager) settings as ↵Maxime Daffis
system.defaults.windowmanager All credits go to @AlexOwl. Their [PR](https://github.com/LnL7/nix-darwin/pull/505) looked abandonned so I reported their changes and addressed the change requests.
2024-07-31programs.ssh: add certificate authoritiesJörg Thalheim
2024-07-31Merge pull request #1018 from Enzime/fix/github-runners-work-dirEmily
github-runners: move `workDir` outside of `/run`
2024-07-27Merge pull request #1012 from Enzime/fix/dock-not-runningEmily
defaults: only restart Dock when user is logged in
2024-07-27`mapAttrsFlatten` -> `mapAttrsToList`zowoq
deprecated in https://github.com/NixOS/nixpkgs/commit/473e469d5a921a57b484a09d446cee6c231cd592
2024-07-27github-runners: move `workDir` outside of `/run`Michael Hoang
As `/run` gets recreated every reboot and we can't specify dependencies for launchd, creating the `workDir` every reboot will require extra complexity with a separate daemon that runs as `root` otherwise it won't have sufficient privileges. As we clean the `workDir` when the service first starts anyway, it ends up being the same.
2024-07-27activation-scripts: add extra commentMichael Hoang
2024-07-27Revert "github-runnners: fix workDir missing on reboot"Michael Hoang
This reverts commit fe99aa9699e7dd4ce6a81a8a623d010cedbe7eef.
2024-07-25defaults: only restart Dock when user is logged inMichael Hoang
2024-07-24Add inline prediction option mirroring the capitalization option347Online | Katie Janzen
2024-07-23github-runnners: fix workDir missing on rebootMichael Hoang
2024-07-22chore: removing deprecations for 25.05 nixNikola Milojević
2024-07-21Merge pull request #973 from amsynist/modules/services/jankybordersEmily
module : `jankyborders` for window borders Configuration
2024-07-21module: add jankyborders servicePrav!n
- Added the jankyborders service. - Introduced changes for whitelist and blacklist options and assertions. - emoved path reference from launchd argument. - Corrected missing trailing newline in default.nix.
2024-07-18Merge pull request #999 from Enzime/restart-dockMichael Hoang
defaults: restart Dock when changing settings
2024-07-16defaults: restart Dock when changing settingsMichael Hoang
2024-07-16Merge pull request #997 from thanegill/patch-3Michael Hoang
Add `User` and already generated `IdentityFile` to ssh_config for `nix.linux-builder`
2024-07-12Update modules/nix/linux-builder.nixThane Gill
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-07-10Merge pull request #976 from emilazy/openssh-use-links-for-authorized-keysEmily
ssh: use symlinks for `authorizedKeys` options
2024-07-09Add `User` and already generated `IdentityFile` to ssh_config for ↵Thane Gill
`nix.linux-builder`
2024-07-08nextdns: fix argument handlingHenrique Goncalves
2024-07-06Add lix-installer to known filesIan Chamberlain