dotfiles/hosts/staff/default.nix

44 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-02-18 15:24:54 +00:00
# The Staff
# ISO configuration for my USB drive
2023-02-26 15:11:33 +00:00
{ inputs, system, overlays, ... }:
2023-02-18 15:24:54 +00:00
inputs.nixos-generators.nixosGenerate {
2023-02-18 15:24:54 +00:00
inherit system;
format = "install-iso";
modules = [{
2023-02-26 15:11:33 +00:00
nixpkgs.overlays = overlays;
2023-02-18 15:24:54 +00:00
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 =
2023-02-26 15:11:33 +00:00
let pkgs = import inputs.nixpkgs { inherit system overlays; };
in with pkgs; [
2023-02-25 14:22:16 +00:00
git
vim
wget
curl
2023-02-26 15:11:33 +00:00
(import ../../modules/common/neovim/package {
inherit pkgs;
colors = (import ../../colorscheme/gruvbox).dark;
2023-02-26 15:11:33 +00:00
})
2023-02-25 14:22:16 +00:00
];
2023-02-26 15:11:33 +00:00
nix.extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
2023-02-18 15:24:54 +00:00
}];
}