dotfiles/generators/staff/default.nix

36 lines
789 B
Nix
Raw Normal View History

2023-02-18 15:24:54 +00:00
# The Staff
# ISO configuration for my USB drive
2023-02-21 01:45:56 +00:00
{ inputs, system, ... }:
2023-02-18 15:24:54 +00:00
with inputs;
nixos-generators.nixosGenerate {
inherit system;
format = "install-iso";
modules = [{
networking.hostName = "staff";
users.extraUsers.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"
];
2023-02-25 14:22:16 +00:00
services.openssh = {
enable = true;
ports = [ 22 ];
allowSFTP = true;
settings = {
GatewayPorts = "no";
X11Forwarding = false;
PasswordAuthentication = false;
PermitRootLogin = "yes";
};
};
environment.systemPackages =
with (import inputs.nixpkgs { inherit system; }); [
git
vim
wget
curl
];
2023-02-18 15:24:54 +00:00
}];
}