| 16 Jun 2021 |
ajs124 | * Any ideas what I could be doing wrong if this is my .network file:
[Match]
Name=einsatz-10
[Network]
Bridge=br0
LinkLocalAddressing=no
but ip a s einsatz-10 tells me
12: einsatz-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1358 qdisc fq_codel master br0 state UNKNOWN group default qlen 1000
link/ether 76:1a:54:e8:b1:76 brd ff:ff:ff:ff:ff:ff
inet 169.254.118.54/16 brd 169.254.255.255 scope global noprefixroute einsatz-10
valid_lft forever preferred_lft forever
inet6 fe80::741a:54ff:fee8:b176/64 scope link
valid_lft forever preferred_lft forever
| 12:44:22 |
ajs124 | * Any ideas what I could be doing wrong if this is my .network file:
[Match]
Name=einsatz-10
[Network]
Bridge=br0
LinkLocalAddressing=no
but ip a s einsatz-10 tells me
12: einsatz-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1358 qdisc fq_codel master br0 state UNKNOWN group default qlen 1000
link/ether 76:1a:54:e8:b1:76 brd ff:ff:ff:ff:ff:ff
inet 169.254.118.54/16 brd 169.254.255.255 scope global noprefixroute einsatz-10
valid_lft forever preferred_lft forever
inet6 fe80::741a:54ff:fee8:b176/64 scope link
valid_lft forever preferred_lft forever
| 12:44:30 |
ajs124 | might be worth noting that this is a l2tp session configured with networkd, although it really shouldn't make a difference | 12:44:58 |
Finn Behrens | What's the config of the bridge (br0)? | 12:45:25 |
ajs124 | [Match]
Name=br0
[Network]
DHCP=no
LinkLocalAddressing=no
| 12:45:44 |
ajs124 | Having an address on there probably doesn't hurt, but since this is a L2 tunnel, it really doesn't make much sense. Especially not a IPv4LL. | 12:46:44 |
hexa | do you have dhcpcd running? | 12:49:58 |
ajs124 | 🤦♂️ yes. why would I though. | 12:50:32 |
hexa | because 🤦♂️ | 13:04:44 |
hexa | problem solved? | 13:05:03 |
ajs124 | yep, thanks | 14:00:39 |
Mic92 | Redacted or Malformed Event | 19:53:08 |
| 17 Jun 2021 |
| Gabby joined the room. | 01:09:32 |
| Gabby changed their profile picture. | 02:59:43 |
| 18 Jun 2021 |
Emil Karlson | if I want to run an arbitrary script after bootup, what is the best way in nixos | 05:18:57 |
Emil Karlson | https://superuser.com/questions/544399/how-do-you-make-a-systemd-service-as-the-last-service-on-boot like this | 05:19:07 |
Emil Karlson | this is a generic service like runInNixosVm, so there is no specific usecase | 05:19:34 |
Emil Karlson | maybe I should check what runInNixosVm does | 05:19:55 |
Emil Karlson | yup that's not systemd so does not help | 05:25:06 |
Arian | You can use nixos options to define systemd services! Look for the `systemd.services.*` option | 07:39:19 |
Arian | You'll have to set wantedBy = [ "multi-user.target" ] ; on the nixos option to make sure it starts at boot | 07:39:59 |
Arian | If you want something to run after everything else is started you can do after = [ "default.target" ]; | 07:40:40 |
Arian | So you'd do: | 07:40:59 |
Arian | ```
systemd.services.myscript.script = ''
echo hello
'';
systemd.services.myscript.wantdBy = ["multi-user.target"];
systemd.services.myscript.after = [ "default.target"]; // comment out if you're fine with starting up in parallel with others
``` | 07:42:43 |
Arian | Does that answer your question Emil Karlson ? | 07:43:05 |
Emil Karlson | kind of, though I already knew the basics, mostly was looking for most relevant after-item | 12:57:56 |
Emil Karlson | I actually already used this, since it was kind of appropriate for most use cases systemd-user-sessions.service loaded active exited Permit User Sessions | 12:58:59 |
Emil Karlson | after default target maybe yes | 12:59:56 |
Emil Karlson | but thanks for the reply | 13:00:07 |
| 19 Jun 2021 |
Emil Karlson | I guess next part would be to have the output into serial console, like on runInLinuxVm | 05:55:36 |