mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor: get rid of config folder
This commit is contained in:
parent
2606e1d874
commit
cb3ae5f434
254 changed files with 79 additions and 101 deletions
10
profiles/cross/aarch64.nix
Normal file
10
profiles/cross/aarch64.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, config, lib, ... }: with lib; {
|
||||
boot.binfmt = {
|
||||
emulatedSystems = [ "aarch64-linux" ];
|
||||
/*
|
||||
registrations.aarch64-linux = {
|
||||
interpreter = mkForce "${pkgs.qemu-vfio or pkgs.qemu}/bin/qemu-aarch64";
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
||||
6
profiles/cross/arm-common.nix
Normal file
6
profiles/cross/arm-common.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }: {
|
||||
nix.settings = {
|
||||
substituters = [ "https://thefloweringash-armv7.cachix.org/" ];
|
||||
trusted-public-keys = [ "thefloweringash-armv7.cachix.org-1:v+5yzBD2odFKeXbmC+OPWVqx4WVoIVO6UXgnSAWFtso=" ];
|
||||
};
|
||||
}
|
||||
9
profiles/cross/armv6.nix
Normal file
9
profiles/cross/armv6.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }: {
|
||||
nix.settings = {
|
||||
substituters = [ "https://arm.cachix.org/" ];
|
||||
trusted-public-keys = [ "arm.cachix.org-1:5BZ2kjoL1q6nWhlnrbAl+G7ThY7+HaBRD9PZzqZkbnM=" ];
|
||||
};
|
||||
boot.binfmt = {
|
||||
emulatedSystems = [ "armv6l-linux" ];
|
||||
};
|
||||
}
|
||||
9
profiles/cross/armv7.nix
Normal file
9
profiles/cross/armv7.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }: {
|
||||
nix.settings = {
|
||||
substituters = [ "https://arm.cachix.org/" ];
|
||||
trusted-public-keys = [ "arm.cachix.org-1:5BZ2kjoL1q6nWhlnrbAl+G7ThY7+HaBRD9PZzqZkbnM=" ];
|
||||
};
|
||||
boot.binfmt = {
|
||||
emulatedSystems = [ "armv7l-linux" ];
|
||||
};
|
||||
}
|
||||
35
profiles/cross/default.nix
Normal file
35
profiles/cross/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, tree, ... }: with lib; let
|
||||
profiles = tree.prev;
|
||||
appendedProfiles = with profiles; {
|
||||
aarch64 = {
|
||||
deploy.profile.cross = {
|
||||
enable = true;
|
||||
aarch64 = true;
|
||||
};
|
||||
imports = [
|
||||
aarch64
|
||||
];
|
||||
};
|
||||
armv7l = {
|
||||
deploy.profile.cross = {
|
||||
enable = true;
|
||||
armv7l = true;
|
||||
};
|
||||
imports = [
|
||||
arm-common
|
||||
armv7
|
||||
];
|
||||
};
|
||||
armv6l = {
|
||||
deploy.profile.cross = {
|
||||
enable = true;
|
||||
armv6l = true;
|
||||
};
|
||||
imports = [
|
||||
arm-common
|
||||
armv6
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
profiles // appendedProfiles
|
||||
Loading…
Add table
Add a link
Reference in a new issue