mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-11 07:02:41 +02:00
fix: suzu - orangepi5
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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"];
|
||||||
|
|||||||
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user