Skip to content

Commit 1e3e314

Browse files
committed
feat(nixos): enable ssh service with security enhancements
The commit enables the SSH service on the ryu NixOS configuration with enhanced security settings including disabling password authentication and prohibiting root login. It also adds several font packages to the home configuration. Changes: - Enabled SSH service in ryu configuration with security settings - Added font packages to home programs - Moved SSH service definition to its own module file - Removed SSH enablement from main configuration - Updated service imports to include openssh module
1 parent 96c927c commit 1e3e314

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

home/programs/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@
9090
nerd-fonts.fira-code
9191
nerd-fonts.hasklug
9292
nerd-fonts.symbols-only
93+
noto-fonts
94+
noto-fonts-cjk-sans
95+
noto-fonts-color-emoji
96+
liberation_ttf
97+
fira-code
98+
fira-code-symbols
99+
mplus-outline-fonts.githubRelease
93100
]
94101
++ lib.optionals device.isLinux []
95102
++ lib.optionals device.isDarwin [];

nixos/ryu/configuration.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@
169169
};
170170
};
171171

172-
services.openssh.enable = true;
173-
174172
networking = {
175173
interfaces.eno1.wakeOnLan = {
176174
policy = ["magic"];

nixos/ryu/services/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
./handoff.nix
2323
./gstreamer.nix
2424
./dualsense.nix
25+
./openssh.nix
2526
];
2627
}

nixos/ryu/services/openssh.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{...}: {
2+
services.openssh = {
3+
enable = true;
4+
settings.PasswordAuthentication = false;
5+
settings.PermitRootLogin = "prohibit-password";
6+
};
7+
}

0 commit comments

Comments
 (0)