fix: suzu - orangepi5

This commit is contained in:
Ryan Yin
2023-12-22 01:49:28 +08:00
parent 8ac24e4f13
commit d6f6154a22
4 changed files with 13 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
username,
nixos-rk3588,
...
} @ args:
}:
#############################################################
#
# Aquamarine - A NixOS VM running on Proxmox
@@ -11,9 +11,8 @@
#############################################################
{
imports = [
# import the rk3588 module, which contains the configuration for bootloader/kernel/firmware
(nixos-rk3588 + "/modules/boards/orangepi5.nix")
nixos-rk3588.nixosModules.orangepi5
];
users.users.root.openssh.authorizedKeys.keys = config.users.users."${username}".openssh.authorizedKeys.keys;

View File

@@ -4,9 +4,6 @@
username,
...
}: {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
nix.settings = {
# enable flakes globally
experimental-features = ["nix-command" "flakes"];

View File

@@ -1,4 +1,9 @@
{ config, ...}:
{
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
# security with polkit
services.power-profiles-daemon = {
enable = true;

View File

@@ -29,11 +29,12 @@ with allSystemAttrs; let
# aarch64 related
# using the same nixpkgs as nixos-rk3588 to utilize the cross-compilation cache.
rk3588_pkgs = import nixos-rk3588.inputs.nixpkgs {system = x64_system;};
rk3588_specialArgs =
{
inherit username userfullname useremail;
}
// nixos-rk3588.inputs;
rk3588_specialArgs = {
inherit username userfullname useremail;
inherit (nixos-rk3588.inputs) nixpkgs;
# Provide rk3588 inputs as special argument
rk3588 = nixos-rk3588.inputs;
};
rk3588_base_args = {
inherit home-manager;
inherit (nixos-rk3588.inputs) nixpkgs; # or nixpkgs-unstable
@@ -47,7 +48,6 @@ in {
nixpkgs = import nixpkgs {system = x64_system;};
specialArgs = allSystemSpecialArgs.x64_system;
nodeSpecialArgs = {
# riscv64 SBCs
nozomi = lpi4a_specialArgs;