maybe riscv64 installer ?
This commit is contained in:
parent
a8c42e5de8
commit
dd9b55d22c
16
flake.lock
16
flake.lock
|
@ -128,6 +128,21 @@
|
||||||
"type": "github"
|
"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": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711333969,
|
"lastModified": 1711333969,
|
||||||
|
@ -150,6 +165,7 @@
|
||||||
"flake-utils-plus": "flake-utils-plus",
|
"flake-utils-plus": "flake-utils-plus",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"snowfall-lib": "snowfall-lib"
|
"snowfall-lib": "snowfall-lib"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||||
|
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
systems.hosts.magrathea.modules = with inputs; [
|
systems.hosts.magrathea.modules = with inputs; [
|
||||||
nixos-hardware.nixosModules.starfive-visionfive-2
|
nixos-hardware.nixosModules.starfive-visionfive-2
|
||||||
]
|
];
|
||||||
|
|
||||||
templates.shim.description = "/etc/nixos shim for geekygay nixconf";
|
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