<energizer>
situation: when i plug ssd over usb i can POST and get into Stage 1, but it doesn't find the main partition. When i plug same ssd over sata, i can't even get into Stage 1
<energizer>
any ideas?
<energizer>
just blinking underscore
<energizer>
when i mount the drive on another computer i can look around and everything seems fine
<clever>
energizer: did you use unetbootin or dd?
<energizer>
it's my main nixos system, i was running it yesterday
<colemickens>
do any of the irc bots do presence notification? so I can ask to be pinged when someone messages next?
<clever>
energizer: launch an interactive shell (i) and try to poke around, can you see the rootfs?
mariatsji has joined #nixos
<daddy_james[m]>
<daddy_james[m] "would I have to clear my nix sto"> this did not fix it btw
<energizer>
clever: the only way i know how to look around is blkid, and afaict lsblk doesn't even list the boot partition that is currently showing this screen
Mateon1 has quit [Remote host closed the connection]
<clever>
energizer: check lsusb, does the usb device show up?
<energizer>
clever: idk how to interpret that, it's just bus # device # id #
kalbasit_ has quit [Ping timeout: 240 seconds]
<clever>
energizer: the device id will be vendor-id and product-id pairs
mariatsji has quit [Ping timeout: 256 seconds]
<clever>
energizer: then run lsusb on another machine, with the same stick, do you see the same vid:pid pair?
<clever>
energizer: did dmesg in stage-1 show the usb stick connecting?
<energizer>
clever: there's a ton of stuff there so i might be missing it but i dont see an obvious "samsung ssd sata over usb"-lookin thing. the usb is a usb-sata adapter to a samsung sata ssd
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<clever>
energizer: if you unplug and replug the usb drive, does dmesg gain more lines?
<Akshay[m]>
I'm having some trouble with using `light` for backlight on my intel graphics laptop, I have enabled it with `programs.light.enable` and added my user to the `video` group, running light at the command line gives me the following:
<Akshay[m]>
running with `sudo`, however, works fine
<clever>
Akshay[m]: if you run `id`, does it say your in the light group?
<Akshay[m]>
clever: nope it dosen't
<clever>
Akshay[m]: you need to relog for changes to your groups to take effect
<Akshay[m]>
clever: ah i see, thanks, ill give that a go
<Akshay[m]>
clever: weird, the output of `id` is ```uid=1000(np) gid=100(users) groups=100(users),1(wheel),3(tty),17(audio),26(video),174(input)``` after a full reboot too
<clever>
Akshay[m]: how did you add yourself to the light group?
proofofkeags has joined #nixos
<Akshay[m]>
clever: i added myself to the `video` group, should I add myself to a `light` group as well? can't seem to find a group like that under `/etc/group`
<clever>
Akshay[m]: oh, misread the msg
<clever>
Akshay[m]: what output does the light command give? thats missing
<clever>
matrix didnt pass it on to irc
<Akshay[m]>
<Akshay[m] "light.png"> does this image contain relevant info?
<Akshay[m]>
clever: ah i see, gimme a mo, ill make a paste
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.crashtest: 0.3.0 -> 0.3.1 »: https://git.io/JJFnP
<ishan>
I have been using Nixos(unstable channel) for a while I have noticed whenever I update the system it has to download around 2GB of data. Is there a way I can improve this?
cybrian has joined #nixos
kraeXen has quit [Quit: [ - ]]
<ishan>
I mean reduce the data it downloads while updating the system.
<srhb>
ishan: Unlike in other distros, changes in a dependency propagates to every package that depends on it, changing their hashes at the very least.
pfr has quit [Ping timeout: 240 seconds]
palo1 has joined #nixos
<pikajude>
is there a functional replacement for pip2nix and pypi2nix?
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
griff_ has quit [Quit: griff_]
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
pfr has joined #nixos
mariatsji has joined #nixos
<ishan>
@srhb: That's a bummer because I can only use 2GB of data per day after which the speed is reduced.
<srhb>
ishan: Then you may wish to upgrade less frequently, or use stable.
<srhb>
ishan: Though even with stable releases, NixOS does require a lot more data transfer than normal distros.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<ishan>
srhb: yeah I might have to move away from it at some point but I might continue to use home-manager.
veleiro has quit [Ping timeout: 256 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<srhb>
ishan: home-manager has the same basic premise though -- it's an intentional feature of nix itself.
marusich has quit [Ping timeout: 244 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}>
[nixpkgs] @jonringer pushed 6 commits to python-unstable: https://git.io/JJFcw
<srhb>
siraben: Without -d (--delete-old) only unreachable store paths are deleted. --delete-old deletes all generations of all profiles that are not active currently, meaning the garbage collection root on all their store paths are removed as well, freeing them for deletion.
<srhb>
siraben: In practice, --delete-old, --delete-older-than 7d etc. makes it impossible to rollback / rollback to generations older than 7d.
<nate48423>
denaro and the american government is getting my human brain and i go through things like no sleep, not comprehending, changing taste of food. please tell your world leaders i dont want amaerica to get my human brain and its serious terrorism going on in the country with denaro chips inside of people
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos
mallox has joined #nixos
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
turion has joined #nixos
<{^_^}>
[nixpkgs] @priegger opened pull request #95655 → factorio: update all versions to 1.0.0 → https://git.io/JJFlg
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<siraben>
srhb: I see. Thank you!
cole-h has quit [Quit: Goodbye]
`_ has joined #nixos
user_0x58 has quit [Ping timeout: 244 seconds]
m0rphism has joined #nixos
Ariakenom has joined #nixos
<`_>
I'm having an odd issue in which I'm attempting to import all-ish nix files from a directory, via pkgs.lib.attrsets.mapAttrs', builtins.readDir, and import. Unfortunately some of these files have other relative imports such as ../../some-file.nix, which seems to cause it to fail. So with `importFromDir x` I'm seeing that it is using `/nix/store/somehash-x` as a directory from which to base relative
<`_>
paths off of, which is incorrect, given that x is not the root directory of my nix project.
<clever>
`_: dont quote paths and variables using paths
<`_>
clever: What do you mean?
<clever>
`_: path + "/${foo}" will remain as a path, and ../ can work, "${path}/${foo}" will copy path to /nix/store/hash-path and then ../ is /nix/store and it all breaks
justanotheruser has quit [Ping timeout: 272 seconds]
sangoma has quit [Read error: Connection reset by peer]
<_habnabit>
how do you do the equivalent of systemd unit dropins? using nixos's definitions for the docker and dnsmasq services, but i'd like to add a dropin so dnsmasq is after docker
<hpfr>
looks like emacs 27 needs --with-cairo to avoid imagemagick and to render color emoji, do I need to add this to configureFlags? surprised it's not exposed as an option when stuff like `nativeComp` is
davetapley has joined #nixos
vdemeester has joined #nixos
nz_ has joined #nixos
SrPx has joined #nixos
aristid has joined #nixos
joshmeredith has joined #nixos
r0bby has joined #nixos
alanz_ has joined #nixos
etrepum has joined #nixos
jared-w has joined #nixos
wpcarro has joined #nixos
mitsuhiko has joined #nixos
bradparker has joined #nixos
<hpfr>
just tried that and still not getting color emoji :/
s1341 has joined #nixos
teozkr_ has joined #nixos
knupfer has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Dr8128 has joined #nixos
<adisbladis>
hpfr: That's my bad :/
<adisbladis>
I could swear I added --with-cairo, but it seems I didn't push it
cosimone has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @adisbladis opened pull request #95668 → emacs: Add --with-cairo when X is enabled → https://git.io/JJFgL
<{^_^}>
[nixpkgs] @adisbladis merged pull request #95668 → emacs: Add --with-cairo when X is enabled → https://git.io/JJFgL
<Dr8128>
Is Ethereum Classic avaliable? "nix search ethereum classic" gives "* nixos.altcoins.go-ethereum-classic (go-ethereum-classic)" but listing altcoins.go-ethereum-classic and go-ethereum-classic do not work.
<Dr8128>
I mean they do not work in my systemPackages in my config files
<Dr8128>
file*
la-jesystani has joined #nixos
fendor has joined #nixos
<adisbladis>
Dr8128: It was removed a bit over a year ago since it had no acive maintainer and didn't build any more
sangoma has quit [Ping timeout: 240 seconds]
fendor__ has joined #nixos
fendor_ has quit [Ping timeout: 260 seconds]
<Dr8128>
adisbladis: Thanks. Guess I'll just make a custom package, then.
sputny has joined #nixos
<adisbladis>
Feel free to add it to nixpkgs if you are willing to maintain it :)
<hpfr>
I recompiled with --with-cairo but still don't get color emoji for what it's worth
turlando has joined #nixos
fendor has quit [Client Quit]
fendor__ is now known as fendor
<adisbladis>
hpfr: I think it also depends on your font?
<hpfr>
yeah I've tried with `(set-fontset-font t 'symbol "emoji" nil)` but get nothing, I have emojis working fine with fontconfig so idk
<Mic92>
fnlaai: it's because nixos don't hard code ld-linux-x86-64.so.2 to /lib/ld-linux-x86-64.so.2 but usese a path in /nix/store You can use autoPatchelfHook or buildFhsUserenv to fix this
nixbitcoin has quit [Remote host closed the connection]
turlando has quit [Ping timeout: 256 seconds]
nixbitcoin_ has joined #nixos
<Mic92>
linux-vdso.so.1 is always provided by the kernel on NixOS and other linux-based distributions.
<Mic92>
It does not appear in ldd because the kernel maps it at runtime.
<fnlaai>
(0x00007f732a2fe000) /lib64/ld-linux-x86-64.so.2 => /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib64/ld-linux-x86-64.so.2 (0x00007f732bfd1000)but Mic92 i guess the binary was right?
guest34 has quit [Remote host closed the connection]
<fnlaai>
and then tried
<fnlaai>
tried to run it
<fnlaai>
bs-platform is though to run anyway must have do this and those
<{^_^}>
[nixpkgs] @erikarvstedt opened pull request #95682 → nixos-option: use the system's nix package → https://git.io/JJFK6
<fnlaai>
yorick i guess it'll work without bs-platform
<fnlaai>
?
<yorick>
fnlaai: bs-platform has is all the reason binaries with the path set correctly
<hpfr>
what happens if you list your host machine as a remote builder? you can ssh to your own IP, would it do that or would nix know it's not remote
<yorick>
fnlaai: I do mkdir node_modules && ln -s /nix/store/...-bs-platform-7.3.2 ./node_modules/bs-platform, then I do npm install to get the rest
<fnlaai>
@yori
<yorick>
hpfr: I *think* it knows it's not remote when it's exactly 'localhost'
<yorick>
(with bs-platform from nixpkgs)
<hpfr>
yorick: hmm the use case I'm considering is having a shared list of remote builders with names from ssh config that map to a static IP on my local network
<fnlaai>
yorick are you able to use to use refmt?
philr has quit [Ping timeout: 240 seconds]
<yorick>
fnlaai: hmm, no, that's in 'reason' in nixpkgs
<yorick>
fnlaai: but you can just install that
<yorick>
you're doing native reason?
<fnlaai>
yeah i was trying it right now
<fnlaai>
I plan to write reason web(react) and native also, cause anyway it was syntax sugar for ocaml right?
<yorick>
yeah
<fnlaai>
the esy thingy also hard to do, must do nix-shell thingy this and those before u able to execute
<{^_^}>
esy/esy#858 (by dejanr, 1 year ago, closed): Not installed globally on NixOS
mariatsji has quit [Read error: No route to host]
mariatsji has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
smatting_ has joined #nixos
<fnlaai>
@yorick bs-platform is easy to install locally it's just need deps, pass it with nix-shell -p gcc this and those deps, and yuck, it must be installed locally, idk globally haha
<yorick>
fnlaai: you can nix-shell -p bs-platform
<{^_^}>
[nixpkgs] @mweinelt opened pull request #95683 → ansible: 2.9.12 -> 2.10.0; ansible_2_7: drop → https://git.io/JJF6g
<guest123>
in the `/root/.nix-defexpr` I do not have Git installed so I cannot clone the nixpkgs and build from there. I dunno how to proceed. Any help would be much appreciated.
<sphalerite>
guest123: the hash shouldn't really need changing, that's weird.
<sphalerite>
guest123: that said, you should be able to copy the nixpkgs already on there from /root/.nix-defexpr and modify then use that.
<sphalerite>
guest123: much like a git clone but without any git :)
<fnlaai>
yorick npm i -g bs-platform with .npm-global set is ok
<guest123>
sphalerite I didn't know I could simply copy-paste and edit. I will give it a try. Thanks!
dingenskirchen has joined #nixos
turlando has joined #nixos
dingenskirchen has quit [Client Quit]
orivej has joined #nixos
kleisli has joined #nixos
<iwq>
is there a way to generate a structure(pkgs = { key1 = { subkey1 = true; } } etc) of pkgs using Nix without evaluating the whole nixpkgs?
<iwq>
i've tried f = v: (builtins.mapAttrs (name: value: if (builtins.tryEval value).success && ! pkgs.lib.isDerivation value && builtins.isAttrs value then f value else name) v);
<iwq>
(the else name should actually be else true there)
<infinisil>
iwq: lib.filterAttrs
<iwq>
but although it seems to work for top-most level, when i try to traverse the structure it evaluates something and fails at AAAAsomething
<iwq>
infinisil: (pkgs.lib.filterAttrs (name: pkgs.lib.isDerivation)) pkgs also tries to evaluate the (on-purpose) failing package
knupfer has joined #nixos
<infinisil>
iwq: Well if you only need key1 then it's `filterAttrs (name: value: name == "key1")`
<a-h>
Has anyone encountered an error like "The option `nixpkgs.localSystem' defined in `<unknown-file>' does not exist."? If the file isn't known, where can I look to solve the problem? :)
<a-h>
Has anyone encountered an error like "The option 'nixpkgs.localSystem' defined in '<unknown-file>' does not exist."? If the file isn't known, where can I look to solve the problem? :)
<{^_^}>
LnL7/nix-darwin#216 (by roberth, 1 day ago, open): documentation: Don't set localSystem which doesn't exist
<iwq>
infinisil: i need to generate the whole (import <nixpkgs> {}) tree structure, not only a specific key
alp has quit [Read error: Connection reset by peer]
alp_ has joined #nixos
<infinisil>
iwq: No idea what you mean by your example then
<a-h>
@{^_^} - Thanks!
mariatsji has quit [Ping timeout: 260 seconds]
<infinisil>
a-h: (that's a bot fyi :))
<a-h>
Ah, that does make sense. :)
<a-h>
Because the issue doesn't really help.
<infinisil>
Well, I linked to it, the bot just showed its info lol
<iwq>
infinisil: for all sets in (import <nixpkgs> {}) i want to a: if the value is not a set, change it to `true` b: if the value is a set, goto the start of my message
<a-h>
It is, it's just that I'm not referencing localSystem in the darwin-configuration.nix file.
<a-h>
I get that the documentation might be wrong, and lead people to using it, but I'm not.
<a-h>
I had a happy system until this morning.
<a-h>
I wanted to upgrade to the latest version of Go, but something went _very_ wrong and I ended up with incorrect permissions on the nix store directory.
meck has quit [Client Quit]
<a-h>
I probably did something stupid, so I wiped out /nix and tried reinstalling everything from scratch.
<a-h>
That's the point of nix, right...
<infinisil>
a-h: You don't have to reference localSystem to get that error, it's referenced mistakenly internally in nix-darwin, and the PR fixes it
meck has joined #nixos
<a-h>
Thanks, that makes sense. So it seems I have a broken system until I can install the PR'd version or find another workaround.
<infinisil>
I guess you can disable the docs to work around it
waleee-cl has joined #nixos
<a-h>
Any pointers on how to do that? I'm not sure how I'd go about disabling the documentation. I didn't realise it wasn't a change to a README or something until you said!
<infinisil>
documentation.enable = false
<{^_^}>
[nixpkgs] @FRidh opened pull request #95687 → pythonPackages.toPythonModule: also support `overridePythonAttrs`. → https://git.io/JJFPj
fnlaai has quit [Remote host closed the connection]
<a-h>
Thanks infinisil - that really did the job. I'm back in business.
<infinisil>
iwq: I see, you were close with the tryEval thing, the problem is that isDerivation itself can fail to evaluate, so you need to tryEval that
<a-h>
Really appreciate it!
<infinisil>
a-h: Np :)
sangoma has quit [Read error: Connection reset by peer]
<a-h>
I can get back on to my fun work - writing a Gemini server in Go - http://github.com/a-h/gemini - I need to upgrade Go so I can use some new features that improve extensibility of client TLS certificate management.
<iwq>
infinisil: thanks! that gets me further, I still have a little problem, when I try to builtins.toJSON the result, nix-repl segfaults, so i'm guessing there is infinite recursion going on somewhere
<infinisil>
Try to use nix-instantiate --eval instead, nix repl has some weird semantics sometimes
<graf_blutwurst>
a bit of an embarassing question but does anyone have an idea how to add ihp using niv?
orivej has quit [Ping timeout: 246 seconds]
<infinisil>
graf_blutwurst: Not sure why that would be embarassing, but if you have used niv before, it shouldn't be any different than any other repo
`_ has quit [Quit: WeeChat 2.6]
<graf_blutwurst>
infinisil: I would have thought so (niv add digitallyinduced/ihp) but then i get this "opening file '/nix/store/rqicvsk1l14sjjwimsrs7wq8kk59qv1c-ihp-src/default.nix': No such file or directory"
<infinisil>
graf_blutwurst: You can only do `import sources.foo` if that source has a default.nix file in the root, otherwise you need `import (sources.foo + "/some-other-file.nix")`
<graf_blutwurst>
ahhh i see. I'll tinker around with this! but that makes sense thanks!
<srhb>
AndersonTorres: Well, fonts.fontconfig.enable = true is not sufficient to trigger that error on that commit of nixpkgs (if that's also what you're building)
<AndersonTorres>
I am using unstable channel.
<srhb>
AndersonTorres: Yeah. You must have some other relevant config/overlays/whatnot that causes the issue.
<srhb>
AndersonTorres: Look for references to fontconfig_210. You should have none.
<Ke>
thoughtpolice: does trace-cmd -T work for you?
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<jumper149>
What are the different ways to manage the user environment (packages) declaratively on NixOS? Only home-manager and the nixos-option environment.systemPackages?
<infinisil>
,declarative jumper149
<{^_^}>
jumper149: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
cfricke has quit [Quit: WeeChat 2.9]
ManiacOfMadness has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
slack1256 has joined #nixos
fendor_ has joined #nixos
fendor_ has quit [Client Quit]
ManiacOfMadness has joined #nixos
o1lo01ol_ has joined #nixos
ManiacOfMadness has quit [Read error: No route to host]
guest123 has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
slack1256 has quit [Ping timeout: 264 seconds]
kraem has joined #nixos
Habbie has quit [Ping timeout: 260 seconds]
Spiney has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @ehmry opened pull request #95692 → nim: patch to fix dynamic library loading → https://git.io/JJFdO
Spiney has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
justache is now known as itamz
<pbogdan>
just upgraded to latest nixos-unstable and it seems fonts installed with home-manager are no longer recognised / picked up at all
itamz is now known as justache
<pbogdan>
is that intentional or some sort of regression?
<{^_^}>
[nixpkgs] @LnL7 merged pull request #95364 → neovim: fix build on Darwin → https://git.io/JJ7Um
<ottidmes>
Mic92: Good to know too, but I meant whether you can freely use those github workflows, I mean, it looks like VMs, and I thought that cannot be just free
<Mic92>
ottidmes: its free for opensource project and they have some free minutes for private repos as well.
malik has joined #nixos
<ottidmes>
Mic92: Cool :) Guess I will be using them too then
<Mic92>
ottidmes: you could also use https://github.com/Mic92/nixos-shell to quickly test nixStable/nixUnstable on your own machine, but CI is always a good idea for testing contributions.
<vika_nezrimaya>
and boom, I have the path to Wine I used last time I played the game, before updating
<vika_nezrimaya>
On topic of Nix store paths, is there a way, knowing the hash for a package, to get a Nixpkgs revision that can produce that exact package from its expressions?
<clever>
vika_nezrimaya: ah, that sounds like a handy command, ive previously just used: ls -l /nix/var/nix/profiles/system*/sw/bin/wine
<clever>
vika_nezrimaya: that just lists every version of wine used for every past generation
<vika_nezrimaya>
I use `nix shell nixpkgs#wineStaging` to get the newest Wine every time
<vika_nezrimaya>
so I don't really have Wine in my profiles
<clever>
vika_nezrimaya: not directly, but if you use what i just gave, you can find the nixos that contained that wine
<clever>
and the nixos derivation puts a nixpkgs rev into its name
<vika_nezrimaya>
I don't install Wine in profiles
<clever>
ah, but if its not in a profile, you have problems
<clever>
youll need to bisect nixpkgs and use nix-diff
<srhb>
vika_nezrimaya: In general no, there's no way back. It reduce to sifting through hashes and seeing if either you or someone else (hydra) had it, so you can figure out the expression from there
<vika_nezrimaya>
Hm, I bisected Nixpkgs before to reproduce bugs
<clever>
first, `nix-store -q --deriver /nix/store/foo` to find the .drv for the given path
<vika_nezrimaya>
--deriver?
<clever>
then `nix-instantiate -A wineStaging` in a nixpkgs clone, to get a drv for the current checkout
<vika_nezrimaya>
never heard of this flag
<clever>
and then nix-diff to compare the 2 drv files
<clever>
then decide if its newer or older (compare versions of deps) and bisect good/bad
<clever>
repeat until there is no diff
<vika_nezrimaya>
clever: unknown-deriver
<vika_nezrimaya>
is this normal?...
<clever>
then you garbage-collected the .drv file
<vika_nezrimaya>
oops! :3
<clever>
and your only solution is brute-force
<vika_nezrimaya>
stuff happens
<clever>
`nix-instantiate -A wineStaging` every revision of nixpkgs, until you get a match
<vika_nezrimaya>
oh noes :3
<vika_nezrimaya>
that's rough
<vika_nezrimaya>
could leave it overnight though
<clever>
you can narrow the search, by only bothering with revisions where wine is the same version
<vika_nezrimaya>
I really need a way to query Hydra
<clever>
and start at the most recent, then work backwards
<vika_nezrimaya>
Hydra builds every single revision of Nixpkgs so surely it could contain the same revision of Wine and know which derivations produced it
<clever>
yeah, it should be in the hydra DB
<clever>
what store path are you using, what was the registrationTime time for it?
<ottidmes>
bqv: lol, I put the thing, including vika nezrimaya into Google Translate with detect language thinking it was some language I was not familar with, but its a name :P good to know
<bqv>
Vika is a person, silly
blub has joined #nixos
<vika_nezrimaya>
I am in fact a person
ScottHDev has joined #nixos
<vika_nezrimaya>
Vika is short for Victoria
bennofs has quit [Ping timeout: 260 seconds]
<vika_nezrimaya>
it's a female name
<vika_nezrimaya>
and Nezrimaya (actually, Незримая) is my mothertongue Russian for "Invisible" but in a fancy way
<vika_nezrimaya>
something between invisibile and imperceptible
<vika_nezrimaya>
it's a convoluted metaphor about me being trans basically
<wpcarro>
any `buildkite-agents` users here? The systemd unit that's attempting to start `buildkite-agent` cannot read my `/etc/secrets/buildkite-agent-token` because `permission denied`. I suspect it needs `sudo` for the user, but now I'm a bit lost
<wpcarro>
The user is `buildkite-agent-socrates`, which is a name that the Nix express that writes the `systemd` unit generates
<clever>
wpcarro: are you using the systemd service for it?
<wpcarro>
`services.buildkite-agents`
<ottidmes>
vika_nezrimaya: My bad! If I put the Russian into translate I do indeed get invisible
<clever>
wpcarro: plus nixops?
bahamas has quit [Ping timeout: 264 seconds]
<wpcarro>
clever: no nixops atm
<clever>
wpcarro: sounds like you just need to chown /etc/secrets/buildkite-agent-token to the right user
<ScottHDev>
Hello, do you know if a sambanetfs module exists or am I oblige to touch the system files?(I'm trying to mount a samba share as non root)
<wpcarro>
clever: that sounds reasonable. Can I express that in Nix code? Or should I just do it ad-hoc?
<vika_nezrimaya>
Currently bisecting Nixpkgs to determine which commit introduced the bad Wine
<clever>
wpcarro: if the key was created manually, then you also need to chown it manually
<blub>
Hi, can someone please help me on building a kde tool. I'm talking about this one https://store.kde.org/p/1127039/ I just cloned the repo from here https://gitlab.com/ita1024/semantik created a shell.nix and tried to build by starting with ./wav configure build, but get this error Could not find Qt5Svg - Semantik requires Qt >= 5 and dont know how
<blub>
to fix it, and couldnt find a tutorial or documentation about it
<wpcarro>
clever: brilliant - thank you
<clever>
vika_nezrimaya: and then you can go further, bisect wine to find out which commit broke it!!
<vika_nezrimaya>
since I have a Nixpkgs checkout on my laptop for debug purposes
smatting_ has joined #nixos
<ScottHDev>
hmmmm. This doesn't look like a derivation, though I don't really know what mkShell does.
<ScottHDev>
could I just replace it with libsForQt5.mkDerivation?
lawr3nce has joined #nixos
<wpcarro>
clever: I ran `chown buildkite-agent-socrates /etc/secrets/buildkite-agent-token`, but when I test `sudo -u buildkite-agent-socrates cat /etc/secrets/buildkite-agent-token`, I still get a `Permission denied` error. Do I need to alter directory permissions as well?
<clever>
ScottHDev: its just a function that calls stdenv.mkDerivation and sets a name for you
<clever>
ScottHDev: i try to avoid it, since it causes more confusion
<ottidmes>
Is there already an estimate when 2.4 will be the next nixStable? Will that be 20.09 or is it simply not yet clear?
<clever>
wpcarro: you need +x on a directory in order to do anything with the contents of a directory
dingenskirchen has joined #nixos
<ScottHDev>
Do you try to avoid mkShell or libsForQt5.mkDerivation clever
<ScottHDev>
?
<clever>
wpcarro: either other+x, group+x or owner+x
<clever>
ScottHDev: mkShell, because it confuses people when they need to siwtch to libsForQt5.mkDerivation
<ScottHDev>
Ok
fnlaai has joined #nixos
<fnlaai>
hello again
Nafai has joined #nixos
<wpcarro>
clever: setting `chown +x /etc/secrets` worked... great! I never knew directories need executable flags for files to be read from them...
smatting_ has quit [Ping timeout: 272 seconds]
<blub>
it says error: attribute 'mkDerivation' missing, at /src/semantik/shell.nix:3:1
<clever>
wpcarro: +r on a dir lets you list the contents, +x lets you interact with the contents (cd, and do anything with a content)
orivej has quit [Ping timeout: 256 seconds]
<clever>
wpcarro: +x only, means you are blind, and must know the name to open a thing
<wpcarro>
that's really vital to know - ty
<vika_nezrimaya>
that's why all dirs are 755 and files are 644 with the default umasks
<ScottHDev>
Yep, @blub
<clever>
but private stuff may be o-rwx, to cut outsiders off
<ScottHDev>
I'm currently figuring out how to build semantik
justanotheruser has joined #nixos
kraeXen has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<vika_nezrimaya>
clever: and REALLY private stuff will be 600 or 700 to prevent tampering even within the group
<clever>
yeah
<vika_nezrimaya>
like SSH private keys or GnuPG keychains!
<clever>
i also try to -w any secret keys and their matching pub file
<clever>
so they never get out of sync
<wpcarro>
where can I learn more about these conventions? Just experience?
lawr3nce has quit [Remote host closed the connection]
<blub>
ScottHDev thank you a lot!
<clever>
wpcarro: i think its in a man page, but i forget which one
<clever>
wpcarro: when i was new to linux, i just dove head-first into /usr/share/man/ and read half the pages ......
<vika_nezrimaya>
clever: nice trick
<ottidmes>
wpcarro: its mentioned in the manpage of chmod, had it happen to me few months back to, owner had +x, but my friend had trouble working with my files only to find out that group did not had +x
<wpcarro>
clever: I think I ought to do that...
<wpcarro>
ottidmes: I'm worried that I'll get burned by this again!
<wpcarro>
even though it makes sense rn
<vika_nezrimaya>
And I only recently learned about git init --shared
<vika_nezrimaya>
that allows to automatically allow the current group to access your repository and push into it
<ottidmes>
wpcarro: made a helper shell function for it that fixes those permissions for me among other things
<wpcarro>
ottidmes: useful form of documentation ime
* vika_nezrimaya
thinking of eschewing Gitlab and Gitolite and just use Gitweb and SSH push access to a shared repo, gated by /etc/passwd
<clever>
vika_nezrimaya: i did mess with that kind of thing over ssh and nfs in the past, but now that ive paid for my github, i have unlimited private repos, so i dont bother with it as much
<vika_nezrimaya>
clever: I'm kinda happy with public GitLab repos except they don't have ARM64 runners which I really-really need to build stuff for my RPi
<clever>
vika_nezrimaya: have you seen the command= stuff in authorized_keys ?
<ottidmes>
wpcarro: yep, that was part of it, also in line with the Nix way of going about it, making it explicit in my config somewhere
<{^_^}>
[nixpkgs] @gebner opened pull request #95701 → source-han-*: reduce closure size by 2x → https://git.io/JJFhB
<vika_nezrimaya>
clever: I've heard of it and used it once to restrict a user account with a certain key to only playing a harmless game via SSH
<vika_nezrimaya>
it can restrict the commands that user can run and forward the commands to a special command that decides if the user is allowed to run a command or not
<vika_nezrimaya>
as far as I can remember
<clever>
vika_nezrimaya: yep
<vika_nezrimaya>
so why did you mention it?
<clever>
just thought you might want to know of it, and use it for stuff
<vika_nezrimaya>
:3
<vika_nezrimaya>
well I do know of it, just not using it too much
dongcarl has quit [Read error: Connection reset by peer]
kim0 has joined #nixos
nij has joined #nixos
<nij>
Removed windows on my gf's old laptop and tried to install archlinux.
dongcarl has joined #nixos
<nij>
My usual installation workflow for thinkpad didn't work..
<nij>
So I installed nixOS instead, thinking it would be harder.
<nij>
But it's so easy =___= and configuration.nix worked almost right away.
<nij>
(in love <3)
<srhb>
nij: Nice :)
fendor has quit [Remote host closed the connection]
cloud has joined #nixos
<vika_nezrimaya>
NixOS has a big feature which can bite you sometimes
georgyo_m is now known as georgyo[m]
<vika_nezrimaya>
If it works, it works all the time. If it doesn't work, it will never work with the same configuration
<nij>
vika_nezrimaya: That's great to know! I plan to migrate fully into nixOS, so it'd be nice to be precautioned.
<nij>
What were some cases for you?
<vika_nezrimaya>
Well, right now the reproducibility allows me to trace bugs to certain changes in software (like my example with Wine above - my game wasn't running well after an update so I'm tracing which change introduced this) and to ensure I can always recreate my whole system from scratch
<vika_nezrimaya>
Let's say my laptop's hard drive dies
<vika_nezrimaya>
I buy an SSD, pop it into the system, pop in a NixOS flash drive
<vika_nezrimaya>
download my configuration and realize it
<vika_nezrimaya>
and I'm running again in five minutes + how much is needed to download all the programs
<vika_nezrimaya>
Considering I have a non-standard WiFi card that requires an out-of-tree kernel module that's great
<ottidmes>
Same with VPSes, with NixOS it is now a breeze for me to switch to another VPS provider
<cloud>
I'm trying to make the Spotify icon show up under Gnome. On my NixOS install, ~/.nix-profile/share contains an icons folder, which has, among others, the spotify-client.png. Now I'm on Arch with Home Manager and the icon folder is missing. I was trying to figure out why and noticed that while HM has extraOutputsToLink, it does not have pathsToLink ... is there a reason why and could that be the
<cloud>
reason why spotify's icon does not work under Arch + HM?
ncf is now known as nf
spudly has quit [Ping timeout: 256 seconds]
<nij>
vika_nezrimaya: I had similar problem. If you use configuration.nix autogenerated by nixos, and inject your own setup after things are setup, will that be fine?
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
<bqv>
if i play my cards right, my system will soon be so declarative that it's actually possible for me to up and move my entire desktop in one swift motion, both infrastructure and data
<vika_nezrimaya>
As long as you back up your configuration.nix and remember which NixOS and nixpkgs revision you're using, you'll be able to recreate your system back from oblivion byte-for-byte
spudly has joined #nixos
<vika_nezrimaya>
My tooling does this for me (git + Nix flakes, a proposed standard for reproducible Nix expressions)
<vika_nezrimaya>
(+ a wrapper I wrote, inspired by nixos-rebuild)
<rycee>
cloud: Try adding `targets.genericLinux.enable = true` to your configuration, switch, and relog.
<bqv>
i like it more than nixops
<nij>
emacs-doom is a distro of emacs
dongcarl has joined #nixos
<nij>
(done well recommended)
kraeXen has quit [Ping timeout: 240 seconds]
<rycee>
cloud: Ah, the directory is not there at all? Then I have no idea.
<ottidmes>
My system still has some stuff that is impure (projects with uncommited files and such) that I do not want to give up, hence I have yet to commit to using flakes yet
<nij>
niso: what's that overlay stuff about?
knupfer has quit [Remote host closed the connection]
<niso>
nij: no, the main reason to use overlays is to modify existing packages
<nij>
(the nix wiki has a picture explaining overlay.. but I don't get it :(
<nij>
niso: hmmm..
<niso>
nij: e.g. if a package declaration doesnt' fulfill your needs, or you want to enable a feature flag
<nij>
What if I want my ranger.rc to be included as a part of my nixos system?
<niso>
nij: checkout home-manager for managing config-files
<nij>
oh
<srhb>
nij: Think of overlays as functions that take nixpkgs as input and produce a slightly different nixpkgs, to your specification.
<srhb>
That's really all there is to it
<nij>
hmmm so should i use overlay, or home-manager?
<srhb>
They are not orthogonal. :)
<nij>
@@
<srhb>
I use both.
<vika_nezrimaya>
infinisil: hi! :3 I just got a stack overflow by trying to evaluate github:infinisil/nixus/master#example/default.nix, is this normal?
<nij>
@_@
Kurt44 has joined #nixos
<niso>
nij: with home-manager use can use e.g. home.file to specify a file's target/source and it will be automatically copied to the store
<srhb>
nij: Overlays is the sort of thing you grab for when you need to add or modify a package locally
<niso>
nij: and symlinked to the target
<srhb>
nij: home-manager is NixOS for your home dir.
<ScottHDev>
Do you know if a sambanetfs module exists or am I oblige to touch the system files?(I'm trying to mount a samba share as non root)
fnlaai has quit [Remote host closed the connection]
<nij>
For ranger and qutebrowser, every time they are launched they read the rc file. In this case what would you use?
<infinisil>
vika_nezrimaya: Also which one for you?
<nij>
If an rc file sources another external source, that would not be good.
<bqv>
nix (Nix) 3.0pre20200814_13e49be
<niso>
nij: but to get started emacs might be the last thing you want to migrate. especially in the beginning if you get stuck, it's nice to have an editor you can modify
<infinisil>
3.x :o
<nij>
Or we should include all what is sourced into our hash.
<vika_nezrimaya>
2.3.7 for this one, 2.4pre20200521_00b562c for flakes
<vika_nezrimaya>
wait WE HAVE nix 3.0 ALREADY?!!
<vika_nezrimaya>
Since when?!
<srhb>
A few weeks or so.
<bqv>
eelco bumped the ver like a week ago
<srhb>
Very pre though.
<nij>
niso fortunately vim is fine for me too
<bqv>
it's not a release
<nij>
niso: thanks for that tip
<srhb>
infinisil: I believe it's a real stack overflow though
<niso>
nij: yw, i was just comming out of a 2day-limbo after a failed migration :P
<vika_nezrimaya>
srhb: i'm all about using software that CLEARLY SAYS "do not use in production" in production
<vika_nezrimaya>
I guess that's why I still don't have a job
<srhb>
infinisil: Setting stack and rerunning a few times actually causes resource temporarily unavailable.
<nij>
niso: So would emacs-overlay solve that problem?
<nij>
Does it include what my emacs.rc source?
<nij>
s/source?/sources?
<niso>
nij: i think emacs calls it init.el :P
<nij>
yep just in case you are not familiar ;P
metreo has joined #nixos
bahamas has quit [Ping timeout: 256 seconds]
<niso>
nij: and yes, i think so, however i'm not using it myself - it's still on my todo list
<srhb>
infinisil: Sorry, limiting it :)
<nij>
niso: :D :D gotcha
<infinisil>
Argh I can't reproduce, using nix from latest nixpkgs master
<nij>
i should also limit my time use on this laptop.. nixos is so addicting
<bqv>
infinisil: daemon?
<nij>
my work is lacking speed cuz i spent too much time with my nixos xD
<infinisil>
`nix-build -A nix` in nixpkgs master repo, then ~/src/nixpkgs/result/bin/nix-build example still works
<niso>
nij: one thing which made me pospone it is that init.el is source code, thus i'm constantly modifying it, thus i need a development workflow (since i don't want to switch the system-state after each change)
<infinisil>
bqv: Not for the daemon no, though I think evaluation happened in the client
<infinisil>
happens
<vika_nezrimaya>
infinisil: which means that we got a heisenbug? in a Nix-based project?!
<vika_nezrimaya>
I thought that's impossible with Nix
<Mic92>
nij: Leechblock for firefox helps with that.
orivej has joined #nixos
<nij>
Mic92: I thought that only blocks firefox?
<nij>
Mic92: on my arch machine I have a script that kills certain stuff at certain time
<infinisil>
vika_nezrimaya: Were you able to make it work with nix version 2.3.7?
<nij>
I handed my root password to my gf who knows little about IT so i think im fine
<infinisil>
Oh was that the "unexpected end-of-file"?
<vika_nezrimaya>
yep
<Mic92>
nij: yes. not sure what aspect you want to block.
<nij>
even without internet nixos is fun toy for me
<nij>
there's really no way now :'(
<vika_nezrimaya>
Don't worry, you'll get used it
<vika_nezrimaya>
You just need a period of time to play with your shiny new system
<vika_nezrimaya>
Then eventually you WILL run out of things to tweak and/or your procrastination will take over
<vika_nezrimaya>
and you'll be back to normal
<Mic92>
yeah at some point everything just work.
<infinisil>
vika_nezrimaya: Um so try using your normal nix version and pass -v or so
<infinisil>
I'd like to have some trace to maybe see what's going on
<nij>
hope that day will come soon :D
<vika_nezrimaya>
infinisil: it prints every file it evaluates
<infinisil>
But probably only for a specific nix version
<infinisil>
Or recent ones
<srhb>
I believe the way xen/generic.nix uses @args blows up
<{^_^}>
[nixpkgs] @rycee opened pull request #95706 → openambit: init at 0.5 → https://git.io/JJbv7
<srhb>
Probably in combination with checkMeta
<vika_nezrimaya>
Wait, I got a different error!
<vika_nezrimaya>
error: file 'nixpkgs/nixos/modules/profiles/qemu-guest.nix' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/vika/Projects/nixus/example/hardware-configuration.nix:8:7
<infinisil>
WHAT
<vika_nezrimaya>
I don't have a NixOS channel
<bqv>
lmao what
<infinisil>
How can there be 4 different behaviors for the same thing
<bqv>
that sounds so very wrong
<vika_nezrimaya>
I used flakes every time I wanted to build my system? and I just never used channels?
<srhb>
fwiw I noticed nix 3 generating invalid store paths during the "end of file" error
* vika_nezrimaya
rolling on the floor
<infinisil>
Okay I'll just try updating the nixpkgs used in the example
<infinisil>
Stand by
<bqv>
vika_nezrimaya: oh no not the channels thing, i don't either
<vika_nezrimaya>
"weird errors" I am myself a weird error of nature
turion has joined #nixos
<infinisil>
:P
<bqv>
infinisil: works now :p
<vika_nezrimaya>
evaluating...
<bqv>
or at least, it's doewnloading something
<infinisil>
Nice, that's one down!
<joesventek>
Anyone successfully using udiskie on NixOS? No matter what I try, udiskie tells me: "unhandled device". However, using `udiskctl mount` works just fine.
<joesventek>
Any ideas?
<vika_nezrimaya>
Ouch, my computer dipped into my battery! so overloaded
<infinisil>
So actually now I'm not sure whether it was the impurity that caused this or the nixpkgs version
<infinisil>
But whatever
<infinisil>
(or which caused what)
<srhb>
Huh, guess I am mistaken then :)
<vika_nezrimaya>
infinisil: It was the Nixpkgs version used
<{^_^}>
[nixpkgs] @Ma27 opened pull request #95708 → Bump a few packages related to the Matrix ecosystem → https://git.io/JJbfW
<bqv>
vika_nezrimaya: suffice to say, you don't want the git-tag one. the nix-copy-alias one just replaces nix-copy-closure usage with nix copy
sputny has quit [Remote host closed the connection]
<vika_nezrimaya>
What about filter-known-hosts?
<bqv>
lol i just pushed that like 2 seconds ago, jesus
<bqv>
yeah skip that too, tbh
<bqv>
it just filters out some spam i get
<bqv>
i think that's just due to my ssh config
<bqv>
my known_hosts is /dev/null
* infinisil
wouldn't recommend that
<infinisil>
Like, not using known_hosts
<vika_nezrimaya>
Why
xlei has joined #nixos
<bqv>
it's a security feature
<infinisil>
It makes sure you're not connecting to the wrong server
<bqv>
i just ignore it
<bqv>
i do have visualhostkey on
<bqv>
in my defence
<infinisil>
By adding the servers public key to your known_hosts, you know to get the right server. Similarly how the server has your public key in authorized_keys to know you're the right person
<vika_nezrimaya>
You used let in an attribute set incorrectly, that's why it wouldn't parse.
<vika_nezrimaya>
I've extracted your let expression to the top of the file and made it return your configuration with home-manager variable injected into the scope.
<vika_nezrimaya>
Open two files side-by-side and observe the difference
<{^_^}>
{^_^}'s karma got increased to 212, that's Numberwang!
<vika_nezrimaya>
Numberwang?
<vika_nezrimaya>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 213
<nij>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 214
<nij>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 215
<nij>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 216
<vika_nezrimaya>
uwu
<nij>
Hmm
<nij>
now it works yay!
<vika_nezrimaya>
yay! :3
<nij>
but i wonder who defined the rule in home manager
<nij>
I have configured my git in home manager successfully
<nij>
but who decided what the rules are
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<nij>
If I want to configure another program XYZ in home manager, how would that work?
<wnklmnn>
Hi, I'm running NixOS on channel 20.03 with kernel 5.6.18. I'm trying to get linuxPackages_5_6.rtl8812au running but the build fails :( Should I open an issue for that?
<nij>
(assuming few people use "XYZ")
ixxie has quit [Remote host closed the connection]
<vika_nezrimaya>
nij: If the program XYZ loads its settings from a config file, the most basic option will be `{ home.files.XYZ = { target = ".xyzrc"; text = ""<verbatim config file>""; }; }`
<vika_nezrimaya>
OR
<vika_nezrimaya>
if the program uses .config/xyzrc you can do this:
<nij>
vika_nezrimaya: <verbatim> that means I need to paste the content in my expr.nix??!
<nij>
or just the path to it?
tokudan has quit [Remote host closed the connection]
<vika_nezrimaya>
The content itself
<vika_nezrimaya>
BUT
<vika_nezrimaya>
you can also include the text file itself by using builtins.readFile <path to your file, relative to the expr.nix>
tokudan has joined #nixos
eoli3n_ has joined #nixos
<vika_nezrimaya>
Every time the file you read changes, the build result will also change, reflecting the changes!
<rycee>
`home.file.".xyzrc".text = "<verbatim config file>";` or `xdg.configFile.xyzrc.text = "<verbatim config file>"` also works and might be a bit more ergonomic.
<vika_nezrimaya>
rycee: True! I personally prefer the keys in xdg.configFile to reflect program names
<vika_nezrimaya>
so I use the `target` extensively to rewrite the config paths
<vika_nezrimaya>
or I remember me doing that
<vika_nezrimaya>
Haven't really touched these bits in a long time
<vika_nezrimaya>
I just wanted to play a game but decided to debug Wine in Nixpkgs and now I'm helping people in IRC while it compiles. NixOS changed my life
<infinisil>
vika_nezrimaya: That's to prevent it from reusing a previous SSH connection. Because that line is supposed to check if a new connection can be established
<vika_nezrimaya>
What about #L175?
<bqv>
vika_nezrimaya: irc master race
<nij>
vika_nezrimaya: Wow so the magic lies in `builtins.readFile`
<vika_nezrimaya>
Yep! It imports the contents of ANY file as a string!
<nij>
it replaces the block with the actual content while building
<nij>
GREAT
<nij>
this is the thing that I was looking for
<vika_nezrimaya>
<3
<vika_nezrimaya>
Nix is awesome, isn't it?
<nij>
<3 <3
<nij>
so good
<nij>
we need larger user base
<nij>
and it's so easy to build a setup for beginners
<infinisil>
vika_nezrimaya: Same reason I think
<infinisil>
Hm
<nij>
i mean there are more and more people popularizing linux online recently
<infinisil>
I guess it's not essential there
<nij>
but not many people address nixos
<nij>
and in fact it's the easiest
<nij>
if one writes a nix config for beginner, then the beginner can always get the same stuff
sadmin has joined #nixos
<vika_nezrimaya>
NixOS is guaranteed to reproducibly work or not work, depending on your configuration, but it will always be consistent
<vika_nezrimaya>
If it fails, it will always fail unless you change something!
<vika_nezrimaya>
:D
<nij>
it needs more attention
<nij>
btw there's another similar os called guix
<nij>
has anyone used it?
<vika_nezrimaya>
Heard about it
<nij>
i switched from vim to emacs mainly because of lisp
<vika_nezrimaya>
Basically NixOS with lots of Lisp and repos containing strictly free software
<nij>
perhaps i would do that one day :'(
<nij>
(switching to guix)
<vika_nezrimaya>
you might like it, or not, depending on how much you depend on proprietary bits
<nij>
oh it's strictly free? :(
<bqv>
it used to support importing some nixos packages
<bqv>
not anymore
<vika_nezrimaya>
like redistributable Linux firmware or non-free programs like Discord
<bqv>
vika_nezrimaya: it just changed the nix code too much for that to work anymore
<nij>
hopefully someone will unfree guix again
<drakonis>
it definitely needs a lot of polish in some areas
kraeXen has joined #nixos
janneke_ has joined #nixos
janneke_ is now known as janneke`
janneke` has quit [Client Quit]
<nij>
vika_nezrimaya: you basically taught me through how to use home-manager
janneke has quit [Ping timeout: 244 seconds]
janneke_ has joined #nixos
<vika_nezrimaya>
Essentially home-manager is built around home.files and xdg.configFile, so, yeah, that's all you need to know about basic home-manager use
<nij>
and now many home.nix online become resourcess for me to study
<vika_nezrimaya>
it just places files into some locations via clever scripting
<nij>
thanks :D ! so much
<nij>
i wonder why people still use other OS....
<nij>
like arch
<nij>
is it b/c archlinux let you customize stuff more?
<vika_nezrimaya>
nij: man configuration.nix home-configuration.nix, also the Nixpkgs manual online
janneke_ is now known as janneke
inkbottle has joined #nixos
<bqv>
and systemd user daemons
zebrag has quit [Ping timeout: 246 seconds]
<nij>
vika_nezrimaya: much more fun
<lunik1>
I like the lispness of guix but not the freeness
<nij>
lunik1: i guess so
<nij>
it would be nice if they can let people choose if they want freeness or not
<energizer>
nij: i think most people dont like spending several hours every week to write software for installing packages
<bqv>
lunik1: same. i really want to like it, but firstly, it's way too GNU, and secondly, it doesn't have anything flake-like yet
<nij>
i would be fine if they make "purely free" the default
<lunik1>
I haven't looked into flakes yet, is there a good place to start?
mariatsji has joined #nixos
<nij>
energizer: ? isn't nixos easy to ocnfigure?
<energizer>
nij: no
<vika_nezrimaya>
lunik1: RFC49, the flakes proposal, may or may not be a good starting point
<nij>
bqv: what is flake in a nutshell? im more curious about it now
<lunik1>
I think there are some non-free channels for guix but they haven't really taken off
<nij>
energizer: I see. I put much time in it as well, but I gradually think it would be easily done if more people our community make good starting configs.
<wpcarro>
I'm running into strange permissions errors again... `sudo -u buildkite-agent-socrates stat /home/wpcarro/nixpkgs-channels` is `permission denied`, but it looks like the directory is `r-x` for all. Any reason I'd have have this problem?
<vika_nezrimaya>
quickstart: `$(nix-build "<nixpkgs>" -A nixFlakes --no-out-link)/bin/nix build nixpkgs#hello`
<nij>
energizer: as for packaging.. i'm not at that level yet. so i cannot tell
<lunik1>
I like Arch because the package selection is great and you don't have to compile much
<nij>
lunik1: community is stronger you mean?
<lunik1>
and because it's a fairly standard distro in terms of setup you don't run into the occasional weird issue like you do in nixos
<nij>
lunik1: why do we have to compile more in nixos (im still learning :P
<vika_nezrimaya>
nij: actually all of the NixOS software is built from source
<colemickens>
does anyone serve a "toplevel" out of an NFS dir?
<vika_nezrimaya>
BUT thanks to reproducibility of Nix builds, successful builds can be substituted with artifacts from a binary cache
<nij>
vika_nezrimaya: you mean everytime I install nixos it compiles all programs in configuration.nix?
<energizer>
colemickens: toplevel?
knupfer has joined #nixos
<vika_nezrimaya>
Strictly speaking, it can do that
<lunik1>
vika_nezrimaya: anything in nixpkgs is usually fine, but random scripts/other programs may or may not work depending on how much they assume
<colemickens>
config.system.build.toplevel, to be exact.
<nij>
lunik1: i see..
<nij>
i've only successfully installed arch on thinkpad x220 and 200..
<vika_nezrimaya>
But as you probably don't want it to take too long, Nix uses a binary cache to substitute successful builds with pre-baked artifacts
Darkmatter66_ has joined #nixos
<nij>
i'd imagine if i want to install arch on a random computer it'd be hard
<vika_nezrimaya>
Nix makes reproducible builds a breeze, so this is harmless
Darkmatter66 has quit [Ping timeout: 260 seconds]
<vika_nezrimaya>
Every package in the Nix store has a hash which uniquely identifies the package and its build inputs
<nij>
vika_nezrimaya: i think so. compiling was a nightmare b/c you don't know if it would break after 3hrs compiling
<lunik1>
you usually only have to compile something if you've done some overrides (or you're using one of the -small channels)
<vika_nezrimaya>
Knowing the hash (which you can derive out of your configuration), you can try to pull the package out of the binary cache if it exists there
malook1 has joined #nixos
<lunik1>
doing Arch the "proper way" can be a pain, yeah. Especially the first time.
<vika_nezrimaya>
If the package isn't present, it builds it using the instructions detailed in Nixpkgs and your configuration
<nij>
vika_nezrimaya: i was building a program one time, it took 6 hours and broke b/c of lacking one tool
<lunik1>
there used to be a good guide on the wiki but it was kinda disassembled
<nij>
lunik1: Yeah
malook1 has quit [Client Quit]
<vika_nezrimaya>
nij: with Nix this can't happen, unless the Nix expression is incorrect, in which case your system will simply not install
<nij>
lunik1: I thought nixos is harder until today.
<nij>
lunik1: I purged windows from my gf's old and dying laptop
<lunik1>
nixos isn't hard it's just weird
<nij>
and thought an arch would be a good alternatives
<energizer>
nij: using nixos is hard.
<nij>
it has UEFI and many other weird protection..
<vika_nezrimaya>
A syntactically correct Nix expression, simply speaking, is guaranteed to either build or fail consistently. Anything else is a bug and should be reported as such :p
<nij>
couldn't put arch on but nixos worked so fast
<lunik1>
so you need to know what advice for "Linux" out there actually applies to a nixos system
<energizer>
nij: i wouldn't recommend it except for experienced software developers
<nij>
energizer: oooh
<samueldr>
vika_nezrimaya: guaranteed to consistently? are you sure? :)
<vika_nezrimaya>
samueldr: unless you got a bug with reproducibility, of course
<samueldr>
vika_nezrimaya: ambient impurities like the filesystem the build runs on are not bugs in Nix per se
<samueldr>
yeah
<nij>
samueldr: no?!
<vika_nezrimaya>
samueldr: hmm, you do have a point here
<nij>
what's going on here?!
<samueldr>
or feature detection of the CPU
<vika_nezrimaya>
nij: we're digging into internals of Nix :p
<lunik1>
I wouldn't choose nixos for someone who couldn't be described as an enthusiast
<samueldr>
they are issues in the reproducible-builds realm of issues :)
<nij>
i know. would love to know more
<samueldr>
(but yeah, in practice it gives a good enough guarantee about build results)
<nij>
lunik1: AH. I thought it's fully reproducible thus easier. So far my experience has been great. Maybe I will run into a wall soon :(
<energizer>
there was a list somewhere of things that can violate reproducibility, cant find it atm
<infinisil>
NixOS is decently easy.. As long as you stay within module-supported territory
wnklmnn has quit [Quit: Leaving]
<samueldr>
(I just wanted to point out that Nix itself can't provide the guarantee)
<nij>
infinisil: what is module-supported?
<vika_nezrimaya>
nij: Nix tries to isolate every package it builds as much as possible. It uses a special user without a home folder, fakes the time to always be January 1st 1970 (there are some exceptions, but these are rare), disallows network access and some more
<infinisil>
nij: NixOS is essentially a set of modules that provide functionality, e.g. the module that implements services.xserver.enable = true
<nij>
vika_nezrimaya: OH :O
<Unode>
nij: anything that is included in the package repository.
<nij>
I see. But if you want to explore, you'd have wish yourself good luck..
<nij>
:(
<Unode>
well, not good luck but you'll need to learn quite a bit to get there. Depending on what you are aiming at.
<vika_nezrimaya>
Additionally, since /nix/store has hashes in names of every package, no package can know about anything else than it got provided as build inputs... unless it SOMEHOW guesses the hash which is impossible
<vika_nezrimaya>
so the builds have dependencies that are clear
<vika_nezrimaya>
You can build a closure out of a package and its build inputs and it will always work
inkbottle has quit [Quit: Konversation terminated!]
<vika_nezrimaya>
That's how nix can copy programs and even whole NixOS installations between computers!
inkbottle has joined #nixos
<nij>
vika_nezrimaya: but every computer is different
<nij>
well ok.. i mean some computers are VERY different from another
shibboleth has joined #nixos
<Unode>
nij: you usually don't have to deal with that. The Linuc kernel takes care of most of the difference.
<nij>
why would the same setting works for different computers?
<nij>
Unode: oH
<vika_nezrimaya>
Well, yeah, an x86 package wouldn't work on a Raspberry Pi
<vika_nezrimaya>
But as long as processor architectures are compatible, it will run
<energizer>
for example: today on nixos i tried and failed to install pytorch
<lunik1>
nij: anything not related to hardware, yes
<energizer>
it would've been trivial in any other distro or os
<nij>
energizer: why did it fail? figured it out?
wnklmnn has joined #nixos
<energizer>
nij: it failed because nix is hard to use. this kind of thing happens all the time
<nij>
energizer: :O
<Unode>
energizer: not sure I agree with you there. Sounds like the blame is on nix :)
<vika_nezrimaya>
on the upside, if you do figure out how to do something, it will work
<vika_nezrimaya>
it will always work
<nij>
vika_nezrimaya: yes that's great to know..
<lunik1>
I usually let nix just handle the system-level stuff, if I wanted to do some development with python I'd just use virtualenvs
<energizer>
Unode: what do you disagree with?
<nij>
but it seems that my expectation is wrong that I can leave arch soon
kalbasit has joined #nixos
CodeSpelunker has quit [Remote host closed the connection]
<nij>
lunik1: what if i want to setup a home server on nixos
<Unode>
energizer: that nix is "hard". I've had very "easy" experiences with software that wasn't packaged for nix but still worked fine.
<nij>
do you think that would cause me lots of trouble?
CodeSpelunker has joined #nixos
<lunik1>
nij: I have one, what do you want to know?
<Unode>
or managed to make it work with little effort
<Unode>
but, I do agree on the "not standard" and "not for the faint for heart" part :)
turion has quit [Ping timeout: 272 seconds]
<nij>
lunik1: im a simple man.. just want a server that replaces my dropbox and put on a personal site
<nij>
lunik1: would it be hard to do that on nixos? at my level?
<energizer>
Unode: sure, most of the packages are easy to install. but i still spend hours every week trying to install stuff that would've been and `apt install` away
<nij>
energizer: after you figured them out, was it easy for you to contribute your success to nixos community?
<Unode>
energizer: well, it's only "apt install" away because someone did the work of packaging it. If the same is true for nix, the entry effort is the same.
<lunik1>
nij: looks like nextcloud is packaged, which afaik is the go-to self-hosted dropbox replacement
<nij>
Unode: I was thinking about that too! and on nixos that knowledge lasts
<nij>
lunik1: thanks for that info!!
<energizer>
nij: no, my pull request sat in limbo for months for no concrete reason
<vika_nezrimaya>
energizer: python3.withPackages (pythonPackages: [pythonPackages.pytorch]) will give you a Python 3 with Pytorch in its PYTHON_PATH
<nij>
energizer: :( :(
<Unode>
but I agree that most software isn't prepared to work with nix which can be quite a hassle, whereas ".deb" for debian/ubuntu are not so uncommon. Specially in commercial software.
<lunik1>
I don't know to what extent you would have to mess around with creating the required databases
<lunik1>
I usually use docker for this kind of thing
<vika_nezrimaya>
Docker on NixOS is supported too
<nij>
wonderful <3
<energizer>
vika_nezrimaya: did you try it?
<vika_nezrimaya>
It's building for me right now
<Unode>
energizer: probably because it went unnoticed. Nix is still mostly a volunteer effort, and the number of open pull requests/issues speaks for itself.
<energizer>
vika_nezrimaya: it's gonna fail
<lunik1>
of course a home server is not a perfect dropbox replacement as there is no off-site backup
<Unode>
as is flatpack which gives your a few additional options.
<energizer>
Unode: yes, the number of *open* pull requests is growing by hundreds annually
<vika_nezrimaya>
energizer: That's sad! Let's see where it fails
<Unode>
energizer: that means only that there's more work than people available.
<Unode>
I have pull requests that were reviewed, needed more work from my part and are still there waiting for me or another volunteer to pick them up.
v0|d has joined #nixos
<nij>
lunik1: I would have to back it up in another way :)
<nij>
energizer: :(
<nij>
But while nixOS has small community
<nij>
why is the package so complete for beginners like me?
<Unode>
it mostly works for me locally but it needs to be more polished for it to be useful to others.
<lunik1>
nij: yes, look into something like backblaze b2 or amazon glacier
<Unode>
nij: not so small, but not so big either. Depends what part of the community you are referring to.
<nij>
is it because 1. people here are mostly enthusiasts? 2. it's easy to package and once packaged it wont fail>
<nij>
?
<vika_nezrimaya>
The fact that I have 5 packages building concurrently on my 4-thread processor shows
<vika_nezrimaya>
My system isn't slow thanks to scheduling and priorities being configured correctly, but the package builds are slow
<Unode>
nij: personally, because I see the value over other options. With nixOS I haven't had an issue with upgrades/updates in a long time. Can't say the same of other systems I use on other computers.
<lunik1>
nij: it's also that most of the commonly used packages do have enough support
<nij>
I see
<lunik1>
if you need niche python library or obscure media player you might run into a missing/outdated/buggy package, but firefox or GNOME should be fine
<lunik1>
I think also nixpkgs has some degree of automation to update packages but somebody else would have to speak on that
<Unode>
nij: what you also find with nix is that most users eventually contribute something because once you learn it, it's not that hard to add some things. In other communities you are often "just a user" and never go past that.
<vika_nezrimaya>
lunik1: ryantm might have something to say about auto updates
<nij>
Unode: I like this feature/vibe :)
<vika_nezrimaya>
In fact aren't they the creator of the r-ryantm bot that version-bumps some Nixpkgs derivations?
<lunik1>
that's also true, I found adding a package very easy
<Unode>
lunik1: yes, this is all behind the scenes. you typically don't interact with that unless you are managing the cogs behind the nix/nixos front.
aborsu has joined #nixos
<lunik1>
for simpler packages you can basically just copy an existing default.nix and change the relevant variables
<Unode>
vika_nezrimaya: true there. Nixpkgs also has some pretty sophisticated bots assisting.
<Unode>
of-borg comes to mind
<ryantm>
lunik1: What's your question?
choward6 has joined #nixos
<lunik1>
ryantm: there was just a general discussion about how the nixpkgs tree stays large and up-to-date despite a relatively small community, and I mentioned that (afaik) there is some automation involved
<lunik1>
but I don't know much beyond that
euandreh has quit [Ping timeout: 272 seconds]
blub has left #nixos [#nixos]
<ryantm>
Since most of the package definitions are simple code, there are a bunch of different succesful automation initiatives.
<numkem>
is there a way to install a global KDE theme? It used to work just fine on Arch but it doesn't work on Nix, I assume it has something to do with paths, just wondering if someone found a way to make it work
<ryantm>
The AUR has 9500 maintainers, we have 1400 maintainers, but AUR has 14k packages up to date and we have 24k.
sangoma has quit [Ping timeout: 256 seconds]
<nij>
vika_nezrimaya: how would you use builtin.read..? to configure alter this expression?
<colemickens>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<lunik1>
ryantm: I guess for many packages you can just bump the version and update the checksum?
<nij>
ryantm: We have 24k???!?!?!?! Why would nixos be harder to use than arch?
<bqv>
because declarative
kim0 has quit [Quit: Connection closed for inactivity]
wnklmnn has quit [Quit: Leaving]
<energizer>
more because sandbox
<nij>
?
<ryantm>
Repology says we have 44k non-unique packages. AUR has 24k.
<lunik1>
tbh the reason I started using nixos in the first place because it was one of only 2 distros that packaged the specific set of packages I needed for my homeserver =p
<vika_nezrimaya>
nij: Whatever's in .text goes into a qutebrowser/config.py and then `home.files.".config/qutebrowser/config.py".text = builtins.readFile ./qutebrowser/config.py;`
__Sander__ has quit [Quit: Konversation terminated!]
<vika_nezrimaya>
That's how you refactor this kind of configs
<lunik1>
you have to add the 10k or so in the standard arch repos for it to be a fair comparison, but it's still impressive
<lunik1>
where does raspian get an extra 2k packages from over Debian...
<selfsymmetric-mu>
It's working and tested, but we're having trouble getting it merged.
<nij>
vika_nezrimaya: I see, so the home-manager creates the config file for you?!
<selfsymmetric-mu>
Been resolved with master twice, but it just gets out of date again when it doesn't get merged.
<vika_nezrimaya>
nij: Yep
<ryantm>
It's debatable whether it is fair but nixpkgs numbers on Repology include all of Hackage.
<vika_nezrimaya>
In fact, instead of builtins.readFile you could generate a string with a function and it will be pasted into the config file
mariatsji has quit [Remote host closed the connection]
<ryantm>
There's also other large package sets like R that are in nixpkgs, but not included in Repology.
<lunik1>
distros will also split up packages differently
<lunik1>
it's not perfect but I think it gives an accurate impression
<nij>
vika_nezrimaya: Im impressed again :D
mariatsji has joined #nixos
<nij>
vika_nezrimaya: nixos would be definitely hard to use if no one like you were here to help
<nij>
highly appreciated :D and to all of you
<nij>
thank you i have to dash off
<vika_nezrimaya>
I learned everything I knew from manuals and source code
<vika_nezrimaya>
Oh, the joy of using open source software
<bqv>
manuals and source code are great but have you tried sith lords?
<infinisil>
selfsymmetric-mu: I'll merge it if you ping me when rebased and CI succeeded
<Unode>
selfsymmetric-mu: I can't do the merge but looking at the request that's a very long list of dependencies being touched and some being removed. When you say tested, do you mean just the package you are adding or everything else that depends on the packages you are updating with this pull request?
zeta_0 has joined #nixos
malook has left #nixos ["ERC (IRC client for Emacs 26.3)"]
nij has quit [Remote host closed the connection]
mariatsji has quit [Ping timeout: 260 seconds]
<selfsymmetric-mu>
Unode: I mean just the package we're adding. I'm not sure if that diff is accurate anymore since it's drifted into conflict with master. Again.
<energizer>
what happened here? nix run nixpkgs.conda --command conda -> error: unable to exec 'conda': No such file or directory
<Unode>
energizer: the conda package doesn't provide a conda binary, but instead a "conda-shell" which will have "conda" in it's PATH.
lisovinvlad has joined #nixos
<Unode>
conda is one of those packages that is a bit tricky to have working so instead you run it from a shell that has all the necessary environment set.
<zeta_0>
i just have docker/docker-compose installed, am i supposed to do anything extra in order to get this working? note: i have never used docker before.
lisovinvlad has left #nixos [#nixos]
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Unode>
zeta_0: how did you install docker & docker-compose?
zupo has joined #nixos
<zeta_0>
Unode: i installed them in my home-packages(home.nix).
<Unode>
If you are on NixOS you probably also need to add "virtualisation.docker.enable = true" to your config.
zupo has quit [Client Quit]
<Unode>
hum... I'm not familiar with home-packages. But docker needs to run a daemon as root so that's probably why you are getting permission errors.
dongcarl has quit [Read error: Connection reset by peer]
dongcarl has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<zeta_0>
Unode: thanks for the help, i'll enable that option, and run the command as root, to see if it fixes my issue.
kraeXen has quit [Remote host closed the connection]
kraeXen has joined #nixos
<niso>
nij: you can use home-manager in two different ways, if you plae the config in ~/.config you'll use it interactively, if you use it via module, you'll use it via your configuration.nix
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @magnetophon to master « uhhyou.lv2: init at unstable-2020-07-31 (#89171) »: https://git.io/JJbtH
dongcarl has quit [Read error: Connection reset by peer]
<infinisil>
zangi: What do you need this for?
dongcarl has joined #nixos
<zangi>
I have multiple machines and I wish to have one `configuration.nix` that if it's on machine A it uses `{ nix.buildCores = 4; }`, if on machine B it uses `{ nix.buildCores = 8; }`
<zangi>
something like that
MmeQuignon has quit [Quit: WeeChat 2.8]
<nij>
niso: the config I posted.. which way does it use? I would hope to use the configuration.nix way, but would also like to builtin.readFile the external config qutebrowser.py.
<trepetti[m]>
anyone know how to make sure DATE and TIME get set in builds?
<trepetti[m]>
wait, didnt mean to bold them __ DATE __ and __ TIME __
<trepetti[m]>
the macros that are part of the c compiler for those "built on: " messages
nij has quit [Quit: leaving]
<infinisil>
zangi: You can set it to 0 for it to use all available cores
<infinisil>
See the documentation on nix.buildCores
<{^_^}>
[nixpkgs] @Infinisil pushed 2 commits to release-20.03: https://git.io/JJbq4
lisovinvlad has joined #nixos
lisovinvlad has left #nixos [#nixos]
nixbitcoin_ has quit [Ping timeout: 240 seconds]
dongcarl has quit [Read error: Connection reset by peer]
mbrgm_ has joined #nixos
<Graypup_>
can you get cabal2nix to generate a nix file for an example?
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<Graypup_>
or am i going to just have to do this in a somewhat dumb way?
dongcarl has joined #nixos
la-jesystani has joined #nixos
<Graypup_>
(like, an example executable from examples/)
<infinisil>
Graypup_: cabal2nix works on any cabal file
orivej has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @trepetti opened pull request #95720 → ujprog: init at 3.0.92 → https://git.io/JJbqD
<Graypup_>
infinisil, sorry! I was having a bit of dyslexia and thought it said "example" and had native support, when really everyone just puts them in conditionals with inconsistently named flags lol
<Graypup_>
(instead of "executable")
<Graypup_>
mixing up cargo and cabal
eoli3n_ has joined #nixos
kleisli_ has quit [Remote host closed the connection]
evils has quit [Ping timeout: 240 seconds]
kleisli_ has joined #nixos
eoli3n__ has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]