maybe riscv64 installer ?
This commit is contained in:
parent
a8c42e5de8
commit
dd9b55d22c
16
flake.lock
16
flake.lock
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
}
|
|
@ -1 +1,4 @@
|
|||
{}:{}
|
||||
{ config, ... }:
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue