nixos-config/machines/raspite/configuration.nix

51 lines
989 B
Nix
Raw Permalink Normal View History

2024-08-25 09:45:58 +00:00
{
config,
lib,
pkgs,
...
}:
2023-04-16 05:18:23 +00:00
{
2024-08-25 09:45:58 +00:00
imports = [ ./hass.nix ];
2024-10-20 07:14:01 +00:00
commonSettings = {
nix.enableMirrors = true;
auth.enable = true;
};
2023-04-16 05:18:23 +00:00
nixpkgs.overlays = [
# Workaround https://github.com/NixOS/nixpkgs/issues/126755#issuecomment-869149243
(final: super: {
2024-08-25 09:45:58 +00:00
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
2023-04-16 05:18:23 +00:00
})
];
2023-04-23 03:06:57 +00:00
environment.systemPackages = with pkgs; [
git
2024-06-11 10:24:22 +00:00
libraspberrypi
raspberrypi-eeprom
2023-04-23 03:06:57 +00:00
];
2024-06-11 10:24:22 +00:00
system.stateVersion = "24.05";
2024-08-25 09:45:58 +00:00
2023-04-16 05:18:23 +00:00
networking = {
2023-04-23 03:06:57 +00:00
hostName = "raspite";
2023-04-16 05:18:23 +00:00
useDHCP = false;
interfaces.eth0.useDHCP = true;
};
2024-06-11 10:24:22 +00:00
# boot.kernelPackages = pkgs.linuxPackages_stable;
2023-05-27 01:39:16 +00:00
2024-06-11 10:24:22 +00:00
# fileSystems."/".fsType = lib.mkForce "btrfs";
boot.supportedFilesystems.zfs = lib.mkForce false;
2024-10-20 07:14:01 +00:00
services.dae.enable = true;
2024-06-11 10:24:22 +00:00
services.dae.configFile = "/var/lib/dae/config.dae";
2024-10-20 07:14:01 +00:00
services.tailscale = {
enable = true;
permitCertUid = config.services.caddy.user;
openFirewall = true;
};
2023-11-15 07:50:26 +00:00
}