modules/telegram: rename telegram user

This commit is contained in:
Dmitriy Pleshevskiy 2024-09-30 19:26:35 +03:00
parent 47e6195e70
commit f2038504b0
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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 ];