Update from updated-inputs-2025-03-24-02-03
This commit is contained in:
commit
80c3a3c885
6
flake.lock
generated
6
flake.lock
generated
@ -533,11 +533,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742422364,
|
"lastModified": 1742669843,
|
||||||
"narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=",
|
"narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
|
"rev": "1e5b653dff12029333a6546c11e108ede13052eb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
./mercury-vm
|
./mercury-vm
|
||||||
./netcup
|
./netcup
|
||||||
./network-fallback-dhcp
|
./network-fallback-dhcp
|
||||||
|
./serial-console
|
||||||
./wg-clerie
|
./wg-clerie
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ with lib;
|
|||||||
config = mkIf config.profiles.clerie.mercury-vm.enable {
|
config = mkIf config.profiles.clerie.mercury-vm.enable {
|
||||||
|
|
||||||
profiles.clerie.fem-net.enable = true;
|
profiles.clerie.fem-net.enable = true;
|
||||||
|
profiles.clerie.serial-console.enable = true;
|
||||||
|
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
|
26
profiles/serial-console/default.nix
Normal file
26
profiles/serial-console/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.profiles.clerie.serial-console;
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
|
options.profiles.clerie.serial-console = {
|
||||||
|
enable = mkEnableOption "Use first serial console as termial";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
boot.kernelParams = [ "console=ttyS0,115200n8" ];
|
||||||
|
|
||||||
|
boot.loader.grub.extraConfig = "
|
||||||
|
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
|
||||||
|
terminal_input serial
|
||||||
|
terminal_output serial
|
||||||
|
";
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user