Skip to content

Commit

Permalink
users/hosts: pam ssh auth
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Dec 30, 2024
1 parent 6946630 commit b17e836
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions hosts/mistral/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
};
};

security.pam = {
rssh.enable = true;
sudo.rssh = true;
};

users.users.moni = {
isNormalUser = true;
home = "/home/moni";
Expand Down
4 changes: 2 additions & 2 deletions modules/shared/home-manager/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
};

signing = {
sign-all = "true";
sign-all = true;
backend = "ssh";
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBlr5SHXali3ttWt8ygyWgCW2usWVsBhXebeyi2XKO2Z";
key = "${config.home.homeDirectory}/.ssh/id_ed25519.pub";
};

ui = {
Expand Down
2 changes: 2 additions & 0 deletions users/moni/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
tinymist
;
};

sessionVariables.SSH_ASKPASS = "/opt/homebrew/bin/touch2sudo";
};

programs = {
Expand Down

0 comments on commit b17e836

Please sign in to comment.