fix(cicd): ssh option names, inherit (nixpkgs) lib
This commit is contained in:
parent
0879b52630
commit
6a0898753d
2 changed files with 9 additions and 7 deletions
|
@ -74,9 +74,10 @@
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
helpers = (import ./lib/helpers.nix) { lib = nixpkgs.lib; };
|
inherit (nixpkgs) lib;
|
||||||
|
helpers = (import ./lib/helpers.nix) { inherit lib; };
|
||||||
inherit (helpers) recurseDir hasFiles hasDirectories;
|
inherit (helpers) recurseDir hasFiles hasDirectories;
|
||||||
forEachSystem = nixpkgs.lib.genAttrs [
|
forEachSystem = lib.genAttrs [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
"i686-linux"
|
"i686-linux"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
@ -93,7 +94,6 @@
|
||||||
|
|
||||||
# Apps (`nix run`)
|
# Apps (`nix run`)
|
||||||
apps = {};
|
apps = {};
|
||||||
apps.default = null;
|
|
||||||
|
|
||||||
# Dev Shells (`nix develop`)
|
# Dev Shells (`nix develop`)
|
||||||
devShells = forEachPkgs (pkgs:
|
devShells = forEachPkgs (pkgs:
|
||||||
|
|
|
@ -88,10 +88,12 @@
|
||||||
# Feel free to remove if you don't need it.
|
# Feel free to remove if you don't need it.
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
# Forbid root login through SSH.
|
# Forbid root login through SSH.
|
||||||
permitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
# Use keys only. Remove if you want to SSH using password (not recommended)
|
# Use keys only. Remove if you want to SSH using password (not recommended)
|
||||||
passwordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
|
Loading…
Reference in a new issue