sbc: refactor config
This commit is contained in:
parent
fcd3fd6084
commit
4dcd919ba8
2 changed files with 50 additions and 12 deletions
|
@ -1,7 +1,44 @@
|
||||||
{
|
{
|
||||||
imports = [./hardware-configuration.nix];
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixos-hardware.nixosModules.raspberry-pi-3
|
||||||
|
|
||||||
custom.hostname = "mypi3";
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# https://wiki.nixos.org/wiki/NixOS_on_ARM/Raspberry_Pi_3
|
||||||
|
custom = {
|
||||||
|
hostname = "mypi3";
|
||||||
|
|
||||||
|
services = {
|
||||||
|
borgmatic.repositories = [
|
||||||
|
{
|
||||||
|
path = "ssh://h1m9k594@h1m9k594.repo.borgbase.com/./repo";
|
||||||
|
label = "mypi3";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
boot = {
|
||||||
|
#// kernel = pkgs.linuxPackages_rpi3;
|
||||||
|
u-boot = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
# https://wiki.nixos.org/wiki/NixOS_on_ARM/Raspberry_Pi_3#HDMI_output_issue_with_kernel_~6.1_(NixOS_23.05_or_NixOS_unstable)
|
||||||
|
kernelParams = ["cma=320M"];
|
||||||
|
|
||||||
|
# https://github.com/raspberrypi/linux/issues/6049
|
||||||
|
extraModprobeConfig = ''
|
||||||
|
options brcmfmac feature_disable=0x282000 roamoff=1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
custom = {
|
custom = {
|
||||||
profile = "sbc";
|
profile = "sbc";
|
||||||
|
desktop = "kodi";
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fastfetch.greet = true;
|
fastfetch.greet = true;
|
||||||
ghostty.minimal = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
|
@ -14,18 +14,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
pulseaudio = false;
|
||||||
|
system = true;
|
||||||
|
};
|
||||||
|
|
||||||
#// tailscale.cert = true;
|
#// tailscale.cert = true;
|
||||||
|
|
||||||
borgmatic = {
|
borgmatic = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sources = [config.custom.containers.directory];
|
sources = [config.custom.containers.directory];
|
||||||
|
|
||||||
repositories = [
|
|
||||||
{
|
|
||||||
path = "ssh://h1m9k594@h1m9k594.repo.borgbase.com/./repo";
|
|
||||||
label = "mypi3";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# netdata = {
|
# netdata = {
|
||||||
|
@ -35,8 +34,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
boot.u-boot = true;
|
networking = {
|
||||||
networking.wifi = true;
|
networkmanager = true;
|
||||||
|
wifi = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue