66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
#
|
|
# Sway configuration
|
|
#
|
|
# flake.nix
|
|
# ├─ ./hosts
|
|
# │ └─ ./laptop
|
|
# │ └─ default.nix
|
|
# └─ ./modules
|
|
# └─ ./desktop
|
|
# └─ ./hyprland
|
|
# └─ hyprland.nix *
|
|
#
|
|
|
|
{ config, inputs, lib, user, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ../noctalia.nix ];
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
xdg-desktop-portal-gnome
|
|
xdg-desktop-portal-gtk
|
|
swaylock
|
|
swayidle
|
|
slurp
|
|
grim
|
|
lxqt.lxqt-openssh-askpass
|
|
clinfo
|
|
glib
|
|
brightnessctl
|
|
playerctl
|
|
xwayland-satellite
|
|
];
|
|
loginShellInit = ''
|
|
export GTK_IM_MODULE="simple"
|
|
export ELECTRON_OZONE_PLATFORM_HINT="auto"
|
|
export NIXOS_OZONE_WL="1"
|
|
export WLR_RENDERER="vulkan"
|
|
export _JAVA_AWT_WM_NONREPARENTING="1"
|
|
'';
|
|
};
|
|
services = {
|
|
iio-niri = {
|
|
enable = true;
|
|
};
|
|
greetd = {
|
|
enable = true;
|
|
useTextGreeter = true;
|
|
settings = {
|
|
default_session = {
|
|
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd niri-session";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
niri.enable = true;
|
|
ssh.enableAskPassword = true;
|
|
ssh.askPassword = "${pkgs.lxqt.lxqt-openssh-askpass}/bin/lxqt-openssh-askpass";
|
|
};
|
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
}
|