mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
refactor: restructure project to remove profiles, users, ...
This commit is contained in:
parent
cb3ae5f434
commit
53655a05fc
177 changed files with 544 additions and 2877 deletions
10
nixos/cross/aarch64.nix
Normal file
10
nixos/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
nixos/cross/arm-common.nix
Normal file
6
nixos/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
nixos/cross/armv6.nix
Normal file
9
nixos/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
nixos/cross/armv7.nix
Normal file
9
nixos/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" ];
|
||||
};
|
||||
}
|
||||
23
nixos/cross/default.nix
Normal file
23
nixos/cross/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, tree, ... }: with lib; let
|
||||
profiles = tree.prev;
|
||||
appendedProfiles = with profiles; {
|
||||
aarch64 = {
|
||||
imports = [
|
||||
aarch64
|
||||
];
|
||||
};
|
||||
armv7l = {
|
||||
imports = [
|
||||
arm-common
|
||||
armv7
|
||||
];
|
||||
};
|
||||
armv6l = {
|
||||
imports = [
|
||||
arm-common
|
||||
armv6
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
profiles // appendedProfiles
|
||||
Loading…
Add table
Add a link
Reference in a new issue