|
|
|
@ -1,51 +1,20 @@ |
|
|
|
{ inputs, lib, config, pkgs, ... }: { |
|
|
|
imports = [ |
|
|
|
../common |
|
|
|
../common/wayland-wm |
|
|
|
inputs.hyprland.homeManagerModules.default |
|
|
|
]; |
|
|
|
|
|
|
|
programs = { |
|
|
|
fish.loginShellInit = '' |
|
|
|
if test (tty) = "/dev/tty1" |
|
|
|
exec Hyprland &> /dev/null |
|
|
|
end |
|
|
|
''; |
|
|
|
zsh.loginExtra = '' |
|
|
|
if [ "$(tty)" = "/dev/tty1" ]; then |
|
|
|
exec Hyprland &> /dev/null |
|
|
|
fi |
|
|
|
''; |
|
|
|
zsh.profileExtra = '' |
|
|
|
if [ "$(tty)" = "/dev/tty1" ]; then |
|
|
|
exec Hyprland &> /dev/null |
|
|
|
fi |
|
|
|
''; |
|
|
|
}; |
|
|
|
{pkgs, ...}: let |
|
|
|
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz"; |
|
|
|
|
|
|
|
home.packages = with pkgs; [ |
|
|
|
inputs.hyprwm-contrib.packages.${system}.grimblast |
|
|
|
swaybg |
|
|
|
swayidle |
|
|
|
# TODO |
|
|
|
# inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland |
|
|
|
hyprland = (import flake-compat { |
|
|
|
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz"; |
|
|
|
}).defaultNix; |
|
|
|
in { |
|
|
|
imports = [ |
|
|
|
hyprland.homeManagerModules.default |
|
|
|
]; |
|
|
|
|
|
|
|
programs.waybar.package = pkgs.waybar.overrideAttrs (oa: { |
|
|
|
mesonFlags = (oa.mesonFlags or [ ]) ++ [ "-Dexperimental=true" ]; |
|
|
|
}); |
|
|
|
|
|
|
|
wayland.windowManager.hyprland = { |
|
|
|
enable = true; |
|
|
|
package = inputs.hyprland.packages.${pkgs.system}.default; |
|
|
|
extraConfig = |
|
|
|
(import ./monitors.nix { |
|
|
|
inherit lib; |
|
|
|
inherit (config) monitors; |
|
|
|
}) + |
|
|
|
(import ./config.nix { |
|
|
|
inherit (config) home colorscheme wallpaper; |
|
|
|
}); |
|
|
|
|
|
|
|
extraConfig = '' |
|
|
|
bind = SUPER, Return, exec, kitty |
|
|
|
# ... |
|
|
|
''; |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
|