From 88017f5a874478dd82f306a5df88c38a8d06fcb6 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 16 Jan 2025 19:57:13 -0500 Subject: fix: format flake with `nixfmt-rfc-style` --- users/tdback/desktop.nix | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'users/tdback/desktop.nix') diff --git a/users/tdback/desktop.nix b/users/tdback/desktop.nix index 081487a..1d57042 100644 --- a/users/tdback/desktop.nix +++ b/users/tdback/desktop.nix @@ -1,20 +1,30 @@ { config, pkgs, ... }: let - mkDirs = defined: + mkDirs = + defined: let home = config.home.homeDirectory; - dirs = [ "desktop" "documents" "download" "music" "pictures" "publicShare" "templates" "videos" ]; + dirs = [ + "desktop" + "documents" + "download" + "music" + "pictures" + "publicShare" + "templates" + "videos" + ]; in - builtins.listToAttrs ( - builtins.map (dir: { - name = dir; - value = - if builtins.hasAttr dir defined then - "${home}/${defined.${dir}}" - else - null; - }) dirs - ); + { + enable = true; + createDirectories = true; + } + // (builtins.listToAttrs ( + builtins.map (dir: { + name = dir; + value = if builtins.hasAttr dir defined then "${home}/${defined.${dir}}" else null; + }) dirs + )); in { imports = [ @@ -29,11 +39,11 @@ in home.packages = with pkgs.unstable; [ clang + element-desktop gimp gitu mpv pciutils - signal-desktop tidal-dl yt-dlp zathura @@ -41,10 +51,10 @@ in xdg = { enable = true; - userDirs = { - enable = true; - createDirectories = true; - } // (mkDirs { documents = "documents"; download = "downloads"; }); + userDirs = mkDirs { + documents = "documents"; + download = "downloads"; + }; }; qt = { -- cgit v1.2.3