1
0

Update from updated-inputs-2025-03-24-02-03

This commit is contained in:
Flake Update Bot 2025-03-24 03:04:13 +01:00
commit 80c3a3c885
4 changed files with 31 additions and 3 deletions
flake.lock
profiles
default.nix
mercury-vm
serial-console

6
flake.lock generated

@ -533,11 +533,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1742422364,
"narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=",
"lastModified": 1742669843,
"narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc",
"rev": "1e5b653dff12029333a6546c11e108ede13052eb",
"type": "github"
},
"original": {

@ -13,6 +13,7 @@
./mercury-vm
./netcup
./network-fallback-dhcp
./serial-console
./wg-clerie
];

@ -11,6 +11,7 @@ with lib;
config = mkIf config.profiles.clerie.mercury-vm.enable {
profiles.clerie.fem-net.enable = true;
profiles.clerie.serial-console.enable = true;
services.qemuGuest.enable = true;

@ -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
";
};
}