host/asus: fix opening telegram issue

This commit is contained in:
Dmitriy Pleshevskiy 2025-01-06 08:23:48 +03:00
parent f1f59b0433
commit f921a55b26
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
3 changed files with 15 additions and 1 deletions
hosts/asus-gl553vd
configuration.nix
hardware-configuration
modules/nixos/programs/communication

View file

@ -1,4 +1,4 @@
{ globalData, pkgs, ... }:
{ pkgs, ... }:
{
imports = [
@ -31,6 +31,8 @@
package = pkgs.unstable.ollama;
};
# Fix boot issue
containers.telegram.bindMounts."/dev/dri/card1" = { };
local.programs.communication = {
telegram = {

View file

@ -30,6 +30,11 @@
hardware.bluetooth.enable = true;
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore

View file

@ -33,6 +33,13 @@ in
autoStart = true;
ephemeral = true;
allowedDevices = [
{
modifier = "r";
node = "/dev/dri";
}
];
bindMounts = lib.mkMerge [
{
"/tmp/.X11-unix" = { };