Add XDG, and move program installations to better modules
This commit is contained in:
parent
28590820e5
commit
92adc76e0c
4 changed files with 25 additions and 7 deletions
8
home.nix
8
home.nix
|
|
@ -5,9 +5,8 @@
|
||||||
home.username = "pan";
|
home.username = "pan";
|
||||||
home.homeDirectory = "/home/pan";
|
home.homeDirectory = "/home/pan";
|
||||||
|
|
||||||
xdg.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./programs/xdg
|
||||||
./programs/hypr
|
./programs/hypr
|
||||||
./programs/dunst
|
./programs/dunst
|
||||||
./programs/git
|
./programs/git
|
||||||
|
|
@ -20,11 +19,6 @@
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
eww-wayland # eww widgets
|
eww-wayland # eww widgets
|
||||||
socat # For hyprland scripts
|
|
||||||
swww # Wallpaper engine
|
|
||||||
trash-cli # Trash application
|
|
||||||
dunst # Notification Manager
|
|
||||||
wlr-randr # Xrandr for wayland
|
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
syncthing # For syncing files between computers
|
syncthing # For syncing files between computers
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,9 @@
|
||||||
${builtins.readFile ./default.conf}
|
${builtins.readFile ./default.conf}
|
||||||
${builtins.readFile ./keybinds.conf}
|
${builtins.readFile ./keybinds.conf}
|
||||||
'';
|
'';
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
socat # For hyprland scripts
|
||||||
|
swww # Wallpaper engine
|
||||||
|
wlr-randr # Xrandr for wayland
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,7 @@
|
||||||
NNN_FIFO = "/tmp/nnn.fifo";
|
NNN_FIFO = "/tmp/nnn.fifo";
|
||||||
NNN_TRASH = "1";
|
NNN_TRASH = "1";
|
||||||
};
|
};
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
trash-cli # Trash program for nnn
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
programs/xdg/default.nix
Normal file
16
programs/xdg/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue