Changed option namespace for better compatibility
This commit is contained in:
parent
fe8045ee55
commit
8b25f46384
26 changed files with 407 additions and 232 deletions
|
|
@ -5,10 +5,10 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.btrfsAutoscrub;
|
||||
cfg = config.my.system.btrfsAutoscrub;
|
||||
in
|
||||
{
|
||||
options.btrfsAutoscrub = {
|
||||
options.my.system.btrfsAutoscrub = {
|
||||
enable = lib.mkEnableOption "Enable BTRFS Auto Scrub module";
|
||||
|
||||
interval = lib.mkOption {
|
||||
|
|
|
|||
21
modules/systems/ssh.nix
Normal file
21
modules/systems/ssh.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.systems.ssh;
|
||||
in
|
||||
{
|
||||
options.my.systems.ssh = {
|
||||
enable = lib.mkEnableOption "Enable SSH Server";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
# require public key authentication for better security
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
settings.PermitRootLogin = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue