skipper: refactor hyprland stuff
This commit is contained in:
parent
7c04f41412
commit
524ca0b9c5
3 changed files with 10 additions and 8 deletions
|
@ -4,7 +4,6 @@
|
|||
}:
|
||||
let
|
||||
gnome-keyring-daemon = "${pkgs.gnome-keyring}/bin/gnome-keyring-daemon";
|
||||
hyprland = "${config.wayland.windowManager.hyprland.finalPackage}/bin/Hyprland";
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
|
@ -24,11 +23,6 @@ in
|
|||
eval $(${gnome-keyring-daemon} -s -d 2> /dev/null)
|
||||
export SSH_AUTH_SOCK
|
||||
'';
|
||||
profileExtra = ''
|
||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ] ; then
|
||||
exec ${hyprland}
|
||||
fi
|
||||
'';
|
||||
shellAliases = {
|
||||
cat = "${pkgs.bat}/bin/bat";
|
||||
cp = "cp -v";
|
||||
|
|
|
@ -9,13 +9,11 @@
|
|||
xdgOpenUsePortal = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
];
|
||||
config = {
|
||||
common = {
|
||||
default = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
configPackages = [ pkgs.hyprland ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
|
@ -22,6 +23,15 @@ let
|
|||
pictures = "${config.xdg.userDirs.pictures}";
|
||||
in
|
||||
{
|
||||
xdg.portal = {
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||
configPackages = [ pkgs.hyprland ];
|
||||
};
|
||||
programs.zsh.profileExtra = ''
|
||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ] ; then
|
||||
exec ${lib.getExe config.wayland.win.hyprland.package}
|
||||
fi
|
||||
'';
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
|
|
Loading…
Reference in a new issue