nixos-config/hosts/pancake/default.nix

71 lines
1.5 KiB
Nix
Raw Normal View History

2025-01-23 16:39:20 -05:00
{
modulesPath,
pkgs,
2025-01-23 18:30:37 -05:00
lib,
inputs,
2025-01-23 16:39:20 -05:00
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
../common.nix
2025-01-24 03:20:56 -05:00
# ./hardware-configuration.nix
2025-01-23 18:06:38 -05:00
../zsh.nix
2025-01-23 16:39:20 -05:00
];
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdhAQYy0+vS+QmyCd0MAbqbgzyMGcsuuFyf6kg2yKge yt@ytlinux"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyn2+OoRN4nExti+vFQ1NHEZip0slAoCH9C5/FzvgZD yt@ytnix"
];
system.stateVersion = "24.05";
environment.systemPackages = with pkgs; [
curl
git
];
# network stuff
networking.hostName = "pancake";
networking.firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
];
allowedUDPPorts = [
443
];
};
2025-01-23 17:50:38 -05:00
networking.wireless.enable = true;
networking.wireless.networks = {
2025-01-23 16:39:20 -05:00
"36 Halsey" = {
psk = "Canada2022";
};
"cy" = {
psk = "12345678";
};
};
hardware.enableRedistributableFirmware = true;
users.users.yt.extraGroups = [
"wheel"
];
security.sudo.enable = true;
security.sudo.wheelNeedsPassword = false;
2025-01-23 17:50:38 -05:00
users.users.root.initialHashedPassword = "";
users.users.yt.initialHashedPassword = "";
2025-01-23 18:30:37 -05:00
# remove this after https://github.com/NixOS/nixpkgs/pull/375165 lands on unstable
2025-01-24 03:20:56 -05:00
# boot.kernelPackages = lib.mkForce inputs.nixpkgs-rpi.legacyPackages.aarch64-linux.linuxKernel.packages.linux_rpi3;
2025-01-23 16:39:20 -05:00
}