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 = [
|
imports = [
|
||||||
|
@ -31,6 +31,8 @@
|
||||||
package = pkgs.unstable.ollama;
|
package = pkgs.unstable.ollama;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Fix boot issue
|
||||||
|
containers.telegram.bindMounts."/dev/dri/card1" = { };
|
||||||
|
|
||||||
local.programs.communication = {
|
local.programs.communication = {
|
||||||
telegram = {
|
telegram = {
|
||||||
|
|
|
@ -30,6 +30,11 @@
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.logind.extraConfig = ''
|
services.logind.extraConfig = ''
|
||||||
# don’t shutdown when power button is short-pressed
|
# don’t shutdown when power button is short-pressed
|
||||||
HandlePowerKey=ignore
|
HandlePowerKey=ignore
|
||||||
|
|
|
@ -33,6 +33,13 @@ in
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
|
|
||||||
|
allowedDevices = [
|
||||||
|
{
|
||||||
|
modifier = "r";
|
||||||
|
node = "/dev/dri";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
bindMounts = lib.mkMerge [
|
bindMounts = lib.mkMerge [
|
||||||
{
|
{
|
||||||
"/tmp/.X11-unix" = { };
|
"/tmp/.X11-unix" = { };
|
||||||
|
|
Loading…
Add table
Reference in a new issue