Files
dotfiles/nixos/tsuba/tsuba.nix
uttarayan21 24fab1402b
Some checks are pending
Flake checker / Build Nix targets (push) Waiting to run
feat(ssh): update hostnames and comment out mirai block from ssh config
2025-12-06 05:53:30 +05:30

39 lines
826 B
Nix

{
config,
pkgs,
device,
lib,
...
}: {
networking.hostName = device.name;
networking.firewall.logRefusedConnections = lib.mkDefault false;
networking.useNetworkd = true;
systemd.services.NetworkManager-wait-online.enable = false;
systemd.network.wait-online.enable = false;
boot.loader.raspberryPi.bootloader = "kernel";
fileSystems."/home".neededForBoot = true;
system.nixos.tags = let
cfg = config.boot.loader.raspberryPi;
in [
"raspberry-pi-${cfg.variant}"
cfg.bootloader
config.boot.kernelPackages.kernel.version
];
# hardware.raspberry-pi.config = {
# all = {
# "dtparam" = [
# "pciex1"
# "pciex1_gen=2"
# ];
# };
# };
hardware.raspberry-pi.extra-config = ''
[all]
dtparam=pciex1_gen=2
os_prefix=nixos/default/
'';
}