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
492 B

<<file-warning>
{ config, options, lib, pkgs, ... }:
with lib;
with lib.types;
let cfg = config.modules.xdg;
in {
options.modules.xdg = {
enable = mkOption {
type = bool;
default = false;
};
};
config = mkIf cfg.enable {
environment.variables = {
XDG_DESKTOP_DIR = "$HOME/";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_BIN_HOME = "$HOME/.local/bin";
};
};
}