1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-09 18:41:06 +01:00

treewide: flatten single file modules

Some files don't need nesting and can be root level again to reduce
conflicts with other PRs.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-06-23 10:56:23 -05:00
parent bda9deb791
commit 86402a17b6
424 changed files with 15 additions and 15 deletions

44
modules/services/swww.nix Normal file
View file

@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.swww;
in
{
meta.maintainers = with lib.hm.maintainers; [ hey2022 ];
options.services.swww = {
enable = lib.mkEnableOption "swww, a Solution to your Wayland Wallpaper Woes";
package = lib.mkPackageOption pkgs "swww" { };
};
config = lib.mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.swww" pkgs lib.platforms.linux)
];
home.packages = [ cfg.package ];
systemd.user.services.swww = {
Install = {
WantedBy = [ config.wayland.systemd.target ];
};
Unit = {
ConditionEnvironment = "WAYLAND_DISPLAY";
Description = "swww-daemon";
After = [ config.wayland.systemd.target ];
PartOf = [ config.wayland.systemd.target ];
};
Service = {
ExecStart = "${lib.getExe' cfg.package "swww-daemon"}";
Restart = "always";
RestartSec = 10;
};
};
};
}