I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
528 B

11 months ago
  1. This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let cfg = config.modules.xdg;
  6. in {
  7. options.modules.xdg = {
  8. enable = mkOption {
  9. type = bool;
  10. default = false;
  11. };
  12. };
  13. config = mkIf cfg.enable {
  14. environment.variables = {
  15. XDG_DESKTOP_DIR = "$HOME/";
  16. XDG_CACHE_HOME = "$HOME/.cache";
  17. XDG_CONFIG_HOME = "$HOME/.config";
  18. XDG_DATA_HOME = "$HOME/.local/share";
  19. XDG_BIN_HOME = "$HOME/.local/bin";
  20. };
  21. };
  22. }