diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-05 19:41:58 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-05 19:41:58 -0700 |
commit | 43da9edb4598eef509c481ae0b305384418c45de (patch) | |
tree | a0ad614c90102757143e026e4fe1806431a3dbf4 /home/xdg | |
parent | profiles/default: users are immutable (diff) | |
download | world-43da9edb4598eef509c481ae0b305384418c45de.tar.gz |
home/profiles: move (almost) all modules to profiles
This is a major refactor, similar to what was done for the hosts, but in a single commit.
Diffstat (limited to 'home/xdg')
-rw-r--r-- | home/xdg/default.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/home/xdg/default.nix b/home/xdg/default.nix deleted file mode 100644 index f5f60b3..0000000 --- a/home/xdg/default.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, lib, pkgs, ... }: -let cfg = config.my.home.xdg; -in -{ - options.my.home.xdg = with lib; { - enable = mkEnableOption "XDG configuration"; - }; - - config = lib.mkIf cfg.enable { - xdg = { - enable = true; - # File types - mime.enable = true; - # File associatons - mimeApps = { enable = true; }; - # User directories - userDirs = { - enable = true; - createDirectories = true; - desktop = "${config.home.homeDirectory}/documents"; - documents = "${config.home.homeDirectory}/documents"; - download = "${config.home.homeDirectory}/downloads"; - music = "${config.home.homeDirectory}/media/music"; - pictures = "${config.home.homeDirectory}/media/pictures"; - publicShare = "${config.home.homeDirectory}/documents/public"; - templates = "${config.home.homeDirectory}/documents/templates"; - videos = "${config.home.homeDirectory}/media/videos"; - }; - }; - - # xdg.portal = { - # enable = true; - # gtkUsePortal = true; - # extraPortals = - # [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ]; - # }; - - home.packages = with pkgs; [ xdg-utils ]; - - # I want a tidier home - home.sessionVariables = with config.xdg; { - DOCKER_CONFIG = "${configHome}/docker"; - LESS = "-FRSXM"; - LESSCHARSET = "utf-8"; - LESSHISTFILE = "${dataHome}/less/history"; - LESSKEY = "${configHome}/less/lesskey"; - PAGER = "less"; - }; - }; -} |