host/asus: fix opening telegram issue
This commit is contained in:
parent
f1f59b0433
commit
f921a55b26
3 changed files with 15 additions and 1 deletions
hosts/asus-gl553vd
modules/nixos/programs/communication
|
@ -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 = {
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
# don’t shutdown when power button is short-pressed
|
||||
HandlePowerKey=ignore
|
||||
|
|
|
@ -33,6 +33,13 @@ in
|
|||
autoStart = true;
|
||||
ephemeral = true;
|
||||
|
||||
allowedDevices = [
|
||||
{
|
||||
modifier = "r";
|
||||
node = "/dev/dri";
|
||||
}
|
||||
];
|
||||
|
||||
bindMounts = lib.mkMerge [
|
||||
{
|
||||
"/tmp/.X11-unix" = { };
|
||||
|
|
Loading…
Add table
Reference in a new issue