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:
|
shell server:
|
||||||
ssh root@{{server}}
|
ssh crony@{{server}}
|
||||||
|
|
||||||
forward port server:
|
forward port server:
|
||||||
ssh -N -L {{port}}:127.0.0.1:{{port}} root@{{server}}
|
ssh -N -L {{port}}:127.0.0.1:{{port}} root@{{server}}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
|
# Not reall that safe but convenient af
|
||||||
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
users.users.crony = {
|
users.users.crony = {
|
||||||
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
antidote = {
|
antidote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
useFriendlyNames = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
"zap-zsh/supercharge"
|
"zap-zsh/supercharge"
|
||||||
"zap-zsh/completions"
|
"zap-zsh/completions"
|
||||||
|
@ -100,6 +101,20 @@
|
||||||
# Let home manager install and manage itself
|
# Let home manager install and manage itself
|
||||||
programs.home-manager.enable = true;
|
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
|
# DO NOT CHANGE
|
||||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue