Skip to content

Instantly share code, notes, and snippets.

View Janik-Haag's full-sized avatar
🇪🇺
public money public code

Janik Janik-Haag

🇪🇺
public money public code
View GitHub Profile
@risicle
risicle / netplan-to-nixos.jq
Created May 2, 2021 21:18
jq expression to turn netplan yaml configs into nixos network configurations, supporting bonding and vlans
{
systemd: {
network: {
netdevs: (
.network.ethernets | with_entries(.value |= {
netdevConfig: {Name: ."set-name"},
matchConfig: {MACAddress: .match.macaddress}
})
)
}
@CRTified
CRTified / 1-output.txt
Created November 7, 2023 22:15
Scoping of `self` demo
$ nix build .#nixosConfigurations.demo.config.system.build.toplevel
trace: I'm Mr. Meeseeks! Existence is pain!
trace: I'm Mr. Meeseeks! Look at me!