This commit is contained in:
parent
5f644d0ccd
commit
a394b9cefd
167 changed files with 2795 additions and 2122 deletions
|
@ -1,14 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# Creates an user that home assistant can log in as to power off the system
|
||||
users.users.hass = {
|
||||
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFcoVVrMFili8UBjziIu2wyFgcDGTlT1avBh2nLTa9aM"];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFcoVVrMFili8UBjziIu2wyFgcDGTlT1avBh2nLTa9aM"
|
||||
];
|
||||
isNormalUser = true;
|
||||
isSystemUser = false;
|
||||
group = "hass";
|
||||
createHome = false;
|
||||
};
|
||||
|
||||
users.groups.hass = {};
|
||||
users.groups.hass = { };
|
||||
|
||||
security.sudo.extraConfig = ''
|
||||
hass ALL=NOPASSWD:${pkgs.systemd}/bin/systemctl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue