mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-20 08:34:28 +01:00
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{
|
||
nixos-rk3588,
|
||
vars_networking,
|
||
...
|
||
}:
|
||
#############################################################
|
||
#
|
||
# Suzu - Orange Pi 5, RK3588s
|
||
#
|
||
#############################################################
|
||
let
|
||
hostName = "suzu"; # Define your hostname.
|
||
hostAddress = vars_networking.hostAddress.${hostName};
|
||
in {
|
||
imports = [
|
||
# import the rk3588 module, which contains the configuration for bootloader/kernel/firmware
|
||
nixos-rk3588.nixosModules.orangepi5
|
||
];
|
||
|
||
networking = {
|
||
inherit hostName;
|
||
inherit (vars_networking) defaultGateway nameservers;
|
||
|
||
networkmanager.enable = false;
|
||
interfaces.end1 = {
|
||
useDHCP = false;
|
||
ipv4.addresses = [hostAddress];
|
||
};
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "23.11"; # Did you read the comment?
|
||
}
|