45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
{
|
||
flake,
|
||
pkgs,
|
||
builtins,
|
||
config,
|
||
lib,
|
||
...
|
||
}: {
|
||
imports = [
|
||
./home-controller.nix
|
||
./home-assistant.nix
|
||
];
|
||
|
||
pub-solar.server.enable = true;
|
||
hardware.ksm.enable = true;
|
||
boot.loader.timeout = lib.mkForce 0;
|
||
|
||
boot.loader.generic-extlinux-compatible.enable = lib.mkForce false;
|
||
|
||
boot.loader.grub = {
|
||
enable = lib.mkForce true;
|
||
efiSupport = true;
|
||
efiInstallAsRemovable = true;
|
||
device = "nodev";
|
||
|
||
extraInstallCommands = ''
|
||
cp -r ${flake.inputs.nixpkgs-hensoko.packages.aarch64-linux.raspberrypi4_firmware_uefi}/share/raspberrypi4-firmware-uefi/* /boot/
|
||
'';
|
||
};
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Berlin";
|
||
|
||
networking.useDHCP = false;
|
||
networking.interfaces.enabcm6e4ei0.useDHCP = true;
|
||
networking.networkmanager.enable = lib.mkForce false;
|
||
|
||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||
|
||
system.stateVersion = "22.11"; # Did you read the comment?
|
||
}
|