feat(server): ssh into the crony user by defult.
This commit is contained in:
parent
d9b90fd522
commit
670119ae64
3 changed files with 19 additions and 1 deletions
2
justfile
2
justfile
|
@ -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}}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue