Add XDG, and move program installations to better modules

This commit is contained in:
langedev 2023-11-20 02:22:10 -08:00
parent 28590820e5
commit 92adc76e0c
4 changed files with 25 additions and 7 deletions

View file

@ -6,4 +6,9 @@
${builtins.readFile ./default.conf}
${builtins.readFile ./keybinds.conf}
'';
home.packages = with pkgs; [
socat # For hyprland scripts
swww # Wallpaper engine
wlr-randr # Xrandr for wayland
];
}

View file

@ -8,4 +8,7 @@
NNN_FIFO = "/tmp/nnn.fifo";
NNN_TRASH = "1";
};
home.packages = with pkgs; [
trash-cli # Trash program for nnn
];
}

16
programs/xdg/default.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
xdg.enable = true;
xdg.userDirs.enable = true;
xdg.userDirs = {
desktop = "${config.home.homeDirectory}/dwn";
download = "${config.home.homeDirectory}/dwn";
documents = "${config.home.homeDirectory}/dox";
publicShare = "${config.home.homeDirectory}/dox/public";
templates = "${config.home.homeDirectory}/dox/templates";
music = "${config.home.homeDirectory}/med/mus";
pictures = "${config.home.homeDirectory}/med/pix";
videos = "${config.home.homeDirectory}/med/vid";
};
}