1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00
Commit graph

264 commits

Author SHA1 Message Date
Robert Helgesson
7a3f0b3b8d
tests: rework derivation stubbing
Instead of having to manually stub packages that should not be
downloaded we instead automatically stub all packages (except a small
list of whitelisted ones). Tests can re-introduce the real package by
using the `realPkgs` module argument.
2025-02-04 23:58:20 +01:00
Austin Horstman
801ddd8693 hyprland: use package stubs
Reducing closure size for tests.
2025-01-31 20:47:14 -06:00
Austin Horstman
9afd022013 wayfire-stubs: add stubs for wayfire tests
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
c4f28f282f spectrwm-stubs: add stubs for spectrwm tests
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
e17bdf3191 herbstluftwm-stubs: add stubs for herbstluftwm tests
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
c4f4b1e2fa bspwm-stubs: add stubs for bspwm tests
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
02dc2e827f river-stubs: add stubs for river tests
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
e0a2df3193 i3-stubs: add more stubs
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
644552519e sway-stubs: add more stubs
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00
Austin Horstman
86b0f3049c hyprland: add null package tests 2025-01-30 15:41:13 -06:00
ckgxrg
d963ed335b
linux-wallpaperengine: add module
linux-wallpaperengine is an implementation of Wallpaper Engine on
Linux, this module allows it to be declaractively configured.
2025-01-30 10:22:43 +01:00
Austin Horstman
c4650fb9c0
cliphist: support multiple systemdTargets properly (#5669)
Using a space separated list of targets as a single string element in
the list doesn't work properly. Change property to support list of
targets and backwards compatibility with warning for single string.
2025-01-29 12:26:13 -06:00
Ivan Kovnatsky
daf04c5950
ollama: add darwin support 2025-01-25 00:54:49 +01:00
Terje Larsen
2532b500c3
ollama: add module (#5735) 2025-01-10 12:31:03 +01:00
1444
456e599f91
wayfire: add module (#6066)
Adds a Module for the Wayfire Compositor. Also allows managing the wf-shell configuration.
2025-01-08 16:18:57 +01:00
Thiago Kenji Okada
14cb0c8cfa
fnott: use config.wayland.systemd.target
Also add missing `ConditionEnvironment`.
2025-01-03 17:38:06 +01:00
Thiago Kenji Okada
656ae5aba2
clipman: use config.wayland.systemd.target
Also add `ConditionEnvironment`.
2025-01-03 17:38:06 +01:00
Thiago Kenji Okada
4cbc8a58ab
swaync: use config.wayland.systemd.target 2025-01-03 17:38:05 +01:00
Thiago Kenji Okada
89fe48b1c1
swayidle: use config.wayland.systemd.target
Also add `Unit.After`.
2025-01-03 17:37:16 +01:00
Marcin Serwin
10e99c43cd
copyq: add option to disable XWayland 2024-12-28 11:16:56 +01:00
Matthieu Coudron
3066cc58f5
kanshi: dont write config in absence of nix settings (#6198) 2024-12-12 23:48:46 +01:00
Linus Heckemann
65912bc684
imapnotify: provide an option for setting PATH
Including some useful presetting for notmuch and mbsync.
2024-12-05 10:08:50 +01:00
Gaétan Lepage
873e39d5f4
podman-container: fix tests and failing podman 5.3.0 service
Co-authored-by: Dylan Wilson <dylan@bytepen.com>
2024-12-02 11:05:28 +01:00
Jordan Williams
a9953635d7
mopidy: restart service on config changes
Also extend basic configuration test a bit to verify the restart
trigger.
2024-11-24 22:04:15 +01:00
Tomodachi94
98bf8de65d
volnoti: use cfg.package instead of pkgs 2024-11-24 19:06:58 +01:00
Sebastián Zavala Villagómez
5e2f47c5a5
hypridle: fix service when no config file
The systemd user service depends on

  config.xdg.configFile."hypr/hypridle.conf".source

for `X-Restart-Triggers`. When `cfg.settings` is the default `{}`,
this causes failure since

  config.xdg.configFile."hypr/hypridle.conf".source

will not exist.

Making the addition conditional on `cfg.settings` actually having
content, which would mean `xdg.configFile."hypr/hypridle.conf"` does
exist, avoids the error.
2024-11-24 17:41:50 +01:00
Sebastián Zavala Villagómez
bd58a1132e
hyprpaper: fix service when no config file
The systemd user service depends on

  config.xdg.configFile."hypr/hyprpaper.conf".source

for `X-Restart-Triggers`. When `cfg.settings` is the default `{}`,
this causes failure since

  config.xdg.configFile."hypr/hyprpaper.conf".source

will not exist.

Making the addition conditional on `cfg.settings` actually having
content, which would mean `xdg.configFile."hypr/hyprpaper.conf"` does
exist, avoids the error.
2024-11-24 14:05:10 +01:00
Dawid Dziurla
92fef254a9
podman: install package and create config files
Co-authored-by: Dylan Wilson <dylan@bytepen.com>
2024-11-23 22:36:33 +01:00
klchen0112
ba9367b5a9
emacs: add darwin service 2024-11-23 19:15:47 +01:00
Robert Helgesson
a46e702093
espanso: fix test failure 2024-11-19 15:05:03 +01:00
Nikolaos Karaolidis
a42fa14b53
syncthing: expand declarative configuration
This expands the Syncthing configuration to allow declarative
settings. Code mostly pulled from the Nixpkgs module.

Changes compared to the NixOS module are:

Removed the following options:

- user, group, systemService: Unnecessary since Syncthing always runs
  as the user declaring the configuration.

- dataDir configDir, databaseDir: Pointed to ~/.local/state/syncthing,
  the default Syncthing directory.

- openDefaultPorts: We don't have access to the system firewall.

Furthermore, multiple changes to systemd services were made to
maintain consistency with other Home Manager modules, sandboxing
options might need to be reviewed further.

Fixes #4049
2024-11-18 23:27:58 +01:00
RedEtherbloom
cd21d2e61b
git-sync: fix crash when whitespace in path
systemd rejects the service unit due to whitespace in the environment
variable assignment, pointing to the repo path, being invalid for
systemd's unit format.

See https://github.com/nix-community/home-manager/issues/6023 for
details.

The git-sync variable should also be escaped due to similar issues
with e.g. local git urls.
2024-11-13 23:03:19 +01:00
RedEtherbloom
ee8ff6d53f
espanso: fix test for nixpkgs update
Recent nixpkgs update made a small change how YAML is generated,
causing the test YAML to be out of date.

The replacement match is also an exact example from the espanso wiki
https://espanso.org/docs/matches/basics/#multi-line-expansions.
2024-11-13 22:51:34 +01:00
Nicholas Hassan
1743615b61
podman: add module
Adds a new Podman module for creating user containers and networks as
systemd services. These are installed to the user's
`$XDG_CONFIG/systemd/user` directory.
2024-11-01 20:45:06 +01:00
Bruno BELANYI
6cc03e337a
nix-gc: add randomizedDelaySec option
There's no launchd equivalent to this option, so this is a no-op on
Darwin.
2024-10-25 15:53:42 +02:00
Muhammad Talal Anwar
802b3cb2d4
espanso: use launcher command on Linux
The source uses `launcher` instead of `daemon`. Additionally we remove
`Type` and add `RestartSec` as defined in the source:

b421bcf73f/espanso/src/res/linux/systemd.service (L5-L7C1)
2024-10-19 09:01:11 +02:00
Robert Helgesson
9c1a1c7df4
activitywatch: reduce test closure
This also reduces test flakiness.
2024-10-17 15:30:02 +02:00
Damien Cassou
03f8e0b3b3
snixembed: add module
This is used by SafeEyes (another home-manager) module to show a
systemtray icon. See https://git.sr.ht/~steef/snixembed.

Fixes #5728
2024-10-11 00:14:36 +02:00
Robert Helgesson
0afc2f0f19
river: reduce risk of large rebuilds in test
Specifically, overriding the dbus package can cause rebuilds of many
packages.
2024-09-26 22:19:30 +02:00
Robert Helgesson
0b052dd811
swayidle: minor cleanups 2024-09-20 11:45:46 +02:00
sdaqo
9c5f16d703
borgmatic: fix service permissions
Fixes #5749
2024-09-15 09:32:04 +02:00
Robert Helgesson
e524c57b1f
mopidy: fix formatting 2024-09-15 01:45:42 +02:00
Robert Helgesson
6c1a461a44
mopidy: reduce test closure size 2024-09-14 12:14:32 +02:00
Callum Leslie
4c8647b1ed
trayscale: add module
Trayscale is an unofficial GUI wrapper around the Tailscale CLI
client.

PR #5803
2024-09-13 10:59:31 +02:00
O. C. Taskin
daaf0c2f8d
kanshi: add support for output aliases
- Add `services.kanshi.profiles.<name>.outputs.*.alias` to support new
  alias directive from kanshi [1].
  - Add an assertion to reject aliases not on global scope, which are
    not allowed on kanshi [2].
  - Add a new test to check alias rejection, `alias-assertion`.
- Add relevant coverage by modifying the existing "new-configuration"
  test.
- Kanshi also doesn't allow wildcards on global scope [3], correct the
  faulty test case.

[1]: 1ed86ce523
[2]: 1605f7c813/item/doc/kanshi.5.scd (L78)
[3]: 1605f7c813/item/doc/kanshi.5.scd (L80)
2024-09-13 10:51:33 +02:00
Ayman Bagabas
ef50612457
gpg-agent: add launchd service agent and sockets
This adds a Darwin Launchd agent along with its sockets to make
gpg-agent starts at load or whenever the sockets are needed.

Fixes: https://github.com/nix-community/home-manager/issues/3864
2024-09-13 08:59:29 +02:00
Robert Helgesson
8a175a8913
tests: change quoting to match new Nixpkgs behavior
Fixes tests that are affected by
<https://github.com/NixOS/nixpkgs/pull/333744>.
2024-09-08 23:32:19 +02:00
DCsunset
127ccc3eb7
i3/sway: support str type for font size 2024-09-06 15:23:08 +02:00
Lulu
03b49187a2
sway: indent sway configuration options
Fix the indentation for the configuration of `input`, `output` and
`seat` to match that of `mode`.
2024-09-06 14:51:44 +02:00
William Tan
58cef37962
nix-gc: remove extraneous quotes from shell script 2024-07-31 08:27:17 +02:00