refactor(repo): reformat to nixfmt; relicense to 0BSD
This commit is contained in:
parent
035fb24038
commit
db2564d828
39 changed files with 451 additions and 318 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue