<{^_^}>
[nixpkgs] @lheckemann closed pull request #95008 → modules-closure: don't ignore all deps if the first is builtin → https://git.io/JJ1jJ
zalaare has quit [Remote host closed the connection]
NekomimiScience has quit [Read error: Connection reset by peer]
NekomimiScience has joined #nixos
kraeXen has joined #nixos
zalaare has joined #nixos
Jackneill has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #95120 → python3Packages.kinparse: init at unstable-2019-12-18 → https://git.io/JJDMO
aaronjanse has joined #nixos
h0m1 has quit [Ping timeout: 272 seconds]
<aaronjanse>
When is /nix/store/*gcc*/nix-support/cc-ldflags used? My GCC for some reason has a shared-only library there that's breaking mesa but nothing else that I try to statically compile
<{^_^}>
[nix] @Ericson2314 opened pull request #3917 → Simplify code as output env vars are unconditional → https://git.io/JJDM4
kalbasit has quit [Remote host closed the connection]
<DigitalKiwi>
colemickens: yeah incredibly lucky too lol that's the computer i want to use it on the most! and it doesn't happen on any of my other ~3-4 lol
xkapastel has quit [Quit: Connection closed for inactivity]
waleee-cl has quit [Quit: Connection closed for inactivity]
maier has quit [Ping timeout: 256 seconds]
<jurlerci>
is there a good, up to date guide on encrypting multiple disks, using a password protected encrypted partition as the key for all the other partitions?
lambda-11235 has joined #nixos
cosimone has joined #nixos
Supersonic112 has joined #nixos
<jurlerci>
seems like full disk doesnt work with grub and luks2 but im unsure if its ok to use luks1
<DigitalKiwi>
have you looked at native encryption in zfs and would that suite your needs
edcragg has quit [Quit: Ping timeout (120 seconds)]
raoul has quit [Quit: Ping timeout (120 seconds)]
<jurlerci>
id prefer not to use zfs if possible
raoul has joined #nixos
edcragg has joined #nixos
<jurlerci>
but i dont mind a non-encrypted /boot if thats easier
phI||Ip_Alternat has quit [Ping timeout: 256 seconds]
nbathum has quit [Ping timeout: 256 seconds]
Unode has quit [Ping timeout: 256 seconds]
nbathum has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
phI||Ip has joined #nixos
marcusr has quit [Ping timeout: 256 seconds]
vuko has quit [Ping timeout: 256 seconds]
stree_ has quit [Ping timeout: 256 seconds]
pepesza has quit [Ping timeout: 244 seconds]
vuko has joined #nixos
pamplemousse has quit [Ping timeout: 240 seconds]
Unode has joined #nixos
stree has joined #nixos
pepesza has joined #nixos
marcusr has joined #nixos
ml| has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @aaronjanse opened pull request #95129 → mkDerivation: use `Generic` as system name for Redox in cmakeFlags → https://git.io/JJDQH
jurlerci has quit [Remote host closed the connection]
lunaa has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<energizer>
man configuration.nix has some info about the encryption options under fileSystems
ml| has joined #nixos
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
<colemickens>
luksboot.nix has some interesting stuff in it
<jackdk>
somewhere between 2.20.0 and 2.21.0 the mcstan build process changed in such a way that nixpkgs errors out because there are "forbidden references to /build/" in RPATHs. Any advice on how to continue diagnosing this?
kraeXen has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @matthuszagh to master « qcsxcad: init at unstable-2020-01-04 »: https://git.io/JJDFt
<Graypup_>
ah, you can git bisect skip your way out of it, cool. i should rtfm the entirety of git... maybe after i finish writing my git implementation
<{^_^}>
[patchelf] @edolstra merged pull request #227 → use stable_sort to maintain relative order for equal elements in sections → https://git.io/JJDPQ
<jurlerci>
howdy, im wondering what uuid's i put down in my hardware-configuration if i have luks formatted drives. under boot.initrd.luks.devices i thought i put down the UUID section returned by blkid for each of my base partitions (sda1, sdb1, sdc2) but those are failing to be found during boot, same if i use the PARTUUIDs. i have each of the lv's under fileSystems."/whatever" using the UUID for the encrypted
vuko has joined #nixos
<jurlerci>
partition made with lvcreate, but it doesnt boot far enough for me to check if those are correct
<jurlerci>
hello im back! booting up worked i have some actual questions now haha. for the option console.font, where does the string come from? ie how can I find the string for other fonts?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
orivej has quit [Quit: orivej]
mallox has joined #nixos
smatting_ has joined #nixos
mallox has quit [Client Quit]
karantan has joined #nixos
omneh has joined #nixos
<pjt_014[m]>
jurlerci: I don't personally know, but try `env | grep -i font` to see if it's an env var.
OmnipotentEntity has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
<jurlerci>
the default one that nixos generates is "Lat2-Terminus16"
<benschza>
Thanks sphalerite! That works.
woffs has joined #nixos
alp has quit [Remote host closed the connection]
alp has joined #nixos
<sphalerite>
jurlerci: the argument is passed to `setfont`, you can either use a complete path to a .psf.gz font file or look at what else is in setfont's search path (setfont --help will tell you where it looks)
<jurlerci>
sphalerite: ahh thats what i was looking for, ki'e .ui
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJDj4
lsix has joined #nixos
<sphalerite>
jurlerci: FWIW I can recommend console.font = "${pkgs.terminus_font}/share/consolefonts/ter-v20n.psf.gz"; (change "20" to taste for size)
<typetetris>
sphalerite: Did go back for now, will try again later not on working hours.
<jurlerci>
i was hoping to get tewi-font
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karantan has joined #nixos
<jurlerci>
will a pcf.gz work?
<sphalerite>
no :/
<jurlerci>
no worries, last question for now but is there a way to load the font without rebooting?
cole-h has quit [Quit: Goodbye]
hyper_ch2 has joined #nixos
<sphalerite>
jurlerci: yes, calling setfont manually should do it
<sphalerite>
something like `pkgs.runCommandNoCC "tewi-consolefont" ''unpackFile ${pkgs.tewi-font.src}; cd * ; ${pkgs.bdf2psf}/bin/bdf2psf …''`
<sphalerite>
or `pkgs.runCommandNoCC "tewi-consolefont.psf.gz" ''unpackFile ${pkgs.tewi-font.src}; cd * ; ${pkgs.bdf2psf}/bin/bdf2psf …; gzip <tewi.psf >$out''` to get the file directly, then you can set console.font to that directly.
dansho has joined #nixos
dansho_ has quit [Ping timeout: 240 seconds]
<jurlerci>
hmm ok ill give it a go, thank you
<sphalerite>
err, missing a {} between the name and the command
criptonauta_ has joined #nixos
andreas303 has quit [Remote host closed the connection]
pjt_tmp has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
cript0nauta has quit [Read error: Connection reset by peer]
itshaydendev has quit [Remote host closed the connection]
itshaydendev has joined #nixos
<jurlerci>
sphalerite: sorry im still confused, with my understanding, that code is creating something in the nixstore that contains the psf font, but how does it get turned into a string with the path to that file?
<sphalerite>
jurlerci: it's creating a derivation, and derivations get converted to strings by getting their outPath
<sphalerite>
so when you set the option to that derivation, since the option expects a string, it'll be converted to a string which is the path to the psf font file
sputny has quit [Remote host closed the connection]
<jurlerci>
automatically? its telling me that the value isnt of type string when I try to rebuild
itshaydendev has quit [Remote host closed the connection]
<sphalerite>
oh ok, sorry, my fault. add "${…}" around it or (…).outPath
<{^_^}>
[nixpkgs] @vbgl pushed commit from @danieldk to master « ocamlPackages.uunf: 12.0.0 -> 13.0.0 »: https://git.io/JJyTw
<jurlerci>
i have `gzip thing.thing $out` in my derivation, and when i run it its complaining that the nix store path in $out doesnt exist to gzip
<whald>
hi! i just noticed that development/libraries/civetweb is built by default without ipv6 support. this is easy enough to fix using an overlay, but i'd like to know if there is a general policy about this for nixpkgs? would a pull request changing the default be welcome?
<Graypup_>
whald, maybe check git blame to see if someone changed that later or they just didn't include it for some reason at the start
<qyliss>
jurlerci: I think that means "please compress thing.thing to thing.thing.gz, and $out to $out.gz"
<qyliss>
Maybe refer to gzip(1) and check you're doing it correctly.
<manveru>
gotta work around some silly behavior in crystal shards... it now tries to check the git revision that's checked out in its new mandatory cache :|
<DigitalKiwi>
guess what languages i like and which ones are because they're popular
<DigitalKiwi>
did you see the tweets
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @fadenb to release-20.03 « graylog: 3.3.3 -> 3.3.4 »: https://git.io/JJytM
<manveru>
yeah
turion has joined #nixos
<DigitalKiwi>
some of those are for you
sangoma has quit [Ping timeout: 256 seconds]
<turion>
What's the proper way to install the whole Rust toolchain completely declaratively?
<turion>
I.e. without rustup
<manveru>
sorry, i'm in 3 meetings at the same time :P
<turion>
I managed to configure the mozilla overlay, but when I add the rustc package to my config and launch cargo, I get "error: no default toolchain configured"
fendor has quit [Remote host closed the connection]
<Graypup_>
yeet first package contribution to nixpkgs
<Graypup_>
and i found what i believe is a regression in my code so whoooopsie
<DigitalKiwi>
manveru: https://twitter.com/ArchKiwi/status/1292368908238958592?s=20 i tape 8.5x11" shipping labels to these hard boards, hand brush gesso on them at least 2 usually 3 times, and then i cut stencils and airbrush the colors, seal them with mod podge, and then cut, label, and package
<DigitalKiwi>
silk screen would probably be easier (maybe not as cool idk) but i have airbrush setup not silk screening setup :D
<manveru>
silk screen can be a major PITA with cleaning and developing the layers... your setup is probably better for small batches :)
<DigitalKiwi>
it helps me practice airbrushing so i can make other art and also people like/buy them which helps pay for more art supplies and airbrushes >.>
<dutchie>
congrats on receiving my first nixpkgs review
<dutchie>
i think my first GH PR review at all too
<mudri>
My Coq setup on NixOS is kinda broken, so I want to start again. Particularly, I want to use libraries `equations` and `coq-elpi`, which constrain me to version 8.11. I want interactive editing, which for technical reasons only works in vscode (so probably I need to install Coq and its libraries globally). Could someone doing roughly similar share their setup?
nixuser has quit [Ping timeout: 256 seconds]
<symphorien[m]>
mudri can you lauch vcode inside nix-shell instead of installing things globally ?
marcuslee[m] has joined #nixos
<mudri>
symphorien[m]: Maybe that's worth doing for now, though it's not great if I have multiple projects. I'll look into it...
<symphorien[m]>
I don't know for vscode, but emacs people use a direnv plugin to solve this inconvenience
<symphorien[m]>
along with lorri for example
<symphorien[m]>
there might be a direnv plugin for vscode
<mudri>
Ah, that's something else I've been meaning to learn. Yeah, I'll have a look, thanks!
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos
nixuser has joined #nixos
<Mic92>
symphorien[m]: does direnv-emacs also blocks the editor even if lorri is used?
<Mic92>
I don't use the plugin therefore.
<etu>
Mic92: Shouldn't since lorri isn't blocking. My Emacs behaves much better after switching to lorri when entering certain projects.
<Mic92>
etu: how does it signal update to emacs than?
<Mic92>
I cannot use lorri because it does not scale when I point nixpkgs to a git checkout.
<etu>
Mic92: Uhm, I don't know the ins and outs of it... But if you have a shell in a direnv with lorri it will recheck next time you evaluate that prompt (pretty much), I guess something like that happens with direnv in emacs as well that next time you open a file or something it does a recheck.
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @Chili-Man to master « terraform: 0.13.0-rc1 -> 0.13.0 (#95135) »: https://git.io/JJys0
cosimone_ has quit [Remote host closed the connection]
<mudri>
It's kinda gotten worse now Nix typechecks that the string you give is a well formed hash. I used to just bash my keyboard for a while, try to build, then it would give me the right hash. Now, I have to find a well formed hash and break it.
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<DigitalKiwi>
i just R and then hold zero
<mudri>
The magic number 52
n9nes- has joined #nixos
n9nes has quit [Ping timeout: 240 seconds]
<stigo>
And in emacs: C-u 52 0 (ctrl-u 5 2 ctrl-u 0)
n9nes has joined #nixos
n9nes- has quit [Ping timeout: 256 seconds]
<etu>
stigo: I just go with "C-u 52 a" since the a isn't a number picked up as part of 52 :)
<{^_^}>
dimenus: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<dimenus>
ty
Rusty1 has joined #nixos
<symphorien[m]>
^ this applies to liblang, and to compilers like clang
<symphorien[m]>
here you want a shell.nix which uses clangStdenv instead of stdenv
<eyJhb>
How does one usually get extra data from a package? Like if need to place X information in a package, does it then make sense to make a file with the info? E.g. printf "somename-info" > $out/name
<dimenus>
{^_^}: how did you dump the libraries in a set?
<{^_^}>
[nixpkgs] @jtcoolen opened pull request #95173 → jwto: init at 0.3.0 → https://git.io/JJyle
knupfer has joined #nixos
tsrt^ has quit [Read error: Connection reset by peer]
<infinisil>
dimenus: That's a bot :)
<dimenus>
hah :)
<infinisil>
It responded to symphorien[m]'s nix expression
<{^_^}>
[nix] @Ericson2314 closed pull request #3915 → WIP: Remote building for untrusted clients -- contains #3446 → https://git.io/JJMz6
<eyJhb>
For some reason I get this - The path name '.drv' is invalid: it is illegal to start the name with a period. Path names are alphanumeric and can include the symbols +-._?= and must not begin with a period. Note: If '.drv' is a source file and you cannot rename it on disk, builtins.path { name = ... } can be used to give it an alternative name.
<{^_^}>
ornxka: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<edef>
ornxka: which is now fairly breakable — the cost of a SHA1 collision has hit the <$100k mark, and i expect it to continue dropping
cosimone has joined #nixos
<edef>
right, it's at the $45k mark as of January
<ornxka>
ah i had forgotten it was such a weak hash
azure1 has joined #nixos
jco has joined #nixos
<jco>
hello!
<jco>
I'd like to override a librarie's version to compile a specific library in nix-shell: https://tpaste.us/7K7o
<edef>
ornxka: i'm not *quite* sure how practical chosen-prefix collisions are for git specifically, but in general i try to avoid introducing new uses of SHA1…
alp has joined #nixos
<jco>
in this example reason-jose depends on mirage-crypto version 0.6.2
zangi has quit [Ping timeout: 256 seconds]
azure2 has joined #nixos
<jco>
ah forgot to specify which dependency of reason-jose is overriden. This works: https://tpaste.us/1OKV
azure1 has quit [Ping timeout: 260 seconds]
<jco>
I should chnage the package sha too
azure2 has quit [Read error: Connection reset by peer]
<ratsclub>
jtojnar I'm using nixpkgs at the moment I think I might be able to use it tomorrow, but let's see. It's already a lot faster than I expected!
<symphorien[m]>
afreakk: you can get equivalent functionality with the nix-index package
o1lo01ol1o has quit [Remote host closed the connection]
<Cadey>
how would i set colemak?
ml| has joined #nixos
<flythief>
hi, when I run "sudo nixos-rebuild switch -v ",I get "querying info about /nix/store/9ds9zzqz8kmk8w50nci9lj9bn9afjyzx-nix.conf on 'https://cache.nixos.org'. Then " warning: unable to download 'https://cache.nixos.org/9ds9zzqz8kmk8w50nci9lj9bn9afjyzx.narinfo' SSL connect error". I have checked that cache site doesn't has this file. how can I know
<flythief>
this *nix.conf ? thanks firstly.
o1lo01ol1o has joined #nixos
<symphorien[m]>
is the date of your system correct ?
<symphorien[m]>
does your system accept the certificate of cache.nixos.org ? (check with curl)
<inquisitiv3>
What's the status of the Flakes RFC? I see that it was withdrawn at the latest meeting, but what does that mean?
o1lo01ol1o has quit [Remote host closed the connection]
<inquisitiv3>
Is the current implementation to be totally rewritten, or is it just some details that needs to be changed?
philr has quit [Ping timeout: 265 seconds]
flythief has quit [Remote host closed the connection]
lina[m] has joined #nixos
<Mic92>
flakes is implemented without a RFC from the looks of it.
flythief has joined #nixos
gthm has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<flythief>
my timezone is n/a. "date" 's result is today, time is offset some hours for me. time.timeZone can't be passed to nixos-rebuild as option ? symphorien[m]
<buffet>
hey, im using nixos-rebuild with --target-host, and it gives me `warning: you did not specify --add-root; the result might be gc'd`
jmeredith has quit [Quit: Connection closed for inactivity]
<symphorien[m]>
flythief you can export the TZ environment variable
<symphorien[m]>
but if the offset is only a few hours this does not explain why you reject the certificate of cache.nixos.org
maier_ has quit [Ping timeout: 240 seconds]
<symphorien[m]>
buffet not if you don't run nix-collect-garbage in parallel
<buffet>
if i run nix-collect-garbage say 2 days later it wont collect the profile?
<inquisitiv3>
Mic92: Should I think of it as Flakes was accepted, but it was deemed that the RFC process was the wrong way to go with specifying Flakes?
<symphorien[m]>
why do you care ? the profile is only used on the target host, iirc
jmeredith has joined #nixos
<buffet>
i dont want the system to break a week later, and thats kinda what it sounds like
<buffet>
which is why im makign sure
<buffet>
and yeah, i mean on the target host
flythief has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @primeos opened pull request #95188 → ffmpeg-full: Add support for rav1e (faster AV1 encoding) → https://git.io/JJy2W
<symphorien[m]>
it will be rooted on the target host
<symphorien[m]>
so you can run the gc on the target host
<flythief>
I use curl can get this file, but rebuild switch will get "ssl connect error"
ehmry_ has joined #nixos
ris has joined #nixos
<symphorien[m]>
it's not running a command, it's within nix
<buffet>
ok another question, im trying to create a service module, and i was just looking at the mecuga and the hydra module and they use `${pkgs.sudo}/bin/sudo -u ...` for postgres stuff, however when i do that, i get `sudo must be owned by uid 0 and have the setuid bit set` (the latter is the problem). any idea why this is happening and how to make it
<buffet>
work?
erasmas has joined #nixos
justanotheruser has joined #nixos
<clever>
buffet: only the sudo in /run/wrappers can work for elevating perms,
<clever>
buffet: what User= is systemd running things as?
<buffet>
clever, then how does it work for hydra and mecuga?
<buffet>
and am i supposed to just call /run/wrappers/sudo instead?
<clever>
are you running as root or another user?
<cransom>
those modules have 'PermissionStartOnly = true', so those run as root.
ml| has joined #nixos
<clever>
yeah, that too
<buffet>
oooh
<clever>
so prestart ran as root, and sudo can drop privs without being setuid root
<buffet>
oh that makes sense
<buffet>
i completely overlooked that
<buffet>
thanks a lot'
<flythief>
symphorien[m] I find /nix/store/5c75hha1g662qwvli9a99qy8qpv7bdgk-nixos-20.03.2756.d3a1eb06ba4/nixos/ this path has many nix files. If I can change code in this, can I debug nix command like this "nixos-rebuild" ? :)
<buffet>
flythief, you can always `bash -x nixos-rebuild`
<symphorien[m]>
try changing the substituter to use http instead of https ?
<symphorien[m]>
it's safe because nix has it's own level of signing
o1lo01ol1o has quit [Remote host closed the connection]
cosimone has quit [Quit: Quit.]
maier has quit [Quit: leaving]
sangoma has quit [Quit: WeeChat 2.9]
<flythief>
I get detail of that command, but code is some complex. buffet it ignoring unstrusted substituter. I'll search it. symphorien[m]
<{^_^}>
#59389 (by aanderse, 1 year ago, merged): replace deprecated usage of PermissionsStartOnly (part 1)
<flythief>
symphorien[m] well, I add trusted substituters to nix conf, then use http is ok. when building is done, I remove this, and no problem now. Thanks~
AlexxNica has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
xlei has quit [Ping timeout: 256 seconds]
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #95196 → openems: init at unstable-2020-02-15 → https://git.io/JJyrf
<evanjs>
I _really_ need a command that lets me do `nix build` or etc with tmpOnTmpfs disabled.... any suggestions?
<evanjs>
(Tmp is running out of space during the build)
fendor has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<evanjs>
lassulus: I _think_ I've asked you before, but this is happening for me and others using a nixos-generator wrapper I made (for esxi stuff) (which btw might be possible to finally add to modules/virtualisaton now...)
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Dagger has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<evanjs>
in short, running out of space is happening a lot when trying to generate images bc I have tmpOnTmpfs on and, if possible, I wonder if temporarily disabling or bypassing that might be a good idea
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
<lassulus>
export TEMPDIR=/some/dir/not/on/tmpfs
<lassulus>
evanjs: ^
ben has quit [Ping timeout: 246 seconds]
knupfer has quit [Quit: knupfer]
o1lo01ol1o has quit [Remote host closed the connection]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
__monty__ has joined #nixos
knupfer has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
<bqv>
evanjs: for future reference, you might benefit from mount namespaces. if you "umount -ar" you can then unmount /tmp, or mount something more palatable on it, without affecting the rest of your system
knupfer has joined #nixos
knupfer has quit [Client Quit]
<{^_^}>
[nix] @bburdette opened pull request #3919 → demote remote build message to Info → https://git.io/JJyoO
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<evanjs>
bqv: unless it's busy :P
knupfer has quit [Client Quit]
<bqv>
no, even then
<bqv>
because it's still mounted
<bqv>
just not in your little namespace
knupfer has joined #nixos
sangoma has joined #nixos
<evanjs>
"sudo: /run/current-system/sw/bin/sudo must be owned by uid 0 and have the setuid bit set"
<evanjs>
mmm I guess it's a bit weirder if I want to monitor space (via `watch df -h` or etc) in that shell, then :P unless I like.... screen and then open a screen from that screen? lol. I'll just see if the command succeeds this time :P
<lordcirth__>
symphorien[m], thanks, I was looking in .service and .exec
rap-god has joined #nixos
<rap-god>
hi ppl how do i change my st font using configuration.nix ?
<rap-god>
8====D
rap-god has quit [Quit: leaving]
<nature>
yes lassulus and samrose_ but I want to set it up with the extensions and such, like you would do with programs.chromium or better with home manager
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to staging-20.03: https://git.io/JJyXq
Rusty1 has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #95206 → [20.03] gobject-introspection: Ensure the giDiscoverSelf is run before gappsW… → https://git.io/JJyXY
n9nes has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<{^_^}>
[nix] @edolstra merged pull request #3919 → demote remote build message to Info → https://git.io/JJyoO
<zangi>
how do I pass `noSysDirs` to my overlays? `all-packages.nix` doesn't seem to export `pkgs.noSysDirs` so I can't retrieve it from `self` nor `super`
alexherbo2 has joined #nixos
buffet has joined #nixos
alp has quit [Ping timeout: 260 seconds]
nonickname has quit [Read error: Connection reset by peer]
<Raito_Bezarius>
clever: hello, I'm inspiring myself from your justdoit.nix to make a BTRFS with remote unlock (ssh) and maybe in the future automatic decryption using recompile.se/mandos with a very automated script (not necessarily using kexec), I don't see any LICENSE file, how should I proceed? Can I reuse parts of your script? Is it enough to credit you? Is there any license? (I'm going to use GPLv3)
<{^_^}>
[nixpkgs] @danieldk opened pull request #95209 → broot: disable (impure) br shell function nag, install bash/zsh/fish files for the br function → https://git.io/JJy1g
john1 has quit [Quit: WeeChat 2.9]
abathur has joined #nixos
<clever>
Raito_Bezarius: go ahead
<cransom>
zangi: the simplest way to find out is always use self until it throws an infinite recursion error, then switch to super.
<bqv>
clever: you ever seen errors like these before? http://ix.io/2tUs
EsperLily has joined #nixos
<clever>
bqv: nope
<bqv>
Any ideas where to begin?
<Raito_Bezarius>
clever: awesome, thanks
<clever>
bqv: what are you even running, how was it built?
<bqv>
clever: those are specifically some nix-copy-closure runs
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #95210 → replacement: init at 0.4.4 → https://git.io/JJy17
<bqv>
They fail often with "invalid operation nnnn" or "end of file"
<bqv>
End of file has an issue on the nix repo
<bqv>
The former seems unique to me
<clever>
bqv: anything funky with the .bashrc on the remote end?
<clever>
bqv: can you reproduce it with normal nix-copy-closure?
xlei has quit [Ping timeout: 265 seconds]
<bqv>
clever: Oh, the remote host user shell is xonsh
<bqv>
But yes, can reproduce
<{^_^}>
[nixpkgs] @jonringer opened pull request #95211 → python37Packages.pendulum: fix build and add tests → https://git.io/JJy1F
<clever>
bqv: if you `ssh user@remote nix-store --version`, what exactly does it return?
<bqv>
nix-store (Nix) 3.0pre20200807_edfd676
<bqv>
>_>
<bqv>
Thats what I have locally too
n9nes has joined #nixos
<clever>
and it didnt print anything else?
<bqv>
Warning: Permanently added '10.0.0.1' (ED25519) to the list of known hosts.
xlei has joined #nixos
<bqv>
Otherwise, no
<clever>
not sure whats wrong then
<bqv>
:/
<bqv>
I'd like someone else to reproduce this before I make an issue, so I know it's not me being a muppet
<bqv>
..and so its more clear whats going wrong
<clever>
bqv: try doing `strace -ff -o logfiles nix-copy-closure --to user@host` and then pastebin the main log
<bbigras>
,locate ping
<{^_^}>
Found in packages: axis2, cjdns, grass, irssi, toybox, busybox, iputils, charybdis, inetutils, ircdHybrid, factor-lang, silc_client, bashCompletion, home-assistant, unixtools.ping, nodePackages.gtop
<{^_^}>
[nixpkgs] @ZerataX opened pull request #95213 → Vscode extensions/xaver.clang format → https://git.io/JJyDY
<{^_^}>
[nix-mode] @matthewbauer pushed to master « Don’t pare nix completions »: https://git.io/JJyDO
malook has quit [Quit: malook]
aswanson has joined #nixos
<aswanson>
afternoon everyone, I'm attempting to do an overlay of visidata and having trouble, and I think its because of the weird way it is entered into all-packages.nix. right now its `visidata = (newScope python3Packages) ../applications/misc/visidata {};
<aswanson>
I've never seen `newScope` before and I'm wondering if that will complicate the process of overlaying it
<nature>
What is the difference between installing home-manager like this: https://nixos.wiki/wiki/Home_Manager and simply adding `home-manager` to systemPackages ?
b1ackshadow has quit [Quit: leaving]
shabius has joined #nixos
inv has joined #nixos
inv has left #nixos [#nixos]
invokesus has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit opened pull request #95214 → bazel_3: use less resources when building Bazel → https://git.io/JJyDF
invokesus has quit [Remote host closed the connection]
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JJyyt
fendor has joined #nixos
b1ackshadow has joined #nixos
<infinisil>
nature: If you use the NixOS module, you can't use `~/.config/nixpkgs/home.nix` or `home-manager switch`, but instead you'll have to use `configuration.nix` and `nixos-rebuild switch`. So your whole home-manager config is handled via NixOS
cuken has quit [Remote host closed the connection]
<nature>
infinisil: thanks, what would be you recommendation ? using a separate home.nix or doing everything in configuration.nix ?
<infinisil>
eyJhb: Haven't tried it out, and it's a bit finnicky I'd expect, but it's probably the best thing for now
<infinisil>
nature: I personally like having everything in configuration.nix, especially because I'm the only user on my machine
<nature>
I kind of lie the idea of handling everething though a simple nixos-rebuild switch
<nature>
*like
<nature>
infinisil: Thanks, I'll go that route then
justanotheruser has quit [Ping timeout: 244 seconds]
<nature>
infinisil: Also follow up question, if I do a separate home-manager.nix file next to my configuration.nix, all I have to do is to add that file to the imports of my configuration.nix ?
<infinisil>
nature: You mean a home.nix file
<infinisil>
?
<nature>
I mean a separate file but next to my configuration.nix
<infinisil>
Yes, but it depends what's in the file whether it will work
shabius has quit [Quit: Leaving]
<nature>
If I do like in the wiki ?
<infinisil>
You can split your configuration.nix into arbitrary many files with just using `imports` to split it
o1lo01ol1o has quit [Remote host closed the connection]
<nature>
infinisil: okay, thanks
o1lo01ol1o has joined #nixos
<infinisil>
So you could have a separate home-manager.nix file that contains `{ home-manager.users.foo = ...; }`
<nature>
infinisil: yes, that's what I meant
<nature>
but also contains the fetchGit to get home-manager
<Raito_Bezarius>
I don't know if it's my network, but sometimes nixos-install is stuck on some downloads (dbus, sudoers, which looks like very small in terms of size), FWIW, it's a 1Gbps link
<infinisil>
nature: Yup that works :)
FRidh has quit [Quit: Konversation terminated!]
<nature>
infinisil: https://paste.rs/HAv like that, and then the import should work right ?
<nature>
infinisil: or is wrong to import a function ?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<infinisil>
nature: You added the { fetchGit } at the beginning, that doesn't work
<infinisil>
But if you remove that you can import that file in configuration.nix with `imports = [ ./the-file.nix ]`
<nature>
ok... adding the fetchGit makes it a function right ?
<infinisil>
Yeah adding that { fetchGit }: makes it a function
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<nature>
so then I would need to call the function instead of importing it if I wanted to do it that way ?
<infinisil>
There's nothing wrong with NixOS modules being a function, but they expect a specific set of arguments, and fetchGit isn't one of them
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<nature>
infinisil: ooooh ok, I thought you could declare arbitrary dependencies
shabius has joined #nixos
<infinisil>
nature: Why would you want to pass fetchGit via a function?
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<infinisil>
dependencies between?
<nature>
just to prevent the builtins.fetchGit, like importing it into the namespace
<infinisil>
No reason to want to prevent that
<nature>
I understand it doesn't make much sense, I am just trying to understand how the nix language work now ^^'
CodeSpelunker has quit [Quit: CodeSpelunker]
<infinisil>
I see
<nature>
the with keyword import the namespace right ? like I have systemPackages = with pkgs; [...]
<nature>
infinisil: ok! thanks, it make much more sense now
<Raito_Bezarius>
i'd like to avoid to include a Python script manipulating the nix exprs directly, that sounds like overkill
burkelibbey_ has joined #nixos
b1ackshadow has quit [Ping timeout: 240 seconds]
<burkelibbey_>
Is there a pattern in the module system for controlling the order when lists provided by different modules are merged together?
BenjiProd has quit [Quit: Leaving]
<symphorien[m]>
lib.mkAfter
<energizer>
what is the situation where you care about list order?
<burkelibbey_>
ahhhh that's exactly the kind of thing I was hoping for, thank you!
<infinisil>
Raito_Bezarius: Have a folder where you put all the modules you want to have imported, then `imports = map (file: ./folder + "/${file}") (attrNames (builtins.readDir ./folder));` should import all in that folder
<Raito_Bezarius>
I don't control imports in advance unfortunately
<burkelibbey_>
not strictly speaking in NixOS, I have a different module system that's generating different artifacts. In this case, it's a list of tasks to run in order.
<Raito_Bezarius>
it's the result of nixos-generate-config
<Raito_Bezarius>
I'd like to use the autodetect stuff if possible because it set up thing (UEFI/BIOS) that I don't want to handle myself
<infinisil>
Raito_Bezarius: Then move the autogenerated configuration.nix to generated-configuration.nix and write a new configuration.nix with `imports = [ ./generated-configuration.nix ]`
<Raito_Bezarius>
very good point
<infinisil>
Oh but also the generated configuration.nix doesn't have anything important in it
<infinisil>
Can discard that entirely, other than the hardware-configuration.nix import
<{^_^}>
"# Edit this configuration file to define what should be installed on\n# your system. Help is available in the configuration.nix(5) man page\n# and in the NixOS manual (accessible by running ‘nixos-h...
<Raito_Bezarius>
it produces another nixos-generate-config I suppose?
<Raito_Bezarius>
it's nice I'll keep it around in my head when I'll produce my own NixOS images
<infinisil>
It's what nixos-generate-config itself uses
<Raito_Bezarius>
I mean, can I just do "nix-build -A something" and get the nixos-generate-config standalone so I can copy it on remote systems to perform the stuff
<Raito_Bezarius>
or is it for a NixOS system?
<infinisil>
Ah you mean how you can build such a nixos-generate-config with a different configuration?
<Raito_Bezarius>
Exact
<Raito_Bezarius>
Otherwise I'm not sure how to use it in my context (which I haven't really explained)
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
veleiro` has joined #nixos
romildo has joined #nixos
veleiro has quit [Read error: Connection reset by peer]
romildo has left #nixos [#nixos]
Rusty1 has joined #nixos
erasmas has quit [Quit: leaving]
knupfer has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu>
Hello, I'm trying to use the Emacs Overlay, but it changes the `pkgs.emacs` attribute when I'd like it to change the `pkgs.unstable` attribute. `pkgs.emacs` is from 20.03, and I've pinned unstable to `pkgs.unstable`. How can I redirect the Emacs Overlay? https://github.com/nix-community/emacs-overlay/blob/master/default.nix
burkelibbey_ has quit [Quit: Connection closed for inactivity]
hplar has joined #nixos
hplar has quit [Client Quit]
hplar has joined #nixos
<mica[m]>
Is anyone else using the lensfun package?
ehmry_ has joined #nixos
<selfsymmetric-mu>
Oh I'm a sneak. I made my own overlay and put it before the Emacs Overlay.