Commit Graph

1143 Commits

Author SHA1 Message Date
mikaeladev
f899c5d6f3 pipewire: add module 2026-04-11 11:21:32 +02:00
philip-730
a91f37efba services.darkman: add unified scripts option
Add a `scripts` option that places scripts in `$XDG_DATA_HOME/darkman/`,
darkman's unified script interface. The legacy `darkModeScripts` and
`lightModeScripts` options remain supported.

Closes #8940
2026-04-09 19:09:27 -05:00
jtrrll
505e91f877 glance: add darwin support 2026-04-09 18:13:04 -05:00
Austin Horstman
de90ee2408 statix: enable eta_reduction
Enable statix's eta_reduction rule and apply its auto-fixes across the affected modules.
2026-04-08 16:00:28 -05:00
Austin Horstman
74b0e97937 statix: enable empty_pattern
Enable statix's empty_pattern rule and apply its auto-fixes across the affected modules and tests.
2026-04-08 16:00:28 -05:00
Austin Horstman
5209a256fd statix: enable empty_list_concat
Enable statix's empty_list_concat rule and apply its auto-fixes across the affected modules.
2026-04-08 16:00:28 -05:00
Austin Horstman
74d8d47034 statix: enable collapsible_let_in
Enable statix's collapsible_let_in rule and apply its auto-fixes in the podman linux modules.

This keeps the ratchet focused on one auto-fixable warning at a time.
2026-04-08 15:28:35 -05:00
Austin Horstman
01ea51d706 treewide: use inherit for attribute assignments
This change converts redundant attribute assignments of the form `a =
a;` or `a = someSet.a;` into cleaner `inherit` statements. This reduces
verbosity and follows common Nix style for bringing attributes into
scope.

Statix Codes: W03 (manual_inherit), W04 (manual_inherit_from)

Also include statix and the rule in our configuration.
2026-04-08 14:47:48 -05:00
Adam Dinwoodie
4bdfeff1d9 syncthing: set systemd start limits
Add StartLimitIntervalSec and StartLimitBurst configuration to the
Syncthing systemd unit.  This prevents Syncthing restarting indefinitely
if it hits a bug such as NixOS/nixpkgs#502836.

The values here are taken from the values provided in the upstream
Syncthing example systemd unit[0].

