forked from mirrors_public/oddlama_nix-config
feat: wip: begin modularizing microvm definitions to allow for other
guest types like containers
This commit is contained in:
parent
8d734287e2
commit
76a8f6e247
5 changed files with 263 additions and 227 deletions
|
@ -1,10 +1,14 @@
|
|||
{lib, ...} @ args: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# IP addresses: ${"${interface} \e{halfbright}\4{${interface}}\e{reset} \e{halfbright}\6{${interface}}\e{reset}"}
|
||||
environment.etc.issue.text = lib.concatStringsSep "\n" ([
|
||||
''\d \t''
|
||||
''This is \e{cyan}\n\e{reset} [\e{lightblue}\l\e{reset}] (\s \m \r)''
|
||||
]
|
||||
# Disabled for microvms because of frequent redraws (-> pushed to syslog on the host)
|
||||
++ lib.optional (!(args ? parentNodeName)) ''\e{halfbright}\4\e{reset} \e{halfbright}\6\e{reset}''
|
||||
# Disabled for guests because of frequent redraws (-> pushed to syslog on the host)
|
||||
++ lib.optional (!config.guests.isGuest) ''\e{halfbright}\4\e{reset} \e{halfbright}\6\e{reset}''
|
||||
++ [""]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue