mob next [ci-skip] [ci skip] [skip ci]
lastFile:machines/anser/configuration.nix
This commit is contained in:
Generated
+21
@@ -667,6 +667,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1784723954,
|
||||||
|
"narHash": "sha256-1CfD8ZUjCkTgjsneLZ/lxCHhgDfqxxE7/GX0MmsgiqA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "a017f5b72210026af5b3ac5949f08d94380a6fbd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712920918,
|
"lastModified": 1712920918,
|
||||||
@@ -793,6 +813,7 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
"liminix": "liminix",
|
"liminix": "liminix",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"plasma-manager": "plasma-manager",
|
"plasma-manager": "plasma-manager",
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
|||||||
@@ -45,6 +45,10 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.devshell.follows = "devshell";
|
inputs.devshell.follows = "devshell";
|
||||||
};
|
};
|
||||||
|
nixos-hardware = {
|
||||||
|
url = "github:NixOS/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
nixpkgs.hostPlatform = {
|
nixpkgs.hostPlatform = {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
@@ -7,28 +11,4 @@
|
|||||||
clan.core.settings.name = "anser";
|
clan.core.settings.name = "anser";
|
||||||
clan.core.settings.machine.description = "";
|
clan.core.settings.machine.description = "";
|
||||||
|
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"console=ttyS2,1500000n8"
|
|
||||||
"loglevel=4"
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.deviceTree = {
|
|
||||||
enable = true;
|
|
||||||
filter = "*rk3566-radxa-zero-3*.dtb";
|
|
||||||
overlays = [
|
|
||||||
{
|
|
||||||
name = "disable-scmi";
|
|
||||||
dtsFile = ./disable-scmi.dts;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "enable-uart3";
|
|
||||||
dtsFile = ./enable-uart3.dts;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
/dts-v1/;
|
|
||||||
/plugin/;
|
|
||||||
|
|
||||||
/ {
|
|
||||||
compatible = "radxa,zero-3w", "rockchip,rk3566";
|
|
||||||
|
|
||||||
fragment@0 {
|
|
||||||
target-path = "/firmware/scmi";
|
|
||||||
__overlay__ {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fragment@1 {
|
|
||||||
target-path = "/gpu@fde60000";
|
|
||||||
__overlay__ {
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
disko = {
|
||||||
|
imageBuilder = {
|
||||||
|
# Avoid double emulation to significantly speed up image building process.
|
||||||
|
# Update the system according to your host system.
|
||||||
|
# See https://github.com/nix-community/disko/issues/856
|
||||||
|
qemu =
|
||||||
|
inputs.nixpkgs.legacyPackages.x86_64-linux.qemu
|
||||||
|
+ "/bin/qemu-system-aarch64 -M virt -cpu cortex-a57";
|
||||||
|
};
|
||||||
|
# Default image size is 2G for a small basic CLI system.
|
||||||
|
# devices.disk.main.imageSize = "2G";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
/dts-v1/;
|
|
||||||
/plugin/;
|
|
||||||
|
|
||||||
/ {
|
|
||||||
compatible = "radxa,zero-3w", "rockchip,rk3566";
|
|
||||||
|
|
||||||
/* Enable UART3 on pins 3/5 (GPIO1_A0/A1) */
|
|
||||||
fragment@0 {
|
|
||||||
target = <&uart3>;
|
|
||||||
__overlay__ {
|
|
||||||
status = "okay";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&uart3m0_xfer>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user