auto-import nixosModules, openssh mod
This commit is contained in:
parent
26625c6952
commit
a377c8e30b
3 changed files with 43 additions and 44 deletions
10
flake.nix
10
flake.nix
|
@ -145,12 +145,9 @@
|
|||
};
|
||||
};
|
||||
|
||||
nixosModules = {
|
||||
lix = (import ./nixosModules/lix.nix);
|
||||
kdeconnect = (import ./nixosModules/kdeconnect.nix);
|
||||
globalinstalls = (import ./nixosModules/globalinstalls.nix);
|
||||
autoupdate = (import ./nixosModules/autoupdate.nix);
|
||||
en-de = (import ./nixosModules/en-de.nix);
|
||||
nixosModules =
|
||||
(builtins.mapAttrs (m: _: import ./nixosModules/${m}) (builtins.readDir ./nixosModules))
|
||||
// {
|
||||
niri = {
|
||||
imports = [ niri.nixosModules.niri ];
|
||||
nixpkgs.overlays = [ niri.overlays.niri ];
|
||||
|
@ -177,6 +174,7 @@
|
|||
lix
|
||||
globalinstalls
|
||||
autoupdate
|
||||
openssh
|
||||
./modules/networking.nix
|
||||
./modules/nixpkgs.nix
|
||||
];
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
_: {
|
||||
config = {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
PermitRootLogin = "without-password";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
11
nixosModules/openssh.nix
Normal file
11
nixosModules/openssh.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
PermitRootLogin = "without-password";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue