re-split direcories #1
3 changed files with 43 additions and 44 deletions
10
flake.nix
10
flake.nix
|
@ -145,12 +145,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules =
|
||||||
lix = (import ./nixosModules/lix.nix);
|
(builtins.mapAttrs (m: _: import ./nixosModules/${m}) (builtins.readDir ./nixosModules))
|
||||||
kdeconnect = (import ./nixosModules/kdeconnect.nix);
|
// {
|
||||||
globalinstalls = (import ./nixosModules/globalinstalls.nix);
|
|
||||||
autoupdate = (import ./nixosModules/autoupdate.nix);
|
|
||||||
en-de = (import ./nixosModules/en-de.nix);
|
|
||||||
niri = {
|
niri = {
|
||||||
imports = [ niri.nixosModules.niri ];
|
imports = [ niri.nixosModules.niri ];
|
||||||
nixpkgs.overlays = [ niri.overlays.niri ];
|
nixpkgs.overlays = [ niri.overlays.niri ];
|
||||||
|
@ -177,6 +174,7 @@
|
||||||
lix
|
lix
|
||||||
globalinstalls
|
globalinstalls
|
||||||
autoupdate
|
autoupdate
|
||||||
|
openssh
|
||||||
./modules/networking.nix
|
./modules/networking.nix
|
||||||
./modules/nixpkgs.nix
|
./modules/nixpkgs.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,15 +1,5 @@
|
||||||
_: {
|
_: {
|
||||||
config = {
|
config = {
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
settings = {
|
|
||||||
PermitRootLogin = "without-password";
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
KbdInteractiveAuthentication = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = 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