1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 00:21:04 +01:00
Commit graph

886 commits

Author SHA1 Message Date
Damien Cassou
098e365dd8 borgmatic: add darwin-specific documentation to services.borgmatic.frequency 2025-05-15 15:16:49 -05:00
Damien Cassou
8ae36f8ea2 nix-gc: fix documentation 2025-05-15 15:16:49 -05:00
Rosario Pulella
c310818dca
mako: Fix missing dbus service file (#7065) 2025-05-15 13:28:43 -05:00
Damien Cassou
c09ccd7d39 services.borgmatic: add initial support for darwin 2025-05-15 13:07:13 -05:00
Damien Cassou
34d44d7f1b services.borgmatic: wrap systemd configuration within a isLinux condition 2025-05-15 13:07:13 -05:00
Damien Cassou
1c2fccef83 services.nix-gc: extract darwin agent interval code to new library file 2025-05-15 13:07:13 -05:00
Damien Cassou
3b930bb653 services.nix-gc: improve error message when nix.gc.frequency is invalid on darwin
Previously, if an invalid value was passed, the build would fail with:

       error: attribute '"00:02:03"' missing
       at /nix/store/sz92b5gqi0ma61d18fwbihi8p37mkvir-source/modules/services/nix-gc.nix:69:5:
           68|     in
           69|     freq.${frequency};
             |     ^
           70|

There was an assertion that should have prevented this from happening
but the crash would happen before the assertion gets a chance to stop
the build with a nice error message.

This commit both gives the assertion a chance to trigger and improves
the assertion's error message.
2025-05-15 13:07:13 -05:00
andre4ik3
02ea79853c
emacs: respect defaultEditor on Darwin (#7063)
Currently on Darwin, services.emacs.defaultEditor = true isn't respected, as the variable is only configured on Linux.

This PR simply moves the variable out to a common block, so it's applied on all platforms.
2025-05-14 22:27:36 -05:00
Austin Horstman
0be2c246e3 mako: deprecate criteria option
This commit adds proper deprecation warnings and documentation for the 'criteria' option, guiding users to use the more flexible 'settings' option with nested attributes instead.

- Added warning message when users use the deprecated option

- Updated documentation with examples showing the new approach
2025-05-13 09:41:11 -05:00
Austin Horstman
dc5899978f services/mako: refactor settings to support INI sections
This commit refactors the mako module to properly handle mako INI-style
configuration with sections:

1. Enhanced the `settings` option to support both global settings and
nested sections

2. Update custom INI generator that:
   - Properly formats global settings and sections
   - Adds appropriate newlines between sections

This change allows users to define both global settings and criteria
sections
in a single `settings` attribute, resulting in cleaner and more
intuitive configuration.
2025-05-13 09:41:11 -05:00
Maya the bee
13289f0642 services.autorandr: improve systemd unit description 2025-05-10 16:16:08 -05:00
Maya the bee
1875b5a160 services.autorandr: improve configurability
Add `matchEdid` and `extraOptions` for configuration.
2025-05-10 16:16:08 -05:00
Maya the bee
555f88ad34 services.autorandr: add package option 2025-05-10 16:16:08 -05:00
Maya the bee
4f44221724 services.autorandr: add lowlevl to maintainers 2025-05-10 16:16:08 -05:00
awwpotato
5da6eafceb
treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
Austin Horstman
f78a171fe4 mako: use toKebabCase for option transformation
Update mako module to pass lib.hm.strings.toKebabCase to the
mkSettingsRenamedOptionModules
function, which ensures option names are properly converted to
kebab-case format.
2025-05-07 10:02:56 -05:00
Austin Horstman
e121442b65 lib/strings: add toSnakeCase
Utility function for converting camelCase strings to snake_case
2025-05-07 10:02:56 -05:00
Aguirre Matteo
60964ff845
mako: fix example config (#6987) 2025-05-06 21:06:15 -05:00
Austin Horstman
5f1f472565
mako: use ini atom type (#6977)
Fix backwards compatibility
2025-05-04 21:44:38 -05:00
awwpotato
8167af657c
mako: fix criterias typo (#6968) 2025-05-04 09:17:09 -05:00
Aguirre Matteo
d1bbab6b04
mako: refactor (#6948)
Refactors the services.mako module to replace all its configuration options with a freeform settings option and criterias. I also added a test for the configuration.
2025-05-03 19:09:56 -05:00
Dawid Ciężarkiewicz
1e8c62c651 gpg-agent: avoid console output when using ssh
Without `--quiet` gpg-connect-agent sometimes prints

```
gpg-connect-agent: connection to the agent is in restricted mode
```
2025-05-02 18:56:14 +02:00
Jess
2eabb26d08
restic: allow the convenience script to source environmentFile (#6947) 2025-05-02 08:23:57 -05:00
Aguirre Matteo
f15be4feb6
clipcat: add module (#6946) 2025-05-02 08:22:35 -05:00
pancho horrillo
81431b6d6f
gpg-agent: fix typo (#6950)
See 46e634be05/pkgs/by-name/wa/wayprompt/package.nix (L60)
2025-05-01 15:11:25 -05:00
Jess
5f217e5a31 restic: change service type from simple to oneshot
Fixes #6930
2025-04-30 14:19:59 -05:00
Austin Horstman
a4c3ce44fc gpg-agent: pinentryPackage -> pinentry.package and add pinentry.program`
Alternative option for allowing a user to automatically configure what
binary to use from a `pinentry` package. Previously, we always used
`meta.mainProgram` but, there are packages that provide multiple
binaries and this would allow flexibility for a user to override the
default program used.
2025-04-29 20:36:45 -05:00
phanirithvij
29fce40e13 espanso: add crossplatform support
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2025-04-27 11:36:10 -05:00
phanirithvij
1d2f0b3d4b espanso: add phanirithvij as maintainer
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2025-04-27 11:36:10 -05:00
Johan Eklund
ce8dc1f77a
xsettingsd: Remove erroneous lib. insertion (#6877) 2025-04-22 07:34:49 -05:00
Austin Horstman
81541ea36d
lorri: fix missing makeSearchPath (#6875) 2025-04-21 14:55:32 -07:00
Austin Horstman
82ee14ff60
treewide: remove with lib (#6871)
Remove from services.
2025-04-21 11:00:59 -05:00
Rouven Seifert
b0cc092405
shikane: init module (#4096) 2025-04-20 20:21:46 -05:00
Jess
f98314bb06
restic: init module (#6729) 2025-04-19 22:53:06 -07:00
S1rDev10us
b35bccc32d
home-manager-auto-expire: fix spelling error (#6829) 2025-04-16 13:41:23 -05:00
LesVu
d8263c0b84
labwc: Add module for Labwc (#6807)
Add a module for labwc compositor.
Add myself as labwc module maintainer
2025-04-16 11:15:07 -05:00
Johan Larsson
db56335ca8
way-displays: fix failing use of lib.mkDefault (#6809)
The resulting YAML file is mangled by the use of `lib.mkDefault`,
causing the service to fail. But we can safely remove it anyway due to
the use of `mergeSets` here.
2025-04-12 17:57:05 -05:00
Johan Larsson
f0c69ede70
way-displays: init module (#6791) 2025-04-11 08:15:26 -05:00
Amadej Kastelic
e15c4203ea
hyprland: plugins use hyprctl from path (#6801) 2025-04-11 07:59:55 -05:00
Austin Horstman
f1ffd097e7 hyprsunset: support multiple commands to IPC 2025-04-10 20:55:24 -07:00
Austin Horstman
cf6314f8e1 hyprsunset: init 2025-04-10 20:55:24 -07:00
Sorki
543caa313a
xmonad: fix binary name lookup on armv7l when cross-compiled (#6795) 2025-04-10 15:28:09 -05:00
Amadej Kastelic
7946193670
hyprland: load plugins using exec-once (#6789)
Should eliminate crashes / plugin version mismatches when updating hyprland.
2025-04-09 13:38:08 -05:00
Austin Horstman
cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00
Alex Epelde
80ae77eed3
kdeconnect: trigger indicator service after generic tray.target (#6711)
Each of `polybar.service`, `stalonetray.service` and `taffybar.service`
contains `WantedBy=tray.target`. So we can use a single `tray.target` in
`kdeconnect-indicator.service`'s `After=`.

This also makes the applet service tray implementation agnostic, so long
as it integrates with `tray.target`.
2025-04-08 09:51:20 -05:00
Austin Horstman
320e152d0b wlsunset: systemdTarget used for all targets 2025-04-06 21:06:22 -07:00
Austin Horstman
a90ab0ab5f wlsunset: systemdTarget default to wayland.systemd target 2025-04-06 21:06:22 -07:00
Austin Horstman
8871d0b1ef cliphist: systemdTargets default to wayland.systemd target 2025-04-06 21:06:22 -07:00
Austin Horstman
8c9b54504c
swaync: use x-restart-triggers for reload (#6764)
Use x-restart-triggers to reload on file change, since users
with impermanence setups were running into issues with onChange and calling the `swaync-client` to handle the hot reload.
2025-04-06 20:36:01 -05:00
Evyatar Stalinsky
46f93825af redshift/gammastep: fix tray.target dependency
Fix a missing dependency for `tray.target` in `redshift/gammastep` module when the tray feature is enabled.

This caused a race condition that could result in the redshift/gammastep systemd user unit failing because the tray provider (e.g. waybar) isn't ready yet.
2025-04-05 06:36:25 -07:00