mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-23 18:01:25 +01:00
fix: suzu - orangepi5
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ config, ...}:
|
||||
{
|
||||
nix.extraOptions = ''
|
||||
!include ${config.age.secrets.nix-access-tokens.path}
|
||||
'';
|
||||
|
||||
# security with polkit
|
||||
services.power-profiles-daemon = {
|
||||
enable = true;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user