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
+2 -3
View File
@@ -3,7 +3,7 @@
username, username,
nixos-rk3588, nixos-rk3588,
... ...
} @ args: }:
############################################################# #############################################################
# #
# Aquamarine - A NixOS VM running on Proxmox # Aquamarine - A NixOS VM running on Proxmox
@@ -11,9 +11,8 @@
############################################################# #############################################################
{ {
imports = [ imports = [
# import the rk3588 module, which contains the configuration for bootloader/kernel/firmware # 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; users.users.root.openssh.authorizedKeys.keys = config.users.users."${username}".openssh.authorizedKeys.keys;
-3
View File
@@ -4,9 +4,6 @@
username, username,
... ...
}: { }: {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
nix.settings = { nix.settings = {
# enable flakes globally # enable flakes globally
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
+5
View File
@@ -1,4 +1,9 @@
{ config, ...}:
{ {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
# security with polkit # security with polkit
services.power-profiles-daemon = { services.power-profiles-daemon = {
enable = true; enable = true;
+6 -6
View File
@@ -29,11 +29,12 @@ with allSystemAttrs; let
# aarch64 related # aarch64 related
# using the same nixpkgs as nixos-rk3588 to utilize the cross-compilation cache. # using the same nixpkgs as nixos-rk3588 to utilize the cross-compilation cache.
rk3588_pkgs = import nixos-rk3588.inputs.nixpkgs {system = x64_system;}; rk3588_pkgs = import nixos-rk3588.inputs.nixpkgs {system = x64_system;};
rk3588_specialArgs = rk3588_specialArgs = {
{ inherit username userfullname useremail;
inherit username userfullname useremail; inherit (nixos-rk3588.inputs) nixpkgs;
} # Provide rk3588 inputs as special argument
// nixos-rk3588.inputs; rk3588 = nixos-rk3588.inputs;
};
rk3588_base_args = { rk3588_base_args = {
inherit home-manager; inherit home-manager;
inherit (nixos-rk3588.inputs) nixpkgs; # or nixpkgs-unstable inherit (nixos-rk3588.inputs) nixpkgs; # or nixpkgs-unstable
@@ -47,7 +48,6 @@ in {
nixpkgs = import nixpkgs {system = x64_system;}; nixpkgs = import nixpkgs {system = x64_system;};
specialArgs = allSystemSpecialArgs.x64_system; specialArgs = allSystemSpecialArgs.x64_system;
nodeSpecialArgs = { nodeSpecialArgs = {
# riscv64 SBCs # riscv64 SBCs
nozomi = lpi4a_specialArgs; nozomi = lpi4a_specialArgs;