NixOS Set python script as login shell

56 Views Asked by At

I am writing a NixOS config for my server and I want to disable all root access except from a special user which can only run my python script. I want to set the login shell of the user to my python script because I disabled bash for the user.

I tried setting users.users.pyadm.shell = "python3 /usr/local/share/pyadm/main.py", but I got a type error.

0

There are 0 best solutions below