!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms295 Servers

Load older messages


SenderMessageTime
2 Dec 2025
@522_:catgirl.cloud522 it/its ⛯ΘΔthere's a cppnix flag to let you specify a number of times to build + rebuild iirc20:12:48
@522_:catgirl.cloud522 it/its ⛯ΘΔnot in lix tho20:12:51
@aloisw:julia0815.dealoisw
In reply to @k900:0upti.me
And --rebuild should build or rebuild, yeah
IIRC they are the same, just inconsistently named.
20:13:37
@522_:catgirl.cloud522 it/its ⛯ΘΔyeah20:13:43
@522_:catgirl.cloud522 it/its ⛯ΘΔ one's nix build and one's nix-build 20:13:50
@k900:0upti.meK900 Yes but they should be consistently named and also do different things 20:14:02
@522_:catgirl.cloud522 it/its ⛯ΘΔhttps://nix.dev/manual/nix/2.28/release-notes/rl-1.11.html?highlight=--option%20build-repeat20:15:02
@522_:catgirl.cloud522 it/its ⛯ΘΔ okay so build-repeat N is moreso for hydra 20:15:41
@aloisw:julia0815.dealoisw
In reply to @k900:0upti.me
Yes but they should be consistently named and also do different things
What different things? Basically I see 3 possibilities: rebuild or fail (current behaviour, probably garbage), always do a local build (522's suggestion, makes sense but both names are shit for that), and ensure a rebuild (potentially substituting or building before if it didn't exist).
20:20:41
@k900:0upti.meK900 --rebuild - ignore existing paths and substitutes, do a clean build, even if not currently in the store
--check - do two clean builds, diff them, keep both outpaths if different
20:23:30
@k900:0upti.meK900 * 20:24:27
@aloisw:julia0815.dealoisw Yeah I think --rebuild is a garbage name for that. 20:25:21
@k900:0upti.meK900 I think it's suboptimal but overall whatever it's fine 20:26:00
@aloisw:julia0815.dealoiswI guess there would also be a fourth option of ensuring it has been built locally at least once, but not sure how useful that is.20:29:14
@522_:catgirl.cloud522 it/its ⛯ΘΔanother way to look at it is have flags for "don't look in the nix store for the direct derivation being built" and "which substitutors should we use for the direct derivation?" (which would also let you easily ask if 2 caches agree on the output of a given .drv without needing to implement fetching code yourself, if that's useful)20:29:52
@raitobezarius:matrix.orgraitobezariusi didn't see it but22:09:56
@raitobezarius:matrix.orgraitobezarius https://git.lix.systems/lix-project/lix/issues/485 22:10:20
@raitobezarius:matrix.orgraitobezariusit's part of 2.95 milestone22:10:26
@raitobezarius:matrix.orgraitobezarius that is, --rebuild/--check will automatically produce the first derivation from now on and perform the check right after 22:10:41
@raitobezarius:matrix.orgraitobezarius(this is independent from the naming discussions on which I think I agree)22:11:31
@raitobezarius:matrix.orgraitobezariusinteresting22:12:37
@raitobezarius:matrix.orgraitobezariusi feel like we don't have an issue for it22:12:42
@raitobezarius:matrix.orgraitobezariusi feel like the generalized flag for this idea one that uses the deriver concept22:14:28
@raitobezarius:matrix.orgraitobezarius nix-build --requires-deriver local or something 22:14:41
@xoredg:matrix.orgxored

can someone explain to me why lix is this weird? ```[root@shiva:~]# cat /etc/resolv.conf

This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).

Do not edit.

This file might be symlinked as /etc/resolv.conf. If you're looking at

/etc/resolv.conf and seeing this text, you have followed the symlink.

This is a dynamic resolv.conf file for connecting local clients to the

internal DNS stub resolver of systemd-resolved. This file lists all

configured search domains.

Run "resolvectl status" to see details about the uplink DNS servers

currently in use.

Third party programs should typically not access this file directly, but only

through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a

different way, replace this symlink by a static file or a different symlink.

See man:systemd-resolved.service(8) for details about the supported modes of

operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search .

[root@shiva:~]# nix-build -E '(import <nixpkgs> {}).runCommand "test" {outputHashMode = "recursive"; outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";} "cat /etc/resolv.conf"'
this derivation will be built:
/nix/store/qnd72abhlx97l63pppg9n23nwcnm00fl-test.drv
building '/nix/store/qnd72abhlx97l63pppg9n23nwcnm00fl-test.drv'...

This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).

Do not edit.

This file might be symlinked as /etc/resolv.conf. If you're looking at

/etc/resolv.conf and seeing this text, you have followed the symlink.

This is a dynamic resolv.conf file for connecting local clients to the

internal DNS stub resolver of systemd-resolved. This file lists all

configured search domains.

Run "resolvectl status" to see details about the uplink DNS servers

currently in use.

Third party programs should typically not access this file directly, but only

through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a

different way, replace this symlink by a static file or a different symlink.

See man:systemd-resolved.service(8) for details about the supported modes of

operation for /etc/resolv.conf.

options edns0 trust-ad
search .

nameserver 169.254.1.1
nameserver 64:ff9b:1:4b8e:472e:a5c8:a9fe:0101```

apparently there's a thing called pasta and I saw some resolvconf rewrite in the code, whatever the case, if my host is ipv6 only I get no dns in the sandbox, looks like a bug

23:02:25
@niklaskorz:matrix.orgniklaskorzbig font time23:02:39
@xoredg:matrix.orgxored *

can someone explain to me why lix is this weird?

[root@shiva:~]# cat /etc/resolv.conf
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search .

[root@shiva:~]# nix-build -E '(import <nixpkgs> {}).runCommand "test" {outputHashMode = "recursive"; outputHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";} "cat /etc/resolv.conf"'
this derivation will be built:
  /nix/store/qnd72abhlx97l63pppg9n23nwcnm00fl-test.drv
building '/nix/store/qnd72abhlx97l63pppg9n23nwcnm00fl-test.drv'...
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.


options edns0 trust-ad
search .

nameserver 169.254.1.1
nameserver 64:ff9b:1:4b8e:472e:a5c8:a9fe:0101

apparently there's a thing called pasta and I saw some resolvconf rewrite in the code, whatever the case, if my host is ipv6 only I get no dns in the sandbox, looks like a bug

23:03:12
@niklaskorz:matrix.orgniklaskorzthanks :D23:03:18
@xoredg:matrix.orgxoredyeah I hate element's input man23:03:24
@xoredg:matrix.orgxoredtl;dr on the sandbox the dns is all messed up23:03:42

Show newer messages


Back to Room ListRoom Version: 10