modules/telegram: rename telegram user
This commit is contained in:
parent
47e6195e70
commit
f2038504b0
1 changed files with 4 additions and 7 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue