lifebook: move to niri

disable ssh agent in desktop config
This commit is contained in:
2025-12-23 14:29:54 +01:00
parent 1dc51c4bc4
commit c1f4c25cb6
5 changed files with 424 additions and 12 deletions

View File

@@ -0,0 +1,78 @@
#
# Sway configuration
#
# flake.nix
# ├─ ./hosts
# │ └─ ./laptop
# │ └─ default.nix
# └─ ./modules
# └─ ./desktop
# └─ ./hyprland
# └─ hyprland.nix *
#
{ config, lib, user, pkgs, desktop, ... }:
{
imports = [ ../waybar.nix ];
environment = {
systemPackages = with pkgs; [
xdg-desktop-portal-gnome
dinit
swaylock
swayidle
slurp
grim
lxqt.lxqt-openssh-askpass
clinfo
glib
brightnessctl
playerctl
];
};
services = {
iio-niri = {
enable = true;
extraArgs = [
"--monitor"
"eDP-1"
];
};
greetd = {
enable = true;
useTextGreeter = true;
settings = {
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd niri-session";
};
};
};
};
programs = {
niri.enable = true;
# sway.extraSessionCommands = ''
# export MOZ_ENABLE_WAYLAND="1";
# export MOZ_WEBRENDER="1";
# export MOZ_USE_XINPUT2="2";
# export MOZ_DBUS_REMOTE="1";
# export WLR_RENDERER="vulkan";
# export LIBVA_DRIVER_NAME="iHD";
# export VDPAU_DRIVER="iHD";
# export XDG_SESSION_TYPE="wayland";
# #export XDG_CURRENT_DESKTOP="Unity";
# #export QT_QPA_PLATFORMTHEME="wayland-egl";
# export GST_VAAPI_ALL_DRIVERS="1";
# export GTK_THEME="Arc";
# export _JAVA_AWT_WM_NONREPARENTING="1";
# #export LIBCL_ALWAYS_SOFTWARE="1"; # For applications in VM like alacritty to work
# #export WLR_NO_HARDWARE_CURSORS="1"; # For cursor in VM
# '';
ssh.enableAskPassword = true;
ssh.askPassword = "${pkgs.lxqt.lxqt-openssh-askpass}/bin/lxqt-openssh-askpass";
};
security.pam.services.swaylock = {};
}