feat(server): ssh into the crony user by defult.

This commit is contained in:
CronyAkatsuki 2025-08-31 01:24:23 +02:00
parent d9b90fd522
commit 670119ae64
3 changed files with 19 additions and 1 deletions

View file

@ -1,5 +1,5 @@
shell server:
ssh root@{{server}}
ssh crony@{{server}}
forward port server:
ssh -N -L {{port}}:127.0.0.1:{{port}} root@{{server}}

View file

@ -1,4 +1,7 @@
{config, ...}: {
# Not reall that safe but convenient af
security.sudo.wheelNeedsPassword = false;
users.users.crony = {
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
isNormalUser = true;

View file

@ -24,6 +24,7 @@
antidote = {
enable = true;
useFriendlyNames = true;
plugins = [
"zap-zsh/supercharge"
"zap-zsh/completions"
@ -100,6 +101,20 @@
# Let home manager install and manage itself
programs.home-manager.enable = true;
# Install and setup atuin
programs.atuin = {
enable = true;
daemon.enable = true;
enableZshIntegration = true;
settings = {
auto_sync = true;
sync_frequency = "5m";
sync_address = "https://atuin.cronyakatsuki.xyz";
style = "compact";
workspaces = true;
keymap_mode = "vim-normal";
};
};
# DO NOT CHANGE
home.stateVersion = "24.11"; # Please read the comment before changing.
}