73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{ config, lib, pkgs, hyprland, ... }:
|
|
|
|
{
|
|
imports = [
|
|
hyprland.homeManagerModules.default
|
|
./env.nix
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
waybar # the status bar
|
|
# hyprpaper # wallpaper
|
|
swww # wallpaper
|
|
dunst # notify
|
|
rofi # app launcher
|
|
kitty
|
|
envsubst
|
|
killall
|
|
pavucontrol
|
|
wlogout
|
|
];
|
|
|
|
|
|
programs = {
|
|
bash = {
|
|
initExtra = ''
|
|
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|
exec Hyprland
|
|
fi
|
|
'';
|
|
};
|
|
|
|
swaylock.enable = true;
|
|
};
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
systemdIntegration = true;
|
|
# extraConfig = builtins.readFile ./conf/hyprland.conf;
|
|
};
|
|
|
|
# hyprland configs, based on https://github.com/notwidow/hyprland
|
|
home.file.".config/hypr" = {
|
|
source = ./conf/hypr;
|
|
# copy the scripts directory recursively
|
|
recursive = true;
|
|
};
|
|
|
|
home.file.".config/rofi" = {
|
|
source = ./conf/rofi;
|
|
recursive = true;
|
|
};
|
|
|
|
home.file.".config/kitty" = {
|
|
source = ./conf/kitty;
|
|
recursive = true;
|
|
};
|
|
|
|
home.file.".config/swww" = {
|
|
source = ./conf/swww;
|
|
recursive = true;
|
|
};
|
|
|
|
home.file.".config/waybar" = {
|
|
source = ./conf/waybar;
|
|
recursive = true;
|
|
};
|
|
|
|
home.file.".config/wlogout" = {
|
|
source = ./conf/wlogout;
|
|
recursive = true;
|
|
};
|
|
}
|