This commit is contained in:
parent
ad516fd7e0
commit
ce1fa163fd
9 changed files with 16 additions and 28 deletions
|
@ -2,7 +2,6 @@
|
|||
services = {
|
||||
auto-cpufreq.enable = true;
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
power-profiles-daemon.enable = false;
|
||||
thermald.enable = true;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
];
|
||||
|
||||
features = {
|
||||
core.openssh.enable = true;
|
||||
cli.podman.enable = true;
|
||||
desktop.dconf.enable = true;
|
||||
};
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
};
|
||||
|
||||
core = {
|
||||
openssh.enable = true;
|
||||
pipewire.enable = true;
|
||||
zram.enable = true;
|
||||
};
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
blueman.enable = true;
|
||||
|
||||
gvfs.enable = true;
|
||||
openssh.enable = true;
|
||||
power-profiles-daemon.enable = false;
|
||||
printing.enable = true;
|
||||
pulseaudio.enable = false;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
./media
|
||||
./nix-index.nix
|
||||
./nixpad
|
||||
./openssh.nix
|
||||
./pipewire.nix
|
||||
./podman.nix
|
||||
./st.nix
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.openssh;
|
||||
in
|
||||
{
|
||||
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
openFirewall = lib.mkForce true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = lib.mkForce "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
modules2/openssh/enable.nix
Normal file
3
modules2/openssh/enable.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
flake.modules.nixos.pc.services.openssh.enable = true;
|
||||
}
|
5
modules2/openssh/firewall.nix
Normal file
5
modules2/openssh/firewall.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.pc.services.openssh.openFirewall = lib.mkForce true;
|
||||
}
|
8
modules2/openssh/settings.nix
Normal file
8
modules2/openssh/settings.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.pc.services.openssh.settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = lib.mkForce "no";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue