2023-09-26 19:03:50 +01:00
|
|
|
{ config, lib, pkgs, catppuccin-themes, ... }:
|
2023-09-07 09:36:42 +01:00
|
|
|
|
|
|
|
{
|
2023-07-11 09:11:48 +01:00
|
|
|
imports = [
|
2023-09-24 13:05:26 +01:00
|
|
|
./wlogout/default.nix
|
2023-08-09 10:27:10 +01:00
|
|
|
./waybar/default.nix
|
2023-09-06 16:58:19 +01:00
|
|
|
./swaync/default.nix
|
2023-08-09 10:27:10 +01:00
|
|
|
./rofi/default.nix
|
2023-09-24 10:29:51 +01:00
|
|
|
./anyrun.nix
|
2023-07-16 17:35:36 +01:00
|
|
|
./swaylock.nix
|
|
|
|
./gtk.nix
|
2023-07-11 09:11:48 +01:00
|
|
|
];
|
2023-09-10 17:07:11 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
libsForQt5.polkit-kde-agent
|
2023-09-11 17:23:50 +01:00
|
|
|
mc
|
2023-09-10 17:07:11 +01:00
|
|
|
signal-desktop
|
2023-09-21 08:51:07 +01:00
|
|
|
ferdium
|
2023-09-10 17:07:11 +01:00
|
|
|
libreoffice
|
|
|
|
zotero
|
2023-09-21 08:51:07 +01:00
|
|
|
minesweep-rs
|
2023-09-10 17:07:11 +01:00
|
|
|
];
|
2023-07-11 09:11:48 +01:00
|
|
|
programs = {
|
|
|
|
firefox.package = pkgs.firefox-wayland;
|
2023-08-09 10:27:10 +01:00
|
|
|
rofi = {
|
|
|
|
package = pkgs.rofi-wayland;
|
|
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
2023-09-05 18:44:29 +01:00
|
|
|
pass.extraConfig = ''
|
|
|
|
backend=wtype
|
|
|
|
clibpoard_backend=wl-clipboard
|
|
|
|
'';
|
2023-08-09 10:27:10 +01:00
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
};
|
2023-08-08 08:21:51 +01:00
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
systemdTarget = "hyprland-session.target";
|
|
|
|
};
|
2023-09-26 19:03:50 +01:00
|
|
|
stylix.targets.hyprland.enable = true;
|
2023-07-11 09:11:48 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2023-09-11 23:04:29 +01:00
|
|
|
xwayland.enable = true;
|
2023-09-26 19:03:50 +01:00
|
|
|
systemdIntegration = true;
|
2023-08-22 09:44:40 +01:00
|
|
|
extraConfig = import ./config.nix {
|
2023-09-11 08:28:50 +01:00
|
|
|
inherit config pkgs;
|
2023-09-07 09:26:16 +01:00
|
|
|
theme = catppuccin-themes.hyprland;
|
2023-08-22 09:44:40 +01:00
|
|
|
};
|
2023-07-17 06:58:10 +01:00
|
|
|
};
|
2023-09-13 17:43:20 +01:00
|
|
|
xdg = {
|
|
|
|
configFile = {
|
|
|
|
"hypr/hyprpaper.conf".text = ''
|
2023-09-26 19:03:50 +01:00
|
|
|
preload = ${config.stylix.image}
|
|
|
|
wallpaper = ,${config.stylix.image}
|
2023-09-13 17:43:20 +01:00
|
|
|
'';
|
|
|
|
"hypr/macchiato.conf".source = ./macchiato.conf;
|
|
|
|
"hypr/extra.conf" = lib.mkDefault { text = ""; };
|
|
|
|
};
|
2023-09-13 19:57:39 +01:00
|
|
|
mimeApps = let
|
|
|
|
associations = {
|
2023-09-13 17:43:20 +01:00
|
|
|
"image/jpeg" = [ "swayimg.desktop" ];
|
|
|
|
"image/png" = [ "swayimg.desktop" ];
|
2023-09-14 05:57:45 +01:00
|
|
|
"video/mp4" = [ "mpv.desktop" ];
|
2023-09-13 19:57:39 +01:00
|
|
|
"application/pdf" = [ "zathura.desktop" "emacs.desktop" ];
|
|
|
|
"application/json" = [ "emacs.desktop" "firefox.desktop" ];
|
|
|
|
"application/x-yaml" = [ "emacs.desktop" ];
|
|
|
|
"text/csv" = [ "calc.desktop" "emacs.desktop" ];
|
2023-09-13 17:43:20 +01:00
|
|
|
};
|
2023-09-13 19:57:39 +01:00
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = associations;
|
|
|
|
associations.added = associations;
|
2023-09-13 17:43:20 +01:00
|
|
|
};
|
2023-08-21 11:01:19 +01:00
|
|
|
};
|
2023-07-11 09:11:48 +01:00
|
|
|
}
|