refactor(repo): reformat to nixfmt; relicense to 0BSD

This commit is contained in:
Artur Manuel 2025-03-06 20:45:49 +00:00
commit db2564d828
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
39 changed files with 451 additions and 318 deletions

View file

@ -3,17 +3,23 @@
lib,
pkgs,
...
}: let
}:
let
cfg = config.alqueva.programs.swaybg;
inherit (lib) types;
in {
in
{
options.alqueva.programs.swaybg = {
enable = lib.mkEnableOption "swaybg";
package = lib.mkPackageOption pkgs "swaybg" {};
package = lib.mkPackageOption pkgs "swaybg" { };
wallpaper = lib.mkOption {
default = "";
description = "The wallpaper you want to use with swaybg.";
type = types.oneOf [types.str types.package types.path];
type = types.oneOf [
types.str
types.package
types.path
];
};
mode = lib.mkOption {
default = "fill";
@ -21,7 +27,7 @@ in {
type = types.str;
};
extraServiceConfig = {
default = {};
default = { };
description = "Extra settings you want to apply to the systemd service.";
type = types.attrsOf types.anything;
};
@ -31,9 +37,9 @@ in {
systemd.user.services.swaybg = {
inherit (cfg.package.meta) description;
wantedBy = ["graphical-session.target"];
after = ["graphical-session-pre.target"];
partOf = ["graphical-session.target"];
wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session-pre.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${lib.getExe' cfg.package "swaybg"} -i ${cfg.wallpaper} -m ${cfg.mode}";