nixfiles/hosts/raspberry/raspberry.nix

35 lines
816 B
Nix
Raw Normal View History

{ tree, modulesPath, config, pkgs, lib, ... }:
{
imports = with tree; [
users.root
users.chaoticryptidz
2022-01-04 12:31:29 +00:00
profiles.tailscale
profiles.sshd
#hosts.raspberry.services.router
2022-01-04 12:31:29 +00:00
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
];
2022-01-04 12:31:29 +00:00
home-manager.users.root = { imports = with tree; [ home.base home.dev.small ]; };
home-manager.users.chaoticryptidz = { imports = with tree; [ home.base home.dev.small ]; };
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "raspberry";
time.timeZone = "Europe/London";
networking.useDHCP = true;
networking.wireless = {
2022-01-04 12:31:29 +00:00
enable = false;
environmentFile = "/secrets/wifi-env";
networks.BT-JGA898.psk = "@PSK_HOME@";
};
sdImage.compressImage = lib.mkForce false;
system.stateVersion = "21.11";
}