!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

601 Members
NixOS ❤️ systemd168 Servers

Load older messages


SenderMessageTime
16 Jun 2021
@andreas.schraegle:helsinki-systems.deajs124 *

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
@andreas.schraegle:helsinki-systems.deajs124 *

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
@andreas.schraegle:helsinki-systems.deajs124might be worth noting that this is a l2tp session configured with networkd, although it really shouldn't make a difference12:44:58
@kloenk:petabyte.devFinn BehrensWhat's the config of the bridge (br0)?12:45:25
@andreas.schraegle:helsinki-systems.deajs124
[Match]
Name=br0

[Network]
DHCP=no
LinkLocalAddressing=no
12:45:44
@andreas.schraegle:helsinki-systems.deajs124 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:lossy.networkhexado you have dhcpcd running?12:49:58
@andreas.schraegle:helsinki-systems.deajs124🤦‍♂️ yes. why would I though.12:50:32
@hexa:lossy.networkhexabecause 🤦‍♂️13:04:44
@hexa:lossy.networkhexaproblem solved?13:05:03
@andreas.schraegle:helsinki-systems.deajs124yep, thanks14:00:39
@joerg:bethselamin.deMic92Redacted or Malformed Event19:53:08
17 Jun 2021
@gabthebab:mozilla.orgGabby joined the room.01:09:32
@gabthebab:mozilla.orgGabby changed their profile picture.02:59:43
18 Jun 2021
@jkarlson:kapsi.fiEmil Karlsonif I want to run an arbitrary script after bootup, what is the best way in nixos05:18:57
@jkarlson:kapsi.fiEmil Karlsonhttps://superuser.com/questions/544399/how-do-you-make-a-systemd-service-as-the-last-service-on-boot like this05:19:07
@jkarlson:kapsi.fiEmil Karlsonthis is a generic service like runInNixosVm, so there is no specific usecase05:19:34
@jkarlson:kapsi.fiEmil Karlsonmaybe I should check what runInNixosVm does05:19:55
@jkarlson:kapsi.fiEmil Karlsonyup that's not systemd so does not help05:25:06
@arianvp:matrix.orgArianYou can use nixos options to define systemd services! Look for the `systemd.services.*` option 07:39:19
@arianvp:matrix.orgArianYou'll have to set wantedBy = [ "multi-user.target" ] ; on the nixos option to make sure it starts at boot07:39:59
@arianvp:matrix.orgArianIf you want something to run after everything else is started you can do after = [ "default.target" ];07:40:40
@arianvp:matrix.orgArianSo you'd do:07:40:59
@arianvp:matrix.orgArian``` 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
@arianvp:matrix.orgArian Does that answer your question Emil Karlson ? 07:43:05
@jkarlson:kapsi.fiEmil Karlsonkind of, though I already knew the basics, mostly was looking for most relevant after-item12:57:56
@jkarlson:kapsi.fiEmil KarlsonI 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
@jkarlson:kapsi.fiEmil Karlsonafter default target maybe yes12:59:56
@jkarlson:kapsi.fiEmil Karlsonbut thanks for the reply13:00:07
19 Jun 2021
@jkarlson:kapsi.fiEmil KarlsonI guess next part would be to have the output into serial console, like on runInLinuxVm05:55:36

There are no newer messages yet.


Back to Room ListRoom Version: 6