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; cfg = config.local.programs.communication.telegram;
hostRunPackage = pkgs.writeScript "cont-run" '' 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}" '' hostPackageScript = pkgs.writeScriptBin "${cfg.package.meta.mainProgram}" ''
@ -36,9 +36,8 @@ in
bindMounts = lib.mkMerge [ bindMounts = lib.mkMerge [
{ {
"/tmp/.X11-unix" = { }; "/tmp/.X11-unix" = { };
"/home/kira/downloads/telegram" = { "/home/jan/downloads/telegram" = {
isReadOnly = false; isReadOnly = false;
hostPath = "/home/jan/downloads/telegram";
}; };
} }
(lib.mkIf config.hardware.graphics.enable { (lib.mkIf config.hardware.graphics.enable {
@ -48,9 +47,7 @@ in
"/run/opengl-driver-32/lib" = { }; "/run/opengl-driver-32/lib" = { };
}) })
(lib.mkIf config.local.programs.browsers.librewolf.enable { (lib.mkIf config.local.programs.browsers.librewolf.enable {
"/home/kira/downloads/browser" = { "/home/jan/downloads/browser" = { };
hostPath = "/home/jan/downloads/browser";
};
}) })
]; ];
@ -64,7 +61,7 @@ in
users.users.kira = { users.users.kira = {
isNormalUser = true; isNormalUser = true;
home = "/home/kira"; home = "/home/jan";
password = "hello"; password = "hello";
extraGroups = [ "pulse-access" ]; extraGroups = [ "pulse-access" ];
packages = [ cfg.package ]; packages = [ cfg.package ];