mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 02:15:38 +00:00
2337db0bda
also break out packages into individual systems
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
# The Staff
|
|
# ISO configuration for my USB drive
|
|
|
|
{ inputs, system, overlays, ... }:
|
|
|
|
with inputs;
|
|
|
|
nixos-generators.nixosGenerate {
|
|
inherit system;
|
|
format = "install-iso";
|
|
modules = [{
|
|
nixpkgs.overlays = overlays;
|
|
networking.hostName = "staff";
|
|
users.extraUsers.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"
|
|
];
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 22 ];
|
|
allowSFTP = true;
|
|
settings = {
|
|
GatewayPorts = "no";
|
|
X11Forwarding = false;
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "yes";
|
|
};
|
|
};
|
|
environment.systemPackages =
|
|
let pkgs = import inputs.nixpkgs { inherit system overlays; };
|
|
in with pkgs; [
|
|
git
|
|
vim
|
|
wget
|
|
curl
|
|
(import ../../modules/common/neovim/package {
|
|
inherit pkgs;
|
|
colors = (import ../../colorscheme/gruvbox).dark;
|
|
})
|
|
];
|
|
nix.extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
warn-dirty = false
|
|
'';
|
|
}];
|
|
}
|