maybe riscv64 installer ?

This commit is contained in:
Bit Borealis 2024-03-27 17:06:59 -04:00
parent a8c42e5de8
commit dd9b55d22c
No known key found for this signature in database
GPG Key ID: 2D816A2DCA6E5649
4 changed files with 56 additions and 3 deletions

View File

@ -128,6 +128,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1711352745,
"narHash": "sha256-luvqik+i3HTvCbXQZgB6uggvEcxI9uae0nmrgtXJ17U=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "9a763a7acc4cfbb8603bb0231fec3eda864f81c0",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1711333969,
@ -150,6 +165,7 @@
"flake-utils-plus": "flake-utils-plus",
"home-manager": "home-manager",
"nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"snowfall-lib": "snowfall-lib"
}

View File

@ -3,7 +3,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-generators = {
url = "github:nix-community/nixos-generators";
@ -42,7 +42,7 @@
systems.hosts.magrathea.modules = with inputs; [
nixos-hardware.nixosModules.starfive-visionfive-2
]
];
templates.shim.description = "/etc/nixos shim for geekygay nixconf";

View File

@ -0,0 +1,34 @@
{
config,
pkgs,
inputs,
modulesPath,
lib,
...
}:
{
imports = [
"${inputs.nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
];
# Localization
time.timeZone = "Etc/UTC";
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitEmptyPasswords = false;
};
};
programs.mosh.enable = true;
# Shared username is nixos.
# SSH allows pubkey auth only.
# Sudo is passwordless once logged in.
users.users.nixos = {
openssh.authorizedKeys.keyFiles = (map
(name: "${inputs.self}/pubkeys/${name}.keys") config.gg.users.admins);
};
}

View File

@ -1 +1,4 @@
{}:{}
{ config, ... }:
{
}