nixfiles/hosts/raspberry/raspberry.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ tree, modulesPath, config, pkgs, lib, ... }:
{
imports = with tree; [
users.root
users.chaos
2022-01-04 12:31:29 +00:00
profiles.base
profiles.tailscale
profiles.sshd
2022-01-29 18:06:26 +00:00
hosts.raspberry.services.music-friend
2022-01-25 14:45:05 +00:00
profiles.connectivity.bluetooth
profiles.connectivity.ios
2022-01-24 21:18:03 +00:00
./boot.nix
(modulesPath + "/installer/sd-card/sd-image.nix")
2022-01-04 12:31:29 +00:00
];
2022-01-16 11:22:44 +00:00
home-manager.users.root = {
imports = with tree; [ home.base home.dev.small ];
};
home-manager.users.chaos = {
2022-01-16 11:22:44 +00:00
imports = with tree; [ home.base home.dev.small ];
};
2022-01-24 21:18:03 +00:00
boot.supportedFilesystems = lib.mkForce [ "vfat" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
2022-01-24 16:50:53 +00:00
networking.hostName = "raspberry";
time.timeZone = "Europe/London";
networking.useDHCP = true;
networking.wireless = {
2022-01-25 14:45:05 +00:00
enable = true;
2022-01-26 23:05:24 +00:00
userControlled.enable = true;
environmentFile = "/secrets/wifi-env";
2022-01-26 23:05:24 +00:00
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";
}