From 83a82ab6553d6acdeba6b099e110af861c1e6d8c Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 27 Aug 2024 10:58:05 -0400 Subject: [PATCH] chore: Expand single item lists and attribute sets These aren't collapsed by nix fmt anymore. --- example/configuration.nix | 4 +++- flake.nix | 4 +++- home/ironbar.nix | 4 +++- home/librewolf.nix | 4 +++- home/udiskie.nix | 4 +++- modules/system.nix | 10 ++++++++-- specializations/dwm.nix | 12 +++++++++--- 7 files changed, 32 insertions(+), 10 deletions(-) diff --git a/example/configuration.nix b/example/configuration.nix index 2cfe71d8..d80aa072 100644 --- a/example/configuration.nix +++ b/example/configuration.nix @@ -20,7 +20,9 @@ in home-manager.sharedModules = attrValues nix-config.homeModules - ++ singleton { programs.btop.enable = true; }; + ++ singleton { + programs.btop.enable = true; + }; environment.systemPackages = attrValues { inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer; diff --git a/flake.nix b/flake.nix index a532808b..bf5ae075 100644 --- a/flake.nix +++ b/flake.nix @@ -96,7 +96,9 @@ }; modules = phoneModules ++ [ - (import "${mobile-nixos}/lib/configuration.nix" { device = "pine64-pinephone"; }) + (import "${mobile-nixos}/lib/configuration.nix" { + device = "pine64-pinephone"; + }) { mobile.beautification = { diff --git a/home/ironbar.nix b/home/ironbar.nix index a32ec7a0..bfa0ef15 100644 --- a/home/ironbar.nix +++ b/home/ironbar.nix @@ -74,7 +74,9 @@ in type = "clock"; format = "%x(%a)%R"; } - { type = "notifications"; } + { + type = "notifications"; + } ]; }; diff --git a/home/librewolf.nix b/home/librewolf.nix index 97487206..e59deeca 100644 --- a/home/librewolf.nix +++ b/home/librewolf.nix @@ -15,7 +15,9 @@ in programs.librewolf = { enable = true; - package = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; }; + package = pkgs.librewolf.override { + cfg.speechSynthesisSupport = false; + }; profiles.default = { extensions = with firefox-addons.packages.${pkgs.system}; [ diff --git a/home/udiskie.nix b/home/udiskie.nix index 9c40c0a4..f3ea3b85 100644 --- a/home/udiskie.nix +++ b/home/udiskie.nix @@ -1 +1,3 @@ -{ services.udiskie.enable = true; } +{ + services.udiskie.enable = true; +} diff --git a/modules/system.nix b/modules/system.nix index c073f9ba..195b67d9 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -263,8 +263,14 @@ in postgresql = mkIf postgres { enable = true; - ensureUsers = singleton { name = username; }; - ensureDatabases = [ username ]; + + ensureUsers = singleton { + name = username; + }; + + ensureDatabases = [ + username + ]; }; openssh = { diff --git a/specializations/dwm.nix b/specializations/dwm.nix index 5da063c0..ef89a503 100644 --- a/specializations/dwm.nix +++ b/specializations/dwm.nix @@ -118,7 +118,9 @@ in shadowExclude = fadeExclude; - opacityRules = [ "95:class_g = 'Thunar'" ]; + opacityRules = [ + "95:class_g = 'Thunar'" + ]; settings = { blur = { @@ -126,9 +128,13 @@ in size = 10; }; - blur-background-exclude = [ "class_g = 'Nemo-desktop'" ]; + blur-background-exclude = [ + "class_g = 'Nemo-desktop'" + ]; - clip-shadow-above = [ "class_g = 'dwm'" ]; + clip-shadow-above = [ + "class_g = 'dwm'" + ]; }; };