nixfiles/hosts/raspberry/raspberry.nix
2022-01-29 21:44:38 +00:00

54 lines
1.1 KiB
Nix

{ tree, modulesPath, config, pkgs, lib, ... }:
{
imports = with tree; [
users.root
users.chaos
profiles.base
profiles.tailscale
profiles.sshd
hosts.raspberry.services.music-friend
profiles.connectivity.bluetooth
profiles.connectivity.ios
./boot.nix
(modulesPath + "/installer/sd-card/sd-image.nix")
];
home-manager.users.root = {
imports = with tree; [ home.base home.dev.small ];
};
home-manager.users.chaos = {
imports = with tree; [ home.base home.dev.small ];
};
boot.supportedFilesystems = lib.mkForce [ "vfat" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "raspberry";
time.timeZone = "Europe/London";
networking.useDHCP = true;
networking.wireless = {
enable = true;
userControlled.enable = true;
environmentFile = "/secrets/wifi-env";
networks.BT-JGA898 = {
priority = 10;
psk = "@PSK_HOME@";
};
networks."Kitteh iPhone" = {
priority = 100;
psk = "@PSK_HOTSPOT@";
};
};
sdImage.compressImage = lib.mkForce false;
system.stateVersion = "21.11";
}