[0]: 1a3cbca017/etc/linux-systemd/user/syncthing.service
2026-04-07 12:00:24 +02:00
Robert Helgesson
5de7dbd151 restic: escape environment variables
This allows better handling of, e.g., file names with spaces.
2026-04-06 08:39:40 +02:00
Benedikt Rips
8ec54491cd sshAuthSock: fix naming scheme 2026-04-04 22:28:41 -05:00
nescias
e78a997d2e restic: allow setting password command
Includes asserting that either password file or password command
should be set.
2026-04-04 22:27:18 -05:00
Yiheng He
5ee3b3ef63 awww: remove blank space after awww-daemon when extraArgs is empty
awww: split graphical-session-target test into awww-default and awww-extraArgs
2026-04-04 11:33:34 -05:00
Yiheng He
5b6f55b784 awww: run daemon dependent on program mainProgram name 2026-04-04 11:33:34 -05:00
Benedikt Rips
a61b22e323 ssh_auth_sock: init module
`$SSH_AUTH_SOCK` must not be set unconditionally through
'home.sessionVariables' since its value needs to be preserved if it
stems from a forwarded SSH agent. Hence, this commit establishes a
centralized, internal 'ssh_auth_sock.initialization' option for setting
`$SSH_AUTH_SOCK`. It checks whether its value has to be preserved and
injects the initialization code into the proper
'programs.(bash|fish|nushell|zsh).*' options.
2026-04-03 21:15:34 -05:00
Yiheng He
03bdcf84f0 awww: rename swww to awww
Upstream project name has changed
2026-04-03 15:21:14 -05:00
Matthieu Coudron
1ce9e62690 mpd: expose generated config (#8968)
The systemd service links a generated config, but some users may like
to have it in ~/.config/mpd instead.
This PR helps working around that limitation allowing users to run:

  configFile."mpd/mpd.conf".text = config.services.mpd.generatedConfig;

this way one can skip systemd altogether and test mpd more easily in CLI.
2026-04-01 14:39:19 +02:00
Ihar Hrachyshka
5ed75a0312 services/ssh-agent: treat SIGTERM exit as clean
OpenSSH ssh-agent exits with status 2 when systemd stops it in
non-socket-activated mode.

Home Manager runs ssh-agent that way, so normal user-manager
shutdowns show up as unit failures.

Set SuccessExitStatus=2 for the Linux user service to match
upstream behavior. Startup failures and other unexpected exits
still fail the unit.
2026-03-30 12:14:23 +01:00
oneorseveralcats
557f5e38ce swayidle: allow multiple systemd targets 2026-03-28 17:32:51 +01:00
Matthias Ahouansou
3aeefa9db2 mpdris2-rs: add module 2026-03-26 16:34:36 -05:00
David Sánchez
86014e836c tldr-update: darwin support 2026-03-26 14:10:44 +00:00
Fae
f0e123a7e2 clipman: Add extraArgs option to clipman service 2026-03-17 23:50:17 -05:00
luo jiyin
7d06e0cefe treewide: fix spelling errors 2026-03-11 22:32:16 -05:00
Vinicius Deolindo
daa2c22132 colima: only pass --save-config=false if settings were set 2026-03-06 14:28:38 +00:00
Karun Sandhu
2b9504d5a0 hyprland: allow closing submaps on dispatch
This adds an 'onDispatch' option to the 'submaps' attribute set,
enabling the 'submap = name, ondispatch' syntax which allows submaps to
be closed automatically after a dispatch.
2026-03-02 23:43:40 -06:00
Vinicius Deolindo
f140aa04d7 colima: add kubectl to the service's $PATH 2026-03-01 09:54:21 -06:00
Utkarsh Gupta
920c07c691 colim|docker-cli: switch to xdg by default in 26.05 2026-02-26 21:34:24 -06:00
Utkarsh Gupta
221046764c colima: set $DOCKER_HOST for default context in 26.05 2026-02-26 21:34:24 -06:00
Utkarsh Gupta
91920e955f colima: add homeDir & respect XDG 2026-02-26 21:34:24 -06:00
octvs
31ea32fa14 i3-sway: allow inverse_outer on smart_gaps
Change the boolean `smartGaps` option to an `enum` that expects common
values of i3 and sway ("on" "off" "inverse_outer").
2026-02-26 21:07:13 -06:00
Peter Kling
e9b706bef7 syncthing: activate logging for macOS agents 2026-02-13 14:05:36 -06:00
Peter Kling
cadfe449aa syncthing: more reliable syncthing launchd agent
Starts the syncthing-init launchd agent (responsible for updating the configuration) as a oneshot agent instead of via WatchPaths (the latter is too unreliable).

Ideally, the syncthing-init agent should be started after the syncthing agent started the Syncthing server, since syncthing-init updates the configuration using API calls to the Syncthing server. The Linux systemd service versions handle this via the Requires and After attribute. Launchd under macOS is missing a reliable way to order agents. Theoretically, one can achieve similar things via, e.g., WatchPaths (used before this commit). But this is known to be very unreliable (see also my comment in issue #6542). Thus, we just start syncthing-init and rely on the wrapped curl bash function (see curlShellFunction in nix file) to wait for the Syncthing server to be up and running.
2026-02-13 14:05:36 -06:00
Austin Horstman
54ab8bc155 maintainers: remove offline
Removed upstream https://github.com/NixOS/nixpkgs/pull/483520

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-13 13:26:06 -06:00
Austin Horstman
2363f5a377 flameshot: add darwin support
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-12 11:04:03 -06:00
Adam Poit
b3f43db171 colima: fix KeepAlive to prevent process accumulation on macOS
Change KeepAlive from boolean true to SuccessfulExit dictionary in the LaunchAgent configuration.
When colima fails to start (e.g., disk already attached), the boolean true setting causes
launchd to immediately restart it, spawning orphaned limactl usernet processes with each
restart.

Using SuccessfulExit = true ensures the service only restarts on clean exits (exit code 0),
preventing the aggressive restart loop that accumulates orphaned processes.
2026-02-10 21:19:55 -06:00
Austin Horstman
cbd8a72e5f treewide: remove xorg package set
Xorg package set removed, now aliases.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-07 13:10:27 -06:00
Johan Larsson
4fda26500b tomat: modify After, PartOf, Environment in service
This allows the tomat service to properly execute hooks, which is a
feature that requires a modifying the PATH and ensuring that the service
is started after the graphical session.
2026-02-03 18:17:40 -06:00
Thierry Delafontaine
85e3ee7e59 service.proton-pass-agent: init module 2026-01-26 09:44:48 -06:00
Aguirre Matteo
7213f7ee3e hyprlauncher: fix start every ten seconds 2026-01-26 09:42:51 -06:00
Aerden
d055b309a6 mpdscribble: fix journal file location
It should be in the user's home directory instead of /var/lib
2026-01-22 19:45:34 -06:00
Jess
83eeebd967 restic: fix evaluation error in rcloneOptions
`lib.add` only works on integers.
2026-01-18 23:01:16 -06:00
ckgxrg
05fd3babab linux-wallpaperengine: add examples and clarify options usage 2026-01-17 20:25:15 -06:00
Yiheng He
8fd20c8d48 wlsunset: add package to home.packages 2026-01-17 20:24:14 -06:00
Bruno Bigras
a0a505f803 treewide: XDG_CONFIG_HOME/.config -> XDG_CONFIG_HOME
$XDG_CONFIG_HOME already contains the .config subdir
2026-01-14 14:27:34 +01:00
Austin Horstman
4e235a8746 treewide: nix fmt
nix fmt updated in nixpkgs with string handling changes

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-13 22:51:16 -06:00
Austin Horstman
0150937c66 maintainers: remove duplicate hey2022
Added to nixpkgs

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-13 22:51:16 -06:00
teto
8bc5473b6b maintainers: remove duplicated aionescu
already exists in nixpkgs
2026-01-10 19:06:42 +01:00
Thierry Delafontaine
f4bcc1ae1c podman: add darwin support with machine management
- restructure module from `podman-linux` to platform-agnostic `podman`
- move linux-specific implementation to `modules/services/podman/linux/`
- add darwin module with declarative machine management
- implement launchd-based watchdog for auto-starting machines
- maintains backward compatibility with existing linux functionality
2026-01-09 09:15:55 -05:00
Lena Fuhrimann
cd6e96d56e hyprland: import XDG_SESSION_TYPE for systemd 2026-01-08 16:53:03 -05:00
Austin Horstman
fa6de26b4d treewide: nixf-diagnose cleanup
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-01-08 16:30:04 -05:00