feat: waybar modulization
This commit is contained in:
parent
6fddac69d2
commit
94c073c28a
15 changed files with 669 additions and 416 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, settings, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
addons = with pkgs; [
|
||||
|
|
@ -44,7 +44,7 @@ in
|
|||
};
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart = "on-failure";
|
||||
Restart = "always";
|
||||
RestartSec = 2;
|
||||
ExecStart = "/run/current-system/sw/bin/fcitx5";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -95,14 +95,13 @@ lib.checkListOfEnum "Nvidia Prime Mode" validModes [ nvidia-mode ] {
|
|||
};
|
||||
|
||||
environment.variables = {
|
||||
# GPU
|
||||
LIBVA_DRIVER_NAME = "nvidia";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
NVD_BACKEND = "direct";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
MOZ_DISABLE_RDD_SANDBOX = 1;
|
||||
OGL_DEDICATED_HW_STATE_PER_CONTEXT = "ENABLE_ROBUST";
|
||||
INTEL_GPU_MIN_FREQ_ON_AC = "500";
|
||||
|
||||
# If multiple monitors are connected to dGPU & iGPU,
|
||||
# make sure to put the iGPU first
|
||||
# AQ_DRM_DEVICES = "/dev/dri/card1:/dev/dri/card0";
|
||||
|
|
|
|||
|
|
@ -8,4 +8,19 @@
|
|||
# polkit-gnome execution is handled by Hyprland exec.nix
|
||||
# as hyprland do not cooperate with graphical-session.target
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||
enable = true;
|
||||
description = "Gnome authentication agent";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
after = [ "graphical-session-pre.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue