format the repo files
This commit is contained in:
@@ -10,18 +10,22 @@
|
||||
# └─ ./hyprland
|
||||
# └─ hyprland.nix *
|
||||
#
|
||||
|
||||
{ config, lib, user, pkgs, desktop, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../waybar.nix ];
|
||||
config,
|
||||
lib,
|
||||
user,
|
||||
pkgs,
|
||||
desktop,
|
||||
...
|
||||
}: {
|
||||
imports = [../waybar.nix];
|
||||
|
||||
environment = {
|
||||
loginShellInit = ''
|
||||
if [ -z $DISPLAY ] && [ $UID != 0 ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec sway
|
||||
fi
|
||||
''; # Will automatically open sway when logged into tty1
|
||||
''; # Will automatically open sway when logged into tty1
|
||||
systemPackages = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
sway
|
||||
@@ -42,7 +46,7 @@
|
||||
|
||||
programs = {
|
||||
sway.enable = true;
|
||||
sway.extraSessionCommands = ''
|
||||
sway.extraSessionCommands = ''
|
||||
export MOZ_ENABLE_WAYLAND="1";
|
||||
export MOZ_WEBRENDER="1";
|
||||
export MOZ_USE_XINPUT2="2";
|
||||
@@ -65,9 +69,10 @@
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
xdg.portal = { # Required for flatpak with windowmanagers
|
||||
xdg.portal = {
|
||||
# Required for flatpak with windowmanagers
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user