about summary refs log tree commit diff
path: root/nixos/modules/programs
AgeCommit message (Collapse)AuthorFilesLines
2023-10-21nixos/firefox: Fix package referencesIvan Jager1-5/+5
https://github.com/NixOS/nixpkgs/pull/262017 removed `with pkgs;` so setting `programs.firefox.enable = true` resulted in evaluation errors like `error: undefined variable 'ff2mpv'` This still doesn't fix https://github.com/NixOS/nixpkgs/issues/262600
2023-10-21Merge pull request #262017 from K900/firefox-preserve-old-argsK9001-14/+11
nixos/firefox: preserve old wrapper args when overriding
2023-10-20nixos: fix bad mkEnableOption descriptionsBjørn Forsman6-7/+7
Fix descriptions that don't account for (1) the "Whether to enable" prefix or (2) the automatically added trailing dot.
2023-10-19nixos/firefox: preserve old wrapper args when overridingK9001-14/+11
Also some drive-by cleanups
2023-10-19fish: use the subcommand style for the status commandr-vdp1-2/+2
The flag style has been deprecated and will eventually be removed.
2023-10-18nixos/virt-manager: initthe-furry-hubofeverything1-0/+16
2023-10-18nixos/regreet: make `cage(1)` args configurableMaximilian Bosch1-1/+14
In my case I'd like to be able to add `-m last` to `cage` to make sure that the login form from regreet isn't displayed half on my external monitor and half on my laptop screen, but on the last connected monitor only. That's basically the issue described in #226586, though it's not a proper fix since the login form is shown on one monitor only.
2023-10-15Merge pull request #259075 from ↵Artturi1-1/+2
schuelermine/patch/nixos/modules/nano/syntaxHighlight
2023-10-13Merge pull request #242371 from jfly/add-openvpn3-systemd-resolved-supportJanik1-4/+16
2023-10-13nixos/openvpn3: Add support for systemd-resolvedJeremy Fleischman1-4/+16
I noticed that openvpn3 is been clobbering my `/etc/resolv.conf` file. I dug around a bit, and it turns out that upstream actually does have support for systemd-resolved. I think it makes sense for us to automatically enable that feature if the system is configured to use systemd-resolved. I opted to not change the default behavior of `pkgs.openvpn3`, but can easily be convinced to change that if folks think I should.
2023-10-12nixos/module: add `projecteur`Pol Dellaiera1-0/+20
2023-10-12Merge pull request #260618 from Aleksanaa/nixos/bandwhichfigsoda1-1/+1
nixos/bandwhich: add missing capabilities
2023-10-12nixos/bandwhich: add missing capabilitiesaleksana1-1/+1
2023-10-09Merge pull request #259066 from thiagokokada/add-renice-swayThiago Kenji Okada1-0/+13
nixos/sway: add enableRealtime option
2023-10-09Merge pull request #258347 from Benjamin-L/gnupg-agent-extraconfigMichele Guerini Rocco1-4/+23
nixos/gnupg: add agent.settings option
2023-10-05nixos/gnupg: add agent.settings optionBenjamin Lee1-4/+23
2023-10-05nixos/sway: add enableRealtime optionThiago Kenji Okada1-0/+13
This option wraps the `sway` binary to allow it to request realtime scheduling (SCHED_RR). This allow for possible lower latency, specially when the system is under high load. Available since Sway 1.8. See: - https://github.com/swaywm/sway/pull/6994 - https://github.com/swaywm/sway/releases/tag/1.8
2023-10-05nixos/nano: enable syntaxHighlight by defaultAnselm Schüler1-1/+1
2023-10-05nixos/nano: include extra syntax highlight files when syntaxHighlight is trueAnselm Schüler1-0/+1
2023-10-04Merge pull request #256407 from Ma27/motd-orderingMaximilian Bosch1-4/+61
nixos/rust-motd: allow ordering sections
2023-10-04Merge pull request #248627 from edef1c/gpg-agent-socketsedef1-1/+1
2023-10-02nixos/environment: move XDG_CONFIG_DIRS to sessionVariablesAlyssa Ross1-1/+5
Otherwise, in non-interactive contexts (e.g. systemd units), this entry (the default) won't be in the list. Only the profile relative ones would be, since they were already using session variables. This is clearly not the correct behavior.
2023-10-02Merge pull request #257719 from CardboardTurkey/regreet-fix-groupRyan Lahfa1-3/+3
2023-10-01treewide: use `pkgs.config` instead of `config.nixpkgs.config`K9001-1/+1
`pkgs` may be passed in externally, in which case `config.nixpkgs.config` will not be set. Follow-up to #257458.
2023-10-01Merge pull request #257458 from K900/die-nixpkgs-config-dieK9002-9/+21
treewide: fail when `nixpkgs.config` is set with explicit `pkgs`, remove all `nixpkgs.config` usages in in-tree modules
2023-09-29nixos/rust-motd: refactor assertion and TOML generationMaximilian Bosch1-25/+13
* `sort (<)` also works for strings (TIL!), so no need for comparing length and whether all keys from `cfg.settings` exist in `cfg.order` (slightly less overhead). * Don't build another piece of JSON (`orderedSections`), simply use `cfg.settings`/`cfg.order` with `__structuredAttrs` to ensure a properly ordered TOML. This also has the upside of not having to do quote hackery. * Also, a freeform submodule isn't strictly needed because we don't have any special options defined, so replacing that with `attrsOf format.type`. Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-09-29nixos/nano: add enable, package option, do not create /etc/nanorc by defaultSandro Jäckel1-19/+15
and remove nano from environment.defaultPackages. In addition also cleanup the file in general. This is a follow up to #220481 Co-authored-by: pennae <82953136+pennae@users.noreply.github.com>
2023-09-27regreet: fix user group in tmpfiles rulesKiran Ostrolenk1-3/+3
Prior to this commit the derivation assumed a user's primary group has the same name as the user themselves. This is standard on linux but not necessary (and indeed I believe not the default on NixOS). Closes #232184
2023-09-26nixos/rust-motd: use a second attribute (`order`) for the of sections in TOMLMaximilian Bosch1-29/+44
Rather than using `priority` with `sortProperties`, a new option called `order` defines the ordering of the sections. I.e. order = [ "global" "uptime" "banner" ] means that `uptime` comes before `banner`. Please note that `global` is for global settings and not a section. I figured that it'd be too much magic to hide this in the implementation and ask the user to specify the order of _each_ section in `settings` instead. OTOH this makes the intent way clearer than priorities. Also, this remains opt-in, the option defaults to `attrNames cfg.settings`, i.e. all sections ordered alphabetically.
2023-09-26nixos/firefox: remove `nixpkgs.config` usageK9002-9/+21
2023-09-23Merge pull request #176886 from hyperfekt/nonderivation_fish-completionArtturi1-10/+7
2023-09-21nixos/rust-motd: .attrs.json -> "$NIX_ATTRS_JSON_FILE"Maximilian Bosch1-1/+1
That way the derivation can also be built in a `nix-shell` where `.attrs.json` isn't under "$NIX_BUILD_TOP".
2023-09-21nixos/rust-motd: allow ordering sections by `priority`Maximilian Bosch1-3/+56
Closes #234802 The problem here is that with e.g. { uptime.prefix = "Up"; banner.command = "hostname | figlet -f slant"; } `banner` still appears before `uptime` in the final motd text because Nix sorts attribute names alphabetically internally. To work around this without breaking compatibility or losing the property to override individual sections in other modules - e.g. { banner.color = mkForce "blue"; } I decided to introduce an option `priority` here, similar to the priority field for `nginx`[1] and with the same semantics (i.e. higher value means lower priority). Internally a bunch of env vars are generated, i.e. `env0` to `envN` for `N` sections with each of them containing a declaration for the TOML, i.e. `env0` contains `{ uptime.prefix = "Up"; }` and `env1` contains `{ banner.command = "hostname | figlet -f slant"; }` if `uptime.priority` is set to a value below 1000. In this order, the declarations are concatenated together by `jq(1)` which doesn't sort keys alphabetically which results in a JSON representation with `uptime` before `banner`. This is finally piped to `json2toml` which converts this into TOML for rust-motd. [1] https://nixos.org/manual/nixos/unstable/options#opt-services.nginx.virtualHosts._name_.locations._name_.priority
2023-09-20nixos/rust-motd: run once on bootupMaximilian Bosch1-0/+1
That way e.g. the last login and uptime isn't completely bogus when accessing a machine for the first time after a reboot.
2023-09-19Merge pull request #254833 from NickCao/qt4-leftoverNick Cao1-2/+0
nixos/environment: drop QT_PLUGIN_PATH for qt4 and kde4 as they has b…
2023-09-15nixos/environment: drop MOZ_PLUGIN_PATHNick Cao1-1/+0
There are currently no references to MOZ_PLUGIN_PATH treewide in gecko[1]. And the support for this environment variable was dropped in 2019[2]. See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1602308 [1] https://github.com/search?q=repo%3Amozilla%2Fgecko-dev+MOZ_PLUGIN_PATH&type=code [2] https://hg.mozilla.org/mozilla-central/rev/9b4e603eb86a
2023-09-14nixos/yubikey-touch-detector: init (#254947)tomf1-0/+21
* nixos/yubikey-touch-detector: init * nixos/yubikey-touch-detector: enable user socket
2023-09-14nixos/hyprland: update portal overrideMihai Fufezan1-3/+1
2023-09-13nixos/environment: drop KDEDIRS as a leftover from KDE4Nick Cao1-1/+0
2023-09-13Merge pull request #254941 from foo-dogsquared/update-clash-verge-docsNick Cao1-11/+3
nixos/clash-verge: fix module descriptions
2023-09-13nixos/clash-verge: fix module descriptionsGabriel Arazas1-11/+3
2023-09-13nixos/yazi: add to module-list.nixlinsui1-1/+5
2023-09-12nixos/environment: drop QT_PLUGIN_PATH for qt4 and kde4 as they has been removedNick Cao1-1/+0
2023-09-12Merge pull request #254296 from Gerg-L/direnvFabián Heredia Montiel1-14/+4
nixos/direnv: remove persistDerivations
2023-09-12nixos/bash: Drop workarounds for etermnicoo1-1/+1
2023-09-09nixos/direnv: remove persistDerivationsGerg-L1-14/+4
2023-09-07Merge pull request #253071 from linsui/yaziWeijia Wang1-0/+49
nixos/yazi: init
2023-09-07Merge pull request #247618 from Majiir/streamdeck-ui-3.0.1Weijia Wang1-1/+1
streamdeck-ui: 2.0.6 -> 3.0.1
2023-09-06streamdeck-ui: split desktop itemsMajiir Paktu1-1/+1
2023-09-05Add `programs.ecryptfs` for mount wrappers.Niklas Hambüchen1-0/+31
The `ecryptfs` package refers to the setuid wrapper paths, but they do not exist so far in NixOS.