From f2038504b0ec5dcd1125efc1f85feacd28f1a4e0 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 30 Sep 2024 19:26:35 +0300 Subject: [PATCH] modules/telegram: rename telegram user --- modules/nixos/programs/communication/telegram.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/nixos/programs/communication/telegram.nix b/modules/nixos/programs/communication/telegram.nix index 0f3a72f..708fcc3 100644 --- a/modules/nixos/programs/communication/telegram.nix +++ b/modules/nixos/programs/communication/telegram.nix @@ -5,7 +5,7 @@ let cfg = config.local.programs.communication.telegram; hostRunPackage = pkgs.writeScript "cont-run" '' - sudo nixos-container run telegram -- su -l kira -c "$*" + sudo nixos-container run telegram -- su -l jan -c "$*" ''; hostPackageScript = pkgs.writeScriptBin "${cfg.package.meta.mainProgram}" '' @@ -36,9 +36,8 @@ in bindMounts = lib.mkMerge [ { "/tmp/.X11-unix" = { }; - "/home/kira/downloads/telegram" = { + "/home/jan/downloads/telegram" = { isReadOnly = false; - hostPath = "/home/jan/downloads/telegram"; }; } (lib.mkIf config.hardware.graphics.enable { @@ -48,9 +47,7 @@ in "/run/opengl-driver-32/lib" = { }; }) (lib.mkIf config.local.programs.browsers.librewolf.enable { - "/home/kira/downloads/browser" = { - hostPath = "/home/jan/downloads/browser"; - }; + "/home/jan/downloads/browser" = { }; }) ]; @@ -64,7 +61,7 @@ in users.users.kira = { isNormalUser = true; - home = "/home/kira"; + home = "/home/jan"; password = "hello"; extraGroups = [ "pulse-access" ]; packages = [ cfg.package ];