nixos/home/hyprland/default.nix
Evie Litherland-Smith 0889818512 Big reorganise
Move commonModule into system/default.nix
Keep most essential parts (user definition, home-manager init) in
flake.nix but move rest to system/default.nix

Remove some tui expressions from home and add all to home/default.nix,
will always want those so always use

Disable gamescope session unless gamescope.nix imported

Move various home.package definitions to environment.systemPackage in
system/ expressions, located based on appropriate use

Move wallpapers directory due to restructure, no other changes to it
2023-10-09 11:40:25 +01:00

60 lines
1.6 KiB
Nix

{ config, lib, pkgs, catppuccin-themes, ... }:
{
imports = [
./wlogout/default.nix
./waybar/default.nix
./swaync/default.nix
./rofi/default.nix
./anyrun.nix
./gtk.nix
];
programs.rofi = {
package = pkgs.rofi-wayland;
terminal = "${pkgs.alacritty}/bin/alacritty";
pass.extraConfig = ''
backend=wtype
clibpoard_backend=wl-clipboard
'';
};
services.kanshi = {
enable = true;
systemdTarget = "hyprland-session.target";
};
stylix.targets.hyprland.enable = true;
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemdIntegration = true;
extraConfig = import ./config.nix {
inherit config pkgs;
theme = catppuccin-themes.hyprland;
};
};
xdg = {
configFile = {
"hypr/hyprpaper.conf".text = ''
preload = ${config.stylix.image}
wallpaper = ,${config.stylix.image}
'';
"hypr/macchiato.conf".source = ./macchiato.conf;
"hypr/extra.conf" = lib.mkDefault { text = ""; };
};
mimeApps = let
associations = {
"image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"application/pdf" = [ "zathura.desktop" "emacs.desktop" ];
"application/json" = [ "emacs.desktop" "firefox.desktop" ];
"application/x-yaml" = [ "emacs.desktop" ];
"text/csv" = [ "calc.desktop" "emacs.desktop" ];
};
in {
enable = true;
defaultApplications = associations;
associations.added = associations;
};
};
}