aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/desktop.nix
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
committertdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
commit88017f5a874478dd82f306a5df88c38a8d06fcb6 (patch)
tree8806c58c4f21bb6a56d8530df8a93b256d44b4f3 /users/tdback/desktop.nix
parent01d012473d4311d4f4e5a0831d912bc4b8c61639 (diff)
fix: format flake with `nixfmt-rfc-style`
Diffstat (limited to 'users/tdback/desktop.nix')
-rw-r--r--users/tdback/desktop.nix44
1 files changed, 27 insertions, 17 deletions
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 = {