46 lines
1,007 B
Nix
46 lines
1,007 B
Nix
{ tree, modulesPath, config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = with tree; [
|
|
users.root
|
|
users.chaoticryptidz
|
|
|
|
profiles.base
|
|
profiles.tailscale
|
|
profiles.sshd
|
|
|
|
# make bluetooth work on pi
|
|
hosts.raspberry.services.btattach
|
|
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.chaoticryptidz = {
|
|
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 = false;
|
|
environmentFile = "/secrets/wifi-env";
|
|
networks.BT-JGA898.psk = "@PSK_HOME@";
|
|
};
|
|
|
|
sdImage.compressImage = lib.mkForce false;
|
|
|
|
system.stateVersion = "21.11";
|
|
}
|
|
|