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

treewide: reformat nixfmt-rfc-style

Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
Austin Horstman 2025-04-07 16:11:29 -05:00
parent 5df48c4255
commit cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
@ -7,13 +12,23 @@ let
jsonFormat = pkgs.formats.json { };
features = [ "audio" "backlight" "battery" "cpu_load" "network" "time" ];
features = [
"audio"
"backlight"
"battery"
"cpu_load"
"network"
"time"
];
finalConfig = { inherit (cfg) order; } // cfg.extraConfig;
finalConfig = {
inherit (cfg) order;
} // cfg.extraConfig;
configFile = jsonFormat.generate "dwm-status.json" finalConfig;
in {
in
{
options = {
services.dwm-status = {
enable = mkEnableOption "dwm-status user service";
@ -54,8 +69,7 @@ in {
config = mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.dwm-status" pkgs
lib.platforms.linux)
(lib.hm.assertions.assertPlatform "services.dwm-status" pkgs lib.platforms.linux)
];
systemd.user.services.dwm-status = {
@ -64,9 +78,13 @@ in {
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = { ExecStart = "${cfg.package}/bin/dwm-status ${configFile}"; };
Service = {
ExecStart = "${cfg.package}/bin/dwm-status ${configFile}";
};
};
};
}