aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixos.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-28 14:39:47 +0900
committerOphestra <cat@gensokyo.uk>2025-02-28 14:43:46 +0900
commit2d4cabe7860cb7ef7aa5bb6a3c21153e624d61b6 (patch)
treecd93b9d2a423bd8112a88327f7b3564fed214547 /nixos.nix
parent80f9b62d254d4ad8ea05784a509a81d9851f30aa (diff)
nix: increase nixfmt max width
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'nixos.nix')
-rw-r--r--nixos.nix17
1 files changed, 3 insertions, 14 deletions
diff --git a/nixos.nix b/nixos.nix
index e41648a9..aa2f1788 100644
--- a/nixos.nix
+++ b/nixos.nix
@@ -77,21 +77,12 @@ in
};
in
{
- session_bus =
- if app.dbus.session != null then
- (app.dbus.session (extendDBusDefault app.id))
- else
- (extendDBusDefault app.id default);
+ session_bus = if app.dbus.session != null then (app.dbus.session (extendDBusDefault app.id)) else (extendDBusDefault app.id default);
system_bus = app.dbus.system;
};
command = if app.command == null then app.name else app.command;
script = if app.script == null then ("exec " + command + " $@") else app.script;
- enablements =
- with app.capability;
- (if wayland then 1 else 0)
- + (if x11 then 2 else 0)
- + (if dbus then 4 else 0)
- + (if pulse then 8 else 0);
+ enablements = with app.capability; (if wayland then 1 else 0) + (if x11 then 2 else 0) + (if dbus then 4 else 0) + (if pulse then 8 else 0);
conf = {
inherit (app) id;
command = [
@@ -165,9 +156,7 @@ in
};
in
pkgs.writeShellScriptBin app.name ''
- exec fortify${
- if app.verbose then " -v" else ""
- } app ${pkgs.writeText "fortify-${app.name}.json" (builtins.toJSON conf)} $@
+ exec fortify${if app.verbose then " -v" else ""} app ${pkgs.writeText "fortify-${app.name}.json" (builtins.toJSON conf)} $@
''
) cfg.apps;
in