schoppenhauer has quit [(Ping timeout: 248 seconds)]
zennist has quit [(Ping timeout: 252 seconds)]
schoppenhauer has joined #nixos
<viaken>
I saw somewhere someone used nix-shell to step through the build process for an expression. I recall seeing them run "unpackPhase". I can't find that now. How does that work?
<simpson>
The phases are just bash functions which nix-shell puts in the environment.
<viaken>
From stdenv, right?
<simpson>
Something like that. I don't know the detail.
sellout- has quit [(Quit: Leaving.)]
hamishmack has joined #nixos
python476 has quit [(Ping timeout: 240 seconds)]
<Fare>
viaken: that's my understanding, indeed
justanotheruser has quit [(Ping timeout: 248 seconds)]
zennist has joined #nixos
zennist has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 260 seconds)]
rauno has joined #nixos
<viaken>
I just found out that all my issues with nix-shell are because $SHELL is still set to zsh, so direnv isn't launching correctly, so the phase functions aren't being added correctly. :P
bfrog has joined #nixos
pxc has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
bfrog has quit [(Ping timeout: 252 seconds)]
erictapen has quit [(Ping timeout: 276 seconds)]
rauno has quit [(Ping timeout: 248 seconds)]
<viaken>
Have an application that requires webkitgtk. Nix is trying to use 2.4, not 2.16. A version isn't listed in its default.nix. How can I find out why that's happening?
rauno has joined #nixos
acarrico has quit [(Ping timeout: 252 seconds)]
gnuhurd has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 255 seconds)]
betaboon has quit [(Quit: This computer has gone to sleep)]
acarrico has joined #nixos
zeus_ has joined #nixos
<Ankhers>
Is hackage2nix run manually or is there something setup to run it automatically?
Nobabs27 has joined #nixos
bfrog has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
Nobabs27 has quit [(Quit: Leaving)]
Nobabs27 has joined #nixos
freeman42x[m] has quit [(Ping timeout: 255 seconds)]
felipedvorak has quit [(Quit: felipedvorak)]
mbrgm has quit [(Ping timeout: 252 seconds)]
mbrgm has joined #nixos
slack1256 has joined #nixos
justanotheruser has joined #nixos
Lisanna has joined #nixos
<Lisanna>
Is there a nix builtin for taking the union of two sets? e.g., {a = 4; b = 5; } + {c = 3; }
<Lisanna>
=> {a, b, c}
pxc has quit [(Ping timeout: 252 seconds)]
<gchristensen>
//
<tilpner>
Just the union of the names?
thc202 has quit [(Ping timeout: 264 seconds)]
<Lisanna>
gchristensen: thank you!!
arximboldi has quit [(Quit: arximboldi)]
<Lisanna>
Dang... there it is right in the manual's operators table too... I just completely missed it
<gchristensen>
:) happens to me all the time
pxc has joined #nixos
<Lisanna>
also, I'm trying to figure our NixOps... is there a way to keep deployment stuff separate from configuration? I want to deploy to NixOS targetHosts A, B, and C, but I want all the other configuration settings to be the same
<Nobabs27>
why does this not work? https://gist.github.com/Nobabs27/8c9d593d5d6b44651b0f7f0761a2056c I get error: "cannot auto-call a function that has an argument without a default value (‘fetchgit’)" which doesn't really make any sense to me, all I need to do is tell it how to build
<Lisanna>
I mean, they don't necessarily have to be in that file if there's a better way to do it... but I basically have n physical machines running NixOS and I want to deploy the same thing to all of them
<Lisanna>
Oh, okay
<Lisanna>
this might work
<Lisanna>
oh, duh
<Lisanna>
yeah, I guess that would work fine
<Lisanna>
lol
acarrico has joined #nixos
<gchristensen>
Nobabs27: how are you building it?
freeman42x[m] has joined #nixos
<gchristensen>
nix-build ./that-file.nix?
<Nobabs27>
I just switched something around it seems to be "building" now. and yes
<gchristensen>
ok :)
<Nobabs27>
cept it failed building
<gchristensen>
what did you change?
<Nobabs27>
is with import <nixpkgs> {}; an ok thing to put in the script?
<Nobabs27>
^ thats what I changed
<gchristensen>
sure :) but a bit more clear would be:
<gchristensen>
let pkgs = import <nixpkgs> {}; inherit (pkgs) stdenv fetchgit; in stdenv...
<Nobabs27>
with the ... at the end?
<gchristensen>
no that is where what you have picks up :)
<Lisanna>
Deploying to an existing NixOS install... how much of the NixOS options do I need to specify in the NixOps expression? e.g., do I need to have the imports line for hardware-configuration.nix? the boot options?
<gchristensen>
all of it
<gchristensen>
you need to copy over your hardware-configuration.nix and boot options, everything
<Lisanna>
Okay, I'll copy it verbatim
<gchristensen>
it won't read any of that off the host at build/deploy time
<Lisanna>
Alright, that sounds great
<Lisanna>
and does it by default just login with root over ssh?
<gchristensen>
right, and it'll place a special deploy key just for nixops
bfrog has joined #nixos
<Lisanna>
OK
<Lisanna>
...so I better make sure to set the SSH server to enabled in the expression I deploy or I'll only be able to do it once :)
acarrico has quit [(Ping timeout: 252 seconds)]
<gchristensen>
:)
<gchristensen>
yes good choice
pxc has quit [(Ping timeout: 240 seconds)]
zennist has joined #nixos
<Nobabs27>
well now I have two issues: qt5 isn't 5.8, the build commands aren't getting run in the build directory ...
zennist has quit [(Ping timeout: 240 seconds)]
itorres[m] has joined #nixos
ts468 has quit [(Quit: Leaving)]
iyzsong has joined #nixos
itorres[m] is now known as itorres
<Lisanna>
Okay, here's a tricky one: nixops deploy, the target machine is behind a proxy, so it needs the CURL_NIX_FLAGS and stuff set so it can actually download and do the install for the deployment. How do I do that from the nixops command line?
pxc has joined #nixos
<gchristensen>
Lisanna: sorry I'm late for bed :) :(
<Lisanna>
I guess there's no one else available right now who knows about nixops?
<joepie91>
I know a little about nixops but not that particular thing
<Lisanna>
thanks for your help anyways
<Lisanna>
A wild guess is that I have to first do a manual deploy with the proxy settings set in configuration.nix, and that will be enough to bootstrap it
<joepie91>
hold
<joepie91>
code reading time...
pxc has quit [(Ping timeout: 252 seconds)]
<Nobabs27>
ok so when nix-building I need to be in the git repo to build - how do I get there?
<Nobabs27>
because when i run qmake it says gimme options basically
<joepie91>
I'm not immediately seeing any code that looks like it handles per-machine env vars
<Lisanna>
joepie91: if it just copies it straight then that'd be awesome
<joepie91>
Lisanna: that having been said, if you set https://nixos.org/nixops/manual/#opt-deployment.hasFastConnection then it'll copy all the substitutes from your deploying system to the deployed system
<joepie91>
as opposed to downloading them from the internet
<joepie91>
so if you run into trouble with it being behind a proxy then that's your option B :)
<justanotheruser>
Probably a dumb question, is there any way to work on a nix-shell environment with virtualenv?
<joepie91>
uses a bit more bandwidth localy, but eh
<joepie91>
locally*
<Lisanna>
joepie91: oh, yeah, that would probably work
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
<Lisanna>
hey, my guess was right! I bootstrapped it by manually setting the proxy settings on the target's configuration.nix
zennist has joined #nixos
<joepie91>
ideally shouldn't be necessary though :P
<Lisanna>
well I need to be able to tell it the proxy settings somehow :)
<joepie91>
but yeah, it makes sense that that'd work
<joepie91>
sure, but imo that's something nixops should be doing
bfrog has quit [(Ping timeout: 252 seconds)]
<joepie91>
which it kinda does by copying env vars, but it's odd for me that there is apparently no way to set this per machine
<Nobabs27>
its supposed to work like: clone -> cd to folder -> run qmake
<joepie91>
Lisanna: like, the abstraction behind NixOps is "point it at an existing NixOS box and it'll make all the things happen", so having to bootstrap manually makes it a leaky abstraction imo
<Nobabs27>
but it seems to clone (not sure where it goes) -> cmake
<Lisanna>
yeah, I see your reasoning
<Nobabs27>
*qmake I mean
zeus_ has quit [(Ping timeout: 246 seconds)]
<Lisanna>
Nobabs27: why are you using buildCOmmand? I normally use buildPhase
<Nobabs27>
ok ill try that
<Lisanna>
try it with buildPhase isntead
<Nobabs27>
yeah that fixes that issue - now I just have to deal with QT being the wrong version
<Lisanna>
cool :)
zennist has quit [(Ping timeout: 252 seconds)]
<Nobabs27>
ty
justanotheruser has quit [(Read error: Connection reset by peer)]
justanotheruser has joined #nixos
<Nobabs27>
ok so how do I upgrade QT to 5.8 when it isn't in the channel?
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<Nobabs27>
or the repo or whatever you call it
justanotheruser has quit [(Read error: Connection reset by peer)]
<Lisanna>
I think the entry in the nixpkgs database is wrong
<Lisanna>
since I see it points to trivial-builders
<Infinisil>
Argh, `which git` gives me ~/.nix-profile/bin/git
<Infinisil>
But I want to uninstall it
<Infinisil>
And nix-env -e gitMinimal / git doesn't work
zennist has joined #nixos
<Nobabs27>
wat apparently there already is a nixpkgs/pkgs/development/libraries/qt-5/5.9 ??
<joepie91>
what's the general opinion on expressions for proprietary games being added to nixpkgs? I've been packaging a bunch of games lately, but I'm unsure whether PRs are likely to go through
<joepie91>
(DRM-free releases from GOG and such specifically)
<joepie91>
same question for expressions for proprietary Windows games using WINE
<joepie91>
these would obviously not ship sources :P
pie__ has quit [(Ping timeout: 240 seconds)]
<Nobabs27>
how to install that version then?
<joepie91>
Infinisil: gitAndTools.something?
<joepie91>
Infinisil: I'm using `楧䅴摮潔汯�楧䙴汵`
<joepie91>
...
<joepie91>
thanks, synergy
<joepie91>
attempt 2
<joepie91>
gitAndTools.gitFull
<Infinisil>
lo
<Infinisil>
l
<Infinisil>
Hold on
<joepie91>
I bet it just pasted a bunch of working memory or something
<joepie91>
lol
zennist has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Nah, didn't work
<joepie91>
Infinisil: what's your manifest say?
<Infinisil>
Why the hell is this so difficult
<Infinisil>
joepie91: Just had a look at it, but it's pretty hard to parse..
<joepie91>
I know it claims to be a JS beautifier but it just does some bracket magic
<joepie91>
so most JS-looking things can be made reasonably readable with it
<joepie91>
:p
<joepie91>
(it doesn't care about syntactic validity at all)
<Infinisil>
Hmm
<Infinisil>
Tried nix-instantiate --eval --json ~/.nix-profile/manifest.nix but that doesn't output json..
<Infinisil>
and --xml doesn't output xml either
<Infinisil>
What the hell
<joepie91>
wtf? makeWrapper is failing quietly
<freeman42y>
Infinisil, please tell me there is a program that does the git bisect thing (divide and conquer on commits with rebuild until there is no error to find the boundery issue introducing commit?)
<Infinisil>
freeman42y: git bisect?
<joepie91>
freeman42y: nothing automated, and there couldn't be, because not all build failures are automatically determinable
<joepie91>
many issues are of an "it builds and starts but doesn't do the right thing" nature
<joepie91>
so your best bet is the up-arrow in a shell :)
<freeman42y>
I am attempting to install NixOS on a physical computer now but I don't seem to be able to set up WiFi because: either there are no WiFi drivers set up OR I did the settings wrong cause the Connection editor shows the WiFi connection I added as greyed out so I can't click connect
<joepie91>
freeman42y: what are you using for wifi management?
<freeman42y>
joepie91, <because not all build failures are automatically determinable> Vast majority of build errors can be determined just by looking for the word error on the last few lines of the build
<joepie91>
that is not reliable either
<joepie91>
and like I said, many errors don't even cause the build to fail in the first place
<freeman42y>
and good enough is good enough for our purpose, also that tool could allow you to do pass it a custom lambda to write yourself exactly what you expect to look like when the build fails, which should work 100% unless the error changes
<Infinisil>
Oftentimes it just exits with a non-0 exit code, and I'd use that as a kinda-reliable way, it's certainly usable for bisects
<freeman42y>
joepie91, you know what pragmatism and "working" in the vast majority of cases means?
<freeman42y>
joepie91, I am using for WiFi management the Connection editor that comes with NixOS
<Infinisil>
joepie91: Which desktop environment? There is no "default"
<joepie91>
freeman42y: there's nothing that inherently "comes with NixOS", it's dependent on your system configuration; are you referring to the environment on the live CD?
<Infinisil>
by default nixos doesn't even have X11 enabled
<joepie91>
(which is KDE Plasma)
<freeman42y>
joepie91, <I am attempting to install NixOS on a physical computer now but I don't seem to be able to set up WiFi because>
<neonfuz>
so how do you view info about a packge from the cli?
<neonfuz>
that's possible, right? like a package description at least
<freeman42y>
joepie91, so, yes, I am on the live boot thingie, and it has the connection editor
<Infinisil>
`nix-instantiate --eval '<nixpkgs>' -A hello.meta.description`
<Infinisil>
"A program that produces a familiar, friendly greeting"
<Infinisil>
neonfuz: ^^
smbarte2[m] has joined #nixos
<joepie91>
freeman42y: there are more ways to install NixOS than through the live CD, so your earlier remarks do not tell me what environment you're in, or what environment you're having trouble with; and I'm less than happy with your patronizing attitude
<neonfuz>
Infinisil: that's quite a long command
<Infinisil>
neonfuz: Then define a function for it if you need it more often
<joepie91>
freeman42y: so I'm happy to help you out with your issue, but in exchange please just answer the questions I ask, because there's a reason I'm asking them.
<neonfuz>
Infinisil: how would I do that? sorry I'm new
<freeman42y>
joepie91, I can deal with your rude and not intelligent attitude of dismissing an obviously superior automated method based on the fact that it might not work in some cases
<neonfuz>
do you mean like a nix function?
<joepie91>
okay, I'm not going to put up with this tonight
<freeman42y>
joepie91, so please bare with me too - the patronising is only in your head unless you point out exactly what I did that was patronising...
<joepie91>
so you will have to see if somebody else is willing to help you with your issue
<neonfuz>
Infinisil: and how do I do that to an arbitrary package?
<neonfuz>
wait
<freeman42y>
joepie91, you have to understand that people are not born smart, I am a new NixOS user and if you treat me like an idiot and call me patronising that won't help the community
<Infinisil>
neonfuz: I mean a bash/zsh function: `function description { nix-instantiate --eval '<nixpkgs>' -A "$1".meta.description }`
<neonfuz>
alright
<neonfuz>
was just wondering
<freeman42y>
joepie91, I am on the default live CD with the GUI which is sthe most reasonable thing to assume
<joepie91>
freeman42y: I'm here on a volunteer basis to help people, and I'm not obliged to help people out. and if somebody chooses to give 'smartass' responses to questions instead of helping me help them by directly answering the questions I ask, then I choose not to do so. that has nothing to do with "helping the community", that has to do with not putting up with abusive behaviour from other users, new or otherwise.
filterfish has joined #nixos
<joepie91>
the correct answer to my question was "yes"
<Infinisil>
neonfuz: Which is probably better
<freeman42y>
joepie91, no one said you are obliged to help me - stop making assumptions
<joepie91>
I don't need to be lectured on what is "the most reasonable thing to assume" - the fact that I ask you about it should make it clear that I don't intend to assume anything, any require more information
<joepie91>
if you are unwilling to answer such questions head-on, then the consequences of that are yours alone
<joepie91>
and you will find very few people willing to help you with that attitude
<freeman42y>
joepie91, please point out what smartass answer I gave and which question I did not answer?
<neonfuz>
it isn't working for this package 'dolphin-plugins'
<freeman42y>
joepie91, you need to have more patience man... :(
<neonfuz>
error: attribute ‘dolphin-plugins’ in selection path ‘dolphin-plugins.meta.description’ not found
<neonfuz>
but nix-env -qa dolphin-plugins says the package exists
<freeman42y>
I help a lot of people too but don't dismiss intelligent solutions to git bisect problems or call people patronising whenever I feel slightly offended WITHOUT explaining what was patronising
Nobabs27 has quit [(Quit: Leaving)]
<neonfuz>
Infinisil: going to a browser just to read a package description is really annoying tbh
<freeman42y>
joepie91, you keep saying attitude and patronising, but you have not pointed out what I did wrong
zeus_ has quit [(Remote host closed the connection)]
<Infinisil>
neonfuz: Not sure about that dolphin-plugins, it doesn't seem to be defined at top-level
<neonfuz>
that's odd
<Infinisil>
neonfuz: Yeah, I also don't like going to the browser, I admittedly rarely need a package description
<joepie91>
freeman42y: examples would be quoting an earlier remark that doesn't answer the question asked as if it makes the answer obvious, lecturing me on what is a "reasonable assumption", and remarks like "you know what pragmatism and "working" in the vast majority of cases means?"
<joepie91>
freeman42y: and that is the last I will say on this
<neonfuz>
I see
<neonfuz>
-qa didn't tell me that full name, I feel like it should
<Infinisil>
neonfuz: Add -P
<neonfuz>
ah
<neonfuz>
cool
<Infinisil>
Damnit, my nix-env -qaP fails with "cannot import '/nix/store/.../firefox-bin`, since path '/nix/store/...-nixos' is not valid
<freeman42y>
joepie91, I don't see how any of those are wrong, especially since you suggested inferior solution to finding the error by wasting your own time instead of using a tool, and also making the assumption that some new user will know the same things you know
zeus_ has quit [(Ping timeout: 246 seconds)]
<freeman42y>
you should chill down and act nice
<Infinisil>
It was the firefox overlay, who would've thought
<freeman42y>
Infinisil, ah, that is cool, I might try that later. Currently what I have is one laptop on which I can't install it cause of the wifi issue (might try with internet cable) and a windows laptop (with a nixos vm in it)
filterfish has quit [(Ping timeout: 276 seconds)]
<Infinisil>
Currently trying to find out how to build the iso..
justanotheruser has joined #nixos
<Infinisil>
Ah found it
<Infinisil>
nix-build '<nixpkgs/nixos/release.nix>' -A iso_graphical
<Infinisil>
freeman42y: ||
<Infinisil>
^^
<freeman42y>
Infinisil, cool :D that is pretty much magical, they should add that to the Download section I think
<freeman42y>
but if I do that in a VM let's say...
<freeman42y>
where will the iso image appear? or do I need to create iso out of some folder or something?
<Infinisil>
freeman42y: The iso will be in the `result` directory which is in $PWD
<freeman42y>
Infinisil, I see thank you, I'll try this, hopefully it fixes the wifey
<Infinisil>
I'm building it right now to see
<freeman42y>
Infinisil, your command builds the latest thing? or the 17.3?
<Infinisil>
freeman42y: Whatever channel you're using I guess
<freeman42y>
ah, so since I am on unstable it will build the latest
<Infinisil>
You can alse use a nixpkgs checkout, then go to nixpkgs/nixos and use nix-build release.nix -A iso_graphical
<freeman42y>
for some reason Dolphin is no longer opening for me, I just click on folders or try to open it directly and it appears to do something for a bit then nothing happens
<freeman42y>
not even a GUI error (maybe somwhere in the logs there is)
<Infinisil>
Maybe run it from terminal to see its stdout
<freeman42y>
Infinisil, ah, I think I will just do the previous thing you mentioned, I still have not had time to read the NixOS manual :(
<Infinisil>
or check journalctl for potentially more logs
<Infinisil>
freeman42y: Documentation isn't the best admittedly heh
<freeman42y>
Infinisil, I wouldn't know though since I haven't read much of it haha
<Infinisil>
Well the manuals are there, but they are a bit outdated sometimes. I very often just read the source in nixpkgs to see what exactly happens
<freeman42y>
Infinisil, what magical method did you use to find the command: "nix-build '<nixpkgs/nixos/release.nix>' -A iso_graphical" ? I didn't find anything in google
<freeman42y>
Infinisil, using Nix to build NixOS is so meta, it is reproducing itself haha
<Infinisil>
freeman42y: I grepped for "iso" through nixpkgs/nixos, ignoring /doc /tests and /modules, then found iso_graphical in release.nix. Looked at the file and saw it's an attribute in the attribute set at the top-level in that file, and that's what the -A option does
<Infinisil>
freeman42y: Well, nixpkgs already contains all of nix
<Infinisil>
nixos i mean
<Infinisil>
nixpkgs already contains all of nixos
<freeman42y>
Infinisil, yeah, that hit me just some minutes ago when I seen that nix was merged into packages on github and was questioning why, then it hit me
<freeman42y>
Infinisil, weird, I don't get why I am getting progress bar but it does not show for you: http://i.imgur.com/bI7oKtf.png
<Infinisil>
Mic92: /tmp is not a tmpfs
<Infinisil>
Mic92: Should this be there automatically or should I have created it? I have never manually touched /tmp
<Mic92>
Infinisil: no just asking, whether it could be memory depletion
<Mic92>
it is optional
<freeman42y>
Infinisil, it built, but I just realised that I am stupid, cause since Dolphin does not work I can't easily copy it out of the VM haha, I need a shared folder or some other magic
<freeman42y>
or maybe copy it to desktop then I can drag and drop out of it
<Infinisil>
I am watching the syscalls in htop, and it does indeed seem to be doing stuff
<Infinisil>
freeman42y: Or maybe you can ssh into it somehow
<freeman42y>
Infinisil, yeah! that would be much easier I think
<freeman42y>
for now copy to desktop and drag and drop might work
<freeman42y>
Infinisil, success! got iso in host OS with latest version of NixOS, thank you! http://i.imgur.com/QVLm4VA.png
<freeman42y>
now I just need to make new USB and hope the wifey issue was fixed
pxc has quit [(Ping timeout: 252 seconds)]
<Mic92>
I was thinking about a github project, where pull can open pull requests to get their custom iso images build
<freeman42y>
no luck with the wifey, still broken, but at least the GUI of the tool was updated haha
<freeman42y>
actually, I can't see the connect button anymore
<Mic92>
freeman42y: did you add wifi firmware to the iso?
<Infinisil>
Mic92: Yeah. But: If you need ssh keys, you already probably have nixos and can build it yourself, the same with special hardware drivers. And zfs support can be obtained by nixos-rebuilding in the iso
<freeman42y>
Mic92, no, I don't know how to do that
<Mic92>
Infinisil: no, this is not true, if you switch from a different distro, you do not have not nixos installed
<freeman42y>
But I'd expect at least a connect button and some kind of error from the tool, like: missing drivers or something
<Mic92>
freeman42y: I mean, what was the reason for building a custom iso?
<Infinisil>
Mic92: Ahh, so you mean special hardware drivers that you need in order for the nixos live iso to even work?
<freeman42y>
Mic92, thank you, ah, I am not sure how that would work with live gui usb though
<freeman42y>
other drives should be under /mnt/ right? the fact that I got none means none are mounted?
<Mic92>
freeman42y: you would need a custom iso, with this broadcom firmware included or you find a different way to install nixos without the firmware and get it later
<freeman42y>
I don't know how to do the first thing so I guess I should install using ethernet cable then and get that file from the internet
<frankpf>
how do you generally run services in NixOS?
<frankpf>
for example, I want to run a nodejs server
<frankpf>
should I create a systemd unit file or a nixOS module?
<Mic92>
frankpf: if it is just your private service, you can create a systemd unit
<Mic92>
if you want to see this module in nixpkgs, you can also create a nixos module
<frankpf>
hmm.
<Infinisil>
Mic92: I see, the imported module installation-cd-minimal sets the isoImage attribute in the config, that's why this error was so confusing
<frankpf>
wouldn't running nixos-rebuild switch shutdown my own custom unit though?
filterfish has quit [(Ping timeout: 276 seconds)]
<Mic92>
frankpf: you want to prevent your services from beeing upgraded?
<Mic92>
there is an option to prevent that
<Infinisil>
frankpf: Only the ones that you changed get restarted
<frankpf>
I am just wondering what is the approach everyone uses
<Infinisil>
So if you don't make any changes to the nodejs config, it doesn't get restarted
<Infinisil>
and if you do make changes, then you need it to restart to apply these changes
<Infinisil>
otherwise it wouldn't make sense to make such changes
<frankpf>
right now I have a configuration.nix with nginx and Let's Encrypt setup using the standard modules for those
<frankpf>
but there's nothing for node, for example
<frankpf>
should I create my own module and use it in configuration.nix?
<Mic92>
frankpf: you can just add files next to configuration.nix and load them by adding them to imports = [];
<Infinisil>
You can, or you can just declare a systemd service directly
<Mic92>
frankpf: but it would be the same as adding them directly to configuration.nix
<frankpf>
I see, I think defining my own module is better than declaring a service directly
<frankpf>
because then my configuration.nix reflects the whole system state
<frankpf>
no?
<Mic92>
frankpf: it would not be the same thing as a module
<Mic92>
a module as an option section and a config section
<frankpf>
I mean, another file
<frankpf>
sorry
<frankpf>
just creating another configuration file for the specific service and then importing it
<Mic92>
frankpf: depends on your taste, if you feel you want to split configuration.nix into logical units
<frankpf>
alright, thanks Infinisil and Mic92. I'll try that
<hyper_ch>
so, where does nixos keep it's global kde5 servicemenus folder?
Michael__ has quit [(Ping timeout: 248 seconds)]
Michael__ has joined #nixos
simukis has quit [(Quit: simukis)]
simukis has joined #nixos
filterfish has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5ODg
<NixOS_GitHub>
nixpkgs/master 8bd2243 Samuel Leathers: polybar: fixes issue #28387 (#28441)...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
simukis_ has joined #nixos
simukis has quit [(Ping timeout: 240 seconds)]
simukis_ has quit [(Client Quit)]
simukis_ has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
frankpf has quit [(Quit: Leaving)]
zennist has joined #nixos
zennist has quit [(Ping timeout: 260 seconds)]
Michael__ has quit [(Ping timeout: 248 seconds)]
Michael__ has joined #nixos
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp closed pull request #28539: Document that systemd.services.<name>.script is the same as systemd.services.<name>.serviceConfig.ExecStart (master...document-systemd-script) https://git.io/v5qCZ
NixOS_GitHub has left #nixos []
filterfish has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5ODp
<NixOS_GitHub>
nixpkgs/master 14eb44d Tim Steinbach: minikube-kubernetes: 1.7.0 -> 1.7.3
<__monty__>
What's the proper way to configure xdg to include nix's .desktop files?
<Mic92>
__monty__: if you build a package, use the makeDesktopItem funciton
zennist has quit [(Ping timeout: 240 seconds)]
<Mic92>
ah, this is not what you meant probably
filterfish has quit [(Ping timeout: 246 seconds)]
<__monty__>
Yeah, for instance I installed thunderbird. And there's a .desktop under .nix-profile but I don't know how to configure my system to find it.
LysergicDreams has quit [(Ping timeout: 248 seconds)]
LysergicDreams has joined #nixos
<Mic92>
It probably depends on your desktop environment, so if it does not work out of the box, it is probably a bug, which should be fixed
<__monty__>
Ok, I'll head on over to the appropriate channel, thanks.
<Mic92>
__monty__: I mean, it is probably nixos related
<Mic92>
but the nixos module or our package should take care of that
pie_ has joined #nixos
<Mic92>
whatever desktop environment you use, upstream can probably give you hints, what the desktop manager expects from the environment to find .desktop files
<__monty__>
I'm not using nixos actually. Couldn't find a channel for nix.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5OSC
<Mic92>
__monty__: ah, so you installed thunderbird in nix from a non-nixos system
<__monty__>
Yes.
<Mic92>
what is your desktop manager then?
<__monty__>
Enlightenment...
takle has joined #nixos
<Mic92>
__monty__: looking at the nixos module, I think it wants XDG_DATA_DIRS
<Mic92>
to be set
<Mic92>
on nixos it looks like this: export XDG_DATA_DIRS=/run/opengl-driver/share:/run/opengl-driver-32/share:/etc/per-user-pkgs/joerg/share:/home/joerg/.nix-profile/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
endformationage has quit [(Quit: WeeChat 1.9)]
<Mic92>
__monty__: I suppose you only need .nix-profile then in XDG_DATA_DIRS
<__monty__>
I don't know how to set it so the DE sees it though. Adding it to path in zshrc isn't useful because the terminal is the one place where the desktop files aren't useful.
freeman42x has joined #nixos
<Mic92>
__monty__: some login manager read ~/.profile
<__monty__>
Mic92: Will do, logging out/in to test.
__monty__ has quit [(Quit: Rebootying.)]
takle has joined #nixos
pie_ has quit [(Ping timeout: 248 seconds)]
filterfish has joined #nixos
zennist has joined #nixos
taktoa has joined #nixos
ahawkins has joined #nixos
filterfish has quit [(Ping timeout: 276 seconds)]
<ahawkins>
Hello everyone. I'm trying to write my first package for fundle (a fish shell function). How can I make my package write a file into the output directories for another package?
<makefu>
ahawkins: you will need to change the derivation where the file should become part of unfortunately
<makefu>
you can use the postFixup phase to perform your custom actions
<makefu>
but it looks like fish provides another way to do this
<ahawkins>
?
__monty__ has joined #nixos
<__monty__>
Mic92: What would be an appropriate wiki page to add the information to? I just had to append the .nix-profile/share path to the XDG_DATA_DIRS.
<makefu>
if i understand correctly then $__nix_profile_paths is not in the /nix/store ,right?
zennist has quit [(Ping timeout: 260 seconds)]
<makefu>
ok i understand, you can simply install the package with environment.systemPackages
<makefu>
as long as it provides an output path /share/fish/vendor_functions.d/
<makefu>
for example you create a derivation and install files into $out/share/fish/vendor_functions.d/
<makefu>
when installed this path will become available one of the $NIX_PROFILES
<makefu>
this means that you do not need to change the output of another derivation, just make sure the package you create contains the path
<ahawkins>
hmm
<makefu>
ahawkins: sorry need to go, i will read the backlog later :)
<ahawkins>
ok, I'll give it a go.
<ahawkins>
makefu: thanks, I'm sure I'll hit some issues since it's my first go around
<Mic92>
__monty__: maybe add a short section to Common Errors: Desktop Environment does not find .desktop files -> and then append your solution
<Mic92>
it is only related to nix on non-nixos systems
<Mic92>
though
Ivanych has quit [(Ping timeout: 260 seconds)]
<Mic92>
in the end it only needs to be google-able
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5O9o
<__monty__>
ahawkins: If it's not in the topic, feel free to use whatever you prefer. As long as it's not pastebin.com : )
slyfox has joined #nixos
<Mic92>
freeman42x: there is an nixos option you can set in configuration.nix
<Mic92>
hardware.enableAllFirmware
<Mic92>
hardware.enableAllFirmware = true
<ahawkins>
Here is my nix expression (https://ptpb.pw/H9k4). When I nix-build I get: error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<freeman42x>
Mic92, I have these 2 lines in the configuration.nix: networking.hostName = "nixos"; # Define your hostname. / networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
<freeman42x>
can I add what you mentioned without disabling the wpa_supplicant one?
<Mic92>
freeman42x: yes
__monty__ has left #nixos []
<Mic92>
freeman42x: do you want to use wpa_supplicant or networkmanager in the end?
<Mic92>
NetworkManager is one, which you configure through graphical applets
<Mic92>
freeman42x: you can also for testing add build this package directly in your configuration.nix hardware.firmware = [ (stdenv.mkDerivation { ... }) ];
<Mic92>
freeman42x: nixpkgs/pkgs/os-specific/linux/firmware/rtl8192su-firmware/default.nix is a good example
slyfox has quit [(Quit: :))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v5OQF
<NixOS_GitHub>
nixpkgs/master 1e7358a Vladimír Čunát: kde4.kde_workspace: fixup build with gcc-6
NixOS_GitHub has left #nixos []
LysergicDreams has quit [(Ping timeout: 248 seconds)]
<freeman42x>
adding "networking.enableB43Firmware = true;" did not make it work either
<freeman42x>
unless there is issue with the GUI
<freeman42x>
but I see nothing under ip a
<freeman42x>
should I see something under ip a?
<freeman42x>
or if the driver is installed do I still need to load it somehow manually?
<clever>
only after wpa_supplicant has connected
<clever>
freeman42x: try "iwlist scan" first, thats a good test of the drivers
<freeman42x>
clever, iwlist command not found
reinzelmann has joined #nixos
* freeman42x
starts crying.
<gspia>
Hello, anybody with few minutes to zlib-compilation problem (ghc821)?
<freeman42x>
I've been trying to get NixOS set up for over 6 hours now on my laptop. Only progress I got was to get it installed and install the touchpad driver.
<yorick>
gspia: with stack?
<gspia>
yorick: in a nix-shell with basic tools and then with cabal new-configure & cabal new-build
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/v5O5p
<NixOS_GitHub>
nixpkgs/staging 6eade28 Vladimír Čunát: Merge #28563: pango: fix pango_default_break function
NixOS_GitHub has left #nixos []
anton__ has quit [(Remote host closed the connection)]
<yorick>
gspia: try adding zlib and zlib.dev to the inputs
zarel has joined #nixos
<clever>
yorick: nixpkgs will add the .dev automatically
<gspia>
yorick: ok, zlib was there already but zlib.dev not (tried to find something like that with nix-env -qaP etc) ... (the error was about missing zlib.h and with other distro's it has usually been about that dev-version)
<yorick>
clever: I've had to do it sometimes.
<yorick>
gspia: did it solve it?
<yorick>
clever: zlib is just zlib.out
simukis has quit [(Quit: simukis)]
simukis has joined #nixos
<gspia>
yorick: i'm still trying (didn't have default.nix for this trial yet, so maybe I'll try to put into the system-wide settings into the configuration.nix-file)
simukis has quit [(Remote host closed the connection)]
<yorick>
clever: maybe it doesn't with nix-shell?
mudri has quit [(Ping timeout: 240 seconds)]
zarel has quit [(Ping timeout: 240 seconds)]
<clever>
yorick: what arguments are you padding to nix-shell?
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon2 has joined #nixos
<clever>
passing(
<yorick>
clever: nix-shell -p zlib
<clever>
just that and nothing else?
<yorick>
Well, that's about what stack does, yeah
<clever>
what is the exact command you are running?
stanibanani has joined #nixos
Mateon2 is now known as Mateon1
<yorick>
clever: stack build zlib
<clever>
and is stack in nix mode?
<yorick>
Yes
<yorick>
Maybe it's fixed now?
stanibanani has quit [(Ping timeout: 252 seconds)]
<gspia>
yorick: I tried couple of variants and cabal is telling about missing dep on foreign lib (either missing zlib.h or missing lib z)
<gspia>
yorick: the commands 'nix-shell -p ghcEnv821 -p zlib'
<gspia>
yorick: then with zlib.dev
anton__ has joined #nixos
<freeman42x>
clever, do you happen to know which package contains iwlist? I though it was wirelesstools but it does not exist
betaboon has joined #nixos
<clever>
freeman42x: wirelesstools.out 40,352 x /nix/store/ynhdq4ajcwb8mrjwdawr12cvza891crd-wireless-tools-29/bin/iwlist
<clever>
gspia: oh right, paths are truncated, re-run it with -s 5000 as well
simukis has joined #nixos
<clever>
gspia: the contents of /home/gspia/.cabal/logs/ghc-8.2.1/zlib-0.6.1.2-12c573b5b6af44f3fe6db28d6fb711b3953aa3469d4309a13adce662dc7f3622.log
<gspia>
clever: ok 2 secs + little margin on that
<clever>
may also help
arximboldi has quit [(Quit: arximboldi)]
<teto>
I get this problem where nixos-rebuild doesn't add new generations to grub, it stays stuck to generation 24 (I am at 181 if nix-env lists the same 'generations'). Any idea where to look at ?
<gspia>
clever: ok, that log tells just about the missing header / z lib but I'll put it on the gist too
<clever>
teto: is /boot mounted when you run nixos-rebuild?
<clever>
teto: and what arguments did you run nix-env with?
mudri has quit [(Ping timeout: 248 seconds)]
<clever>
compiler at the preprocessing stage. In this case you can re-run configure
<clever>
with the verbosity flag -v3 to see the error messages.
<clever>
gspia: this flag may alos help
<teto>
clever: /boot is on the same drive so it doesn't need to be mounted, I think. I see no /boot in /etc/mtab. I'll try those flags
<gspia>
clever: ok -> re-run with -v3
Ivanych has joined #nixos
<clever>
teto: what does fdisk say about your drive?
<clever>
teto: are you booting with efi or legacy?
griff_ has joined #nixos
<teto>
efi I believe (it's a macbook). I have in configuration.nix boot.loader.efi.canTouchEfiVariables = true;
<clever>
ah
<clever>
teto: then your grub config is on /dev/sda2, not the /boot dir of sda1
<clever>
teto: you must mount sda2 to /boot
arximboldi has joined #nixos
arximboldi has quit [(Client Quit)]
<teto>
clever: you are scaring me :) it used to work until generation 24, did nixos change sthg ? maybe when I upgraded to 17.03. How can I mount /dev/sda2 to /boot on every boot. Anything I should add in configuration.nix or just the typical line in /etc/fstab ?
<clever>
teto: after manualy mounting /dev/sda2 to /boot, run "nixos-generate-config" and it will rebuild /etc/nixos/hardware-configuration.nix
arximboldi has joined #nixos
<ahawkins>
what's the proper approach to separate user & system packages?
<clever>
ahawkins: use config.nix and nix-env to install a set of packages
arximboldi has quit [(Client Quit)]
<clever>
ahawkins: as an example, { packageOverrides = pkgs: { mystuff = { inherit firefox hello vim; }; }
<clever>
ahawkins: and nix-env -iA nixos.mystuff
<freeman42x[nix]>
got <The option `users.users.neo.extragroups' defined in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/config/users-groups.nix' does not exist.>
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/v5ONt
<NixOS_GitHub>
nixpkgs/master 8c3cc7c Peter Simons: pkgs/development/compilers/ghc: drop un-referenced patch files
NixOS_GitHub has left #nixos []
<clever>
lush: copy the nix expression into a file called gopanda.nix in ~/.config/nixpkgs/ and then add "gopanda = pkgs.callPackage ./gopanda.nix {};" to the package overrides in config.nix
<freeman42x[nix1]>
clever, does this help with understanding what is wrong with the wifi? <03:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)>
<clever>
freeman42x[nix1]: yeah, one sec
<teto>
clever I am quite sure it's that, thanks for the very good help. Gonna reboot and report (if my laptop is still alive) :D
teto has quit [(Quit: WeeChat 1.7.1)]
<clever>
freeman42x[nix1]: what happens when you do "sudo modprobe -v brcmfmac"
<gspia>
clever: so is there more -p inputs to be given now when entering into shell?
<clever>
freeman42x[nix1]: what about this? boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta];
<clever>
gspia: yeah, it might need -p gcc
<gspia>
clever: ok trying now with that too
teto has joined #nixos
<lush>
clever: ty very much! :)
<freeman42x[nix1]>
clever, sorry, I am a bit lost over permissions for new user :( can't use git anymore
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<gspia>
clever: the compilation went much longer this time, but now "cant load .so/.DLL (libz.so: cannot open shared object file: No such file or directory)
<clever>
gspia: have you looked into just not using stack for the builds?, there are things like stack2nix and cabal2nix
<gspia>
clever: not yet but maybe I have to now (or then just use 8.0.2 for a while - this is quite strange as with it this compiles even with the gcc system-wide)
<gspia>
clever: I could try the default.nix next
<clever>
gspia: nix-build does help isolate a lot more problems from system-wide things
<hyper_ch>
hmmm, anyone who packages kde5 stuff for nixos?
<lush>
clever: then I just use "nix-env -i gopanda" ?
<clever>
lush: nix-env -iA nixos.gopanda
b has joined #nixos
<gspia>
clever: ok, my trials will take some time as nix-things are new to me
<gspia>
clever: thanks a lot for your help! (I have to go now and try out those default.nix and stack later.)
<freeman42x[nix1]>
is there an easy way to just give the user permission to do everything a root can? (don't question it haha)
<clever>
freeman42x[nix1]: sudo
<freeman42x[nix1]>
or at least provide a list of programs that it can use as sudo
<freeman42x[nix1]>
clever, I mean, without typing sudo all the time
<clever>
sudo -i
<lush>
ty clever, now at least it installed it
<clever>
that gives you a shell running as root
<lush>
but when I try to start it the shells says "GoPanda2: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory"
<freeman42x[nix1]>
clever, thank you!
<clever>
lush: the package containing nss3 has to be added to the buildInputs
<clever>
$ nix-locate libnss3.so
<clever>
nss.out 1,399,112 x /nix/store/wfgshwx9ir33xnlyhmy9fwqwy1hjm0yk-nss-3.30/lib/libnss3.so
<clever>
lush: so add nss to the buildInputs
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5OAP
<clever>
romildo: file will never be in /usr/bin, even if it is available
<romildo>
clever, yes, the script would have to be patched. But is it really needed? I am not sure because I do not know much of autotools...
<clever>
ah, you linkd it above
<lush>
clever: how do I add "gnome2.gtk" to my file?
takle has joined #nixos
<clever>
lush: same way you did gnome3.gconf, which i gave directions for above
<romildo>
clever, and I have seen this error with many other packages too. Packagers seems to just ignore it. Is that right?
takle_ has joined #nixos
<clever>
romildo: it appears to be compiling some code into conftest.o, then using file to figure out what arch it used
freeman42x has joined #nixos
<clever>
romildo: and i think its only to find out what special flags are needed when cross-compiling
takle_ has quit [(Read error: Connection reset by peer)]
freeman42x[nix1] has quit [(Ping timeout: 240 seconds)]
<clever>
since your not doing a cross-compile, its safe to let that fail
pxc has quit [(Ping timeout: 260 seconds)]
takle_ has joined #nixos
<romildo>
clever, I was willing to ask about this issue here for a long time. Now I did. I will not worry about it anymore and let it fails as you suggest. Thanks.
takle has quit [(Ping timeout: 248 seconds)]
<hodapp>
anyone have a brilliant suggestion why trying to install a certain Python wheel is giving me "ould not find a version that satisfies the requirement html5lib==0.9999999 (from tensorflow-tensorboard==0.1.5) (from versions: )" despite that I have html5lib_0_9999999 as a buildInput?
<viaken>
What's the convention for updating a program someone else is the maintainer on? Should I send a patchset to them/contact them in some way?
<clever>
viaken: if its a package in nixpkgs, just open a PR there
<viaken>
ok
<lush>
clever: where is "libstdc++" in again?
<lush>
I thought it'd be part of gcc
<clever>
lush: it is in gcc, but gcc is a bash wrapper
betaboon has quit [(Quit: This computer has gone to sleep)]
<lush>
pls don't tell me that was all for nothing ^^
<gchristensen>
is there a service that provides an IRC bot being online, with an HTTP API to send messages to it / post messages from it on certain events?
<clever>
lush: check the original package to see if icudtl.dat is somewhere?
<gchristensen>
basically I want slack's webhook API but for IRC :|
<clever>
gchristensen: dont know of any services that do that, but it should be simple to make an irc bot that does that
<gchristensen>
I know, I just don't _want_ to do it :P :D
<clever>
lol
<gchristensen>
"Private bot API and webhooks" has been "in development" on irccloud.com forever now
<lush>
clever: it is :o
<lush>
clever: at least in the .tar.gz file you'd download
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5Oht
<freeman42y>
Mic92, what is the point in these if people don't know they exist?
<freeman42y>
Does the config generator use it for them?
<freeman42y>
I could push the synaptics + wifi to the repo, but who would use it?
butchery has quit [(Remote host closed the connection)]
<Mic92>
freeman42y: the configuration generator does not use them. Why do you think people would not find it?
anton__ has quit [(Remote host closed the connection)]
anton__ has joined #nixos
<freeman42y>
ehm, I was not aware of them until you told me
<Mic92>
freeman42y: it is possible to clone the repository and import from the file directly .
<gchristensen>
freeman42y: sometimes it is helpful providing support to people who have hardware we don't have
<Mic92>
freeman42y: I actually looked up your model, when you first told me
<Mic92>
but it was not there yet
<freeman42y>
Mic92, yes, that is true. The problem is that someone who uses NixOS for the first time might not find it - I didn't. It is an issue of discoverability.
<Mic92>
freeman42y: this is an documentation issue, which is orthogonal
<freeman42y>
I actually had a tab opened with the solution that worked - ironically :D
<freeman42y>
And another path to the solution would have been to just look at these configs and notice the broadcom one.
griff_ has quit [(Quit: griff_)]
<freeman42y>
But google didn't return them.
bfrog has joined #nixos
<freeman42y>
Mic92, correct.
<Mic92>
freeman42y: if you add the model name to the file as a comment, google might even find it next time
<freeman42y>
Mic92, I will, that is a very good point.
mog has quit [(Quit: im quiting!)]
<freeman42y>
I think it might be a good idea to add to NixOS installation documentation something like: search here for nix configurations specific to devices.
<freeman42y>
Or maybe it is there, and I didn't read it :D
<Ankhers>
Does anyone know the average update time for nixpkgs-stable?
<xj9[m]>
when are y'all going to fix the chromium package for 17.03?
<freeman42x[nix1]>
I am welcome, pretty happy. Almost getting at an usable system state :D
<gchristensen>
nice! so glad to hear it!
<freeman42x[nix1]>
gchristensen, getting it working in VM was very easy in comparison, and for some reason building haskell environment was failing
eacameron has quit [(Ping timeout: 246 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
cfricke has quit [(Quit: WeeChat 1.9)]
arximboldi has quit [(Quit: arximboldi)]
bfrog has quit [(Ping timeout: 255 seconds)]
jtojnar has quit [(Remote host closed the connection)]
freeman42x[nix1] has quit [(Quit: Leaving)]
jtojnar has joined #nixos
takle has quit [(Read error: No route to host)]
takle has joined #nixos
Infinisil has joined #nixos
<Infinisil>
Hey, I want to have firefox open .magnet links in Deluge automatically, but it seems that what works for everybody else, doesn't apply to my firefox
<Infinisil>
In Preferences/Applications, I don't have a "magnet" type, so I can't assign anything
<Infinisil>
In about:config, there is nothing regarding magnet either
<Infinisil>
And when I try to open a magnet: URI, I have no option to select an application for it
<Mic92>
below 400 pull requests! Enough for today.
* hodapp
puts in a few PRs to get the total back up
<pie_>
Mic92, :D
* pie_
gives Mic92 some cookies
ixxie has joined #nixos
<hodapp>
but ugggh, why is this Python wheel complaining about html5lib==0.9999999 when html5lib_0_9999999 is installed? I don't even know how to start diagnosing this.
<pie_>
i think ive had issues like that
<pie_>
i think it had something to do with which environment i was running it in
<pie_>
i really cant remember
<hodapp>
damn
<pie_>
iirc sometimes nix-env installation fixed it
<pie_>
it was weird but i never looked into it more :(
<hodapp>
well, I do have html5lib_0_9999999 in buildInputs
<hodapp>
but I need this to be via a nix-shell, not nix-env
<Mic92>
hodapp: try propagatedBuildInputs
<Mic92>
and check $PYTHONPATH
<hodapp>
not sure how to even do that with a nix-shell that won't run
<Mic92>
ok, in nix-shell it does not matter if buildIputs or propagatedBuildInputs is used
<freeman42y>
is there a setting for always allowing some programs to run under a user as root? had the impression there was a setting for that inside configuration.nix
takle_ has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
<Mic92>
freeman42y: you can do this with sudo
<freeman42y>
Mic92, the sudo configuration file?
<Mic92>
or setuid
<Mic92>
freeman42y: in security.sudo.extraConfig you can allow users to use programs with sudo without password
<Mic92>
the alternative is to use security.wrappers, but then everybody can run a program as root
<hodapp>
the sha256 is wrong for the Python 2.x case, but that's not what I'm testing
<pie_>
im dumb with nix so i was just saying :P
<pie_>
but try propagatedbuildinputs as Mic92 said
<pie_>
ah well he said it didnt matter nvm
<Mic92>
hodapp: in this case you need propagatedBuildInputs
freeman42x[nix1] has joined #nixos
<Mic92>
I thought you had a default.nix, you are loading with nix-shell
<hodapp>
Mic92: sorry, I was unclear... the shell.nix has a dependency on tensorflow, which I've modified to depend on what I just linked
<hodapp>
propagatedBuildInputs isn't doing anything there. Why this is particularly confusing me is that adding to buildInputs was sufficient to resolve the other dependencies listed there
teto has joined #nixos
<freeman42y>
do you happen to have an example configuration for security.sudo.extraConfig?
<hodapp>
so it properly finds markdown, werkzeug, protobuf
<Mic92>
hodapp: buildInputs are only visible during build time and not during runtime
<clever>
freeman42y: anything you could normally put into /etc/sudoers (check its man page)
<freeman42y>
clever, I see, thank you
<Mic92>
hodapp: ok the last thing I said is not correct
<teto>
clever: I solved my problems with missing generations. This is (I am) very stupid: I didn't realize my laptop was booting "gummiboot" so my configuration.nix had the correct grub configuration override the gummiboot config. So grub was up to date but I was booting with gummiboot which wasn't. Now fixed and that's cool. thanks for your time.
<hodapp>
wonder if there is any magical to get the Python tooling to explain what version it *thinks* it has
<clever>
teto: ahh
Filystyn has quit [(Remote host closed the connection)]
eacameron has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
Filystyn has quit [(Client Quit)]
pie__ has joined #nixos
<hodapp>
since I've run into crap like this before, and it's really irritating to try to track down wrong versions when all I get is "NOPE, WRONG" and no explanation why
pie_ has quit [(Read error: Connection reset by peer)]
teto has quit [(Ping timeout: 255 seconds)]
<Mic92>
hodapp: when I do nix-shell -E 'with import <nixpkgs> { }; python3Packages.callPackage ./default.nix { }' on your packages, I can even import html5lib
<Mic92>
in the python repl
<Mic92>
no idea, what is wrong here
<Mic92>
maybe FRidh has an idea
<hodapp>
can you query html5lib's version somehow?
Ivanych has quit [(Read error: Connection reset by peer)]
justanotheruser has joined #nixos
dywedir has joined #nixos
<hodapp>
ugh. that's likely why.
<hodapp>
it wants html5lib==0.9999999
Ivanych has joined #nixos
<catern>
alright #nixos I figured out the minimal change to fix everything
<catern>
we just need to run fixed-output derivations, not by submitting them to the store, but as the user evaluating the Nix code
takle_ has quit [(Ping timeout: 240 seconds)]
teto has joined #nixos
ixxie has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Remote host closed the connection)]
justanotheruser has quit [(Ping timeout: 255 seconds)]
<Infinisil>
catern: Fix *everything*?
taktoa has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
teto has quit [(Ping timeout: 252 seconds)]
arximboldi has joined #nixos
proteusguy has quit [(Ping timeout: 255 seconds)]
mudri` has quit [(Ping timeout: 246 seconds)]
pie__ has quit [(Ping timeout: 248 seconds)]
fearlessKim[m] has joined #nixos
<fearlessKim[m]>
hi I sync my dotfiles between ubuntu and nixos. I would like to run some shell code only when on nixos. What's a reliable/advised way to detect nixos (fast too as it's for my .zshrc) ?
<catern>
when runAsUser is true, that derivation is run directly by the Nix tooling rather than being submitted for runnin' to the daemon
nwuensche has joined #nixos
<fearlessKim[m]>
disasm: looks good thanks
teto has joined #nixos
<Turion>
I've created a Haskell project using curl, and I've installed the nixos curl package, but still "cabal install --only-dependencies" says "configure: error: curl libraries not found, so curl package cannot be built"
<Turion>
Do I have to give it a special path or something?
<nwuensche>
Hi! Is here anyone who could help me with hibernate? If I try to reboot after sudo systemctl hibernate, I can see my old screen, but it's frozen. After 10 sec, it get's black, and after another 10 sec I'm back to the SLiM Login Screen with my current session lost.
<Turion>
I've also installed haskellPackages.curl, doesn't change anything
<disasm>
fearlessKim[m]: there's also /etc/os-release that has some more detail in it.
<clever>
Turion: installing things will never make them available to builds
<disasm>
Turion: put curl in buildInputs
<Turion>
disasm, sorry, what is buildInputs?
<Turion>
A cabal option?
<disasm>
Turion: oh, I assumed you were writing a nix derivation.
<clever>
Turion: a nix option
<disasm>
Turion: if you're not, then do nix-shell -p curl <other dependencies> and that should drop you into a shell with what you're looking for.
<Turion>
Oh ok I see :)
<Turion>
Thanks!
<Turion>
No I'm still far from writing nix derivations... trying to get a basic Haskell build system going for now
<Turion>
So cabal doesn't know about haskell packages I've installed systemwide? But if I drop into a nix shell, it suddenly does?
<disasm>
Turion: I believe so, I'm no expert with cabal, but that's how it works with other build environments, like gcc, python, etc...
teto has quit [(Ping timeout: 264 seconds)]
<Turion>
disasm, I was used to being able to install haskell packages systemwide in Gentoo and using them from cabal
<Turion>
Would save a lot of extra compilation when using cabal sandboxes
Arcaelyx_ has joined #nixos
<disasm>
Turion: yeah, nix doesn't work that way. Because every package gets it's own home in the /nix/store, you need to specify what packages you specifically want in a build env. It doesn't just look in /usr/lib or /usr/include like other FHS based distributions.
Arcaelyx_ has quit [(Client Quit)]
Arcaelyx has joined #nixos
<Turion>
disasm, yes, I reckon. The surprising thing then for me is that a nix shell works
<Turion>
I mean, in what path does it make the package available?
<symphorien>
probably in the environment
<clever>
nix-shell adds -I flags to NIX_CFLAGS_COMPILE
<Turion>
Hmmm, so could I add a little nix expression to my .cabal that just adds curl and build that?
<clever>
and the special gcc bash script inserts that into the args when running the real gcc
<clever>
Turion: id say start with cabal2nix, that creates a nix file that runs the entire build for you
<hyper_ch>
anyone here who makes packages for KDE?
<construct>
Hi everyone, how do I get apparmor working, especially for firefox? I added security.apparmor.enable = true; to my configuration and installed all the apparmor packages. But I don't know where the apparmor profiles are stored. 'find usr.bin.firefox' returned no files or folders by that name, and that's the usual name of the firefox profile.
<construct>
clever: thanks. Do I need to configure any profiles, or are they generated automatically because the permitted filepaths to all its dependencies, binaries, and libraries are all within the firefox folder? But then I'd still need to give it permissions for the Downloads folder at least. Is it taken care of?
<clever>
construct: you would probably need to write something using exportReferenceGraph that allows it accessing all of its dependencies
<construct>
clever: then I should probably give up trying to use apparmor. Which brings me to the next point, how do I get firejail working? That can be used to sandbox firefox too. I installed it and tried to run 'firejail firefox' like I do in other distros, and it returned an error.
<clever>
construct: line 14 generates a reference graph, and line 20 extracts every path in the closure from the graph
<clever>
construct: 27 then acts on the entire graph
<clever>
you would need to iterate over the paths in $storePaths, and create a rule to allow read and maybe execute on each entry
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<nwuensche>
Hi! Is here anyone who could help me with hibernate? If I try to reboot after sudo systemctl hibernate, I can see my old screen, but it's frozen. After 10 sec, it get's black, and after another 10 sec I'm back to the SLiM Login Screen with my current session lost.
<symphorien>
does journalctl say anything useful ?
<clever>
nwuensche: and what is the uptime after logging in again?
<nwuensche>
clever: What do you mean? After I log in, a new session is created instantly
<rardiol1>
Does anyone knows why hydraPlatforms would be explicitly set to [] ?
<sphalerite>
Because otherwise I presume hydra will try building it on all platforms
<sphalerite>
Which may not be desirable
<clever>
nwuensche: if the uptime is low, then it rebooted, but if the uptime is high, then only xorg crashed
<construct>
clever: Do I just need the 17.03.nix example? And what would the values for each of those lines be (permissions, owner, group, source)?
<nwuensche>
clever: Ah, ok. So you mean the uptime e.g. in htop? It's high, it didn't reset
<rardiol1>
sphalerite: yes, but platforms is set to platforms.linux, so it would just build it on linux, where it's supposed to work, right?
<clever>
construct: in the example i gave, only members of the wireshark group can execute, but the setuid bit is set, so the program becomes root
<clever>
that lets you limit who can use the tool
<clever>
construct: the both.nix file creates the wireshark group
<clever>
and puts me into it
<construct>
clever: how do I know what numbe to put as my guid?
<construct>
gid
<clever>
any gid that isnt already in use
<clever>
check /etc/group
<construct>
clever: cool thanks
proteusguy has quit [(Quit: Leaving)]
<construct>
clever: what packages should be in which question mark, firejail or firefox? security.wrappers.? = { source = "${pkgs.?}/bin/?";
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig opened pull request #28593: Turn boot.kernelParams into an attribute set (master...kernel-params-improvement) https://git.io/v53LA
NixOS_GitHub has left #nixos []
zraexy has quit [(Quit: Leaving.)]
<clever>
construct: firejail would be in the wrapper
proteusguy has joined #nixos
iyzsong has quit [(Ping timeout: 240 seconds)]
<construct>
clever: firejail would take place of dumpcap and firefox would take place of wireshark?
<construct>
clever: I gotta go, but I'll be back in a few hours.
<clever>
firejail in every place, no mention of firefox
<construct>
clever: thanks
zraexy has joined #nixos
<nwuensche>
clever: Any idea what I could do next?
<clever>
nwuensche: check the journal and see whats up with xorg
nwuensche has quit [(Remote host closed the connection)]
nwuensche has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
<clever>
nwuensche: and at what timestamp did you resume from hibernation?
<clever>
nwuensche: how long was it in hibernation?
<nwuensche>
clever: Was for 1 minute. The timestamp I sent you was the one it was back from hibernation.
<clever>
everything in that gist happened within a 11 second period, so there is a bit of a gap in the data
<nwuensche>
clever: Sorry, didn't want to overload you with everything. If you want everything, please say so. But I updated the gist to add all warnings I could find.
<nwuensche>
clever: Could it be a problem that I still have virtualisation.virtualbox.guest.enable = true; in my config although I'm using it as a real OS on my Laptop now?
<clever>
that would explain 2 of the errors in the gist, but not the main problem
<nwuensche>
clever: I use the GitHub Browser Gist UI :) I added it again
<clever>
Aug 26 19:23:04 nixos systemd[1]: display-manager.service: Service hold-off time over, scheduling restart.
<clever>
this line looks odd
feepo has joined #nixos
<clever>
and imediately after, systemd says it stopped x11
<nwuensche>
clever: Seems strange indeed
<clever>
sphalerite: any other ideas?
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<nwuensche>
clever: What can I do to find out more?
<clever>
nwuensche: remove the -u and read more of the journal around the time of going in and out of hibernation
acarrico has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
gnuhurd has joined #nixos
pxc has joined #nixos
<nwuensche>
clever: I found something about i3lock, could that be a problem? I updated the gist.
<clever>
Aug 26 19:20:13 nixos xsession[7342]: /nix/store/m5fzkvclh7zvrcldr0gvhwp4m24v663h-terminator-1.0/lib/python2.7/site-packages/terminatorlib/window.py:386: GtkWarning: Das Symbol »terminator_active_broadcast_group« konnte nicht gefunden werden,
<nwuensche>
clever: It says that it cannot find some gtk symbol for the terminal terminator. Could one missing symbol really be the problem?
<clever>
hmm, given that it happened 2 minutes before the resume, it might have been at login
<clever>
aha
<clever>
Aug 26 19:23:02 nixos kernel: drm/i915: Resetting chip after gpu hang
<clever>
Aug 26 19:23:02 nixos display-manager[7327]: intel_do_flush_locked failed: Input/output error
<clever>
Aug 26 19:23:02 nixos xss-lock[7403]: X connection lost; exiting.
pxc has quit [(Ping timeout: 252 seconds)]
<clever>
nwuensche: the video drivers appear to have crashed
<nwuensche>
clever: That doesn't sound good. Could the line 1374 Aug 26 11:48:51 nixos xss-lock[1057]: Error spawning locker: child process »i3lock-wrapper« couldn't be executed (No such file or directory), be the reason?
<nwuensche>
clever: Should I just delete the xsslock stuff
<clever>
dont think thats related
ambro718 has joined #nixos
<Turion>
Hi, sort of same question as before, but different package... I want to cabal build something with glpk-hs as dependency. I'm starting a nix shell like this: "nix-shell -p glpk curl" And from inside I try to "cabal install --only-dependencies"
<Turion>
But this doesn't find glpk
<clever>
haskell dependencies have to be passed to ghcWithPackages
<Turion>
clever, you mean other haskell packages as dependencies?
<nwuensche>
clever: Ok, so what could fix the problem?
<Turion>
afaik glpk-hs isn't packaged
<nwuensche>
clever: Should I try to fix the terminator symbol?
<clever>
nwuensche: i suspect the gpu drivers may not support hibernation
<nwuensche>
clever: If it is important: I have xserver.videoDrivers = [ "intel" ]; and a Intel HD Graphics
<clever>
that would explain the intel_do_flush_locked in the error
<Turion>
Where is it described how to use ghcWithPackages?
<Turion>
And does it take hackage packages or nixos derivations as arguments?
ixxie has quit [(Quit: Lost terminal)]
endformationage has joined #nixos
<Infinisil>
Maan, why do I so often get weird errors
<Infinisil>
Can't open perl script "use Nix::Config; Nix::Config::readConfig; print $Nix::Config::config{"binary-caches"};": No such file or directory
<kini>
question for anyone who's booting from zfs -- do I want a separate ext4 boot partition, or should I be trying to put a zfs-aware grub into the gpt?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v53ON
<NixOS_GitHub>
nixpkgs/master e244067 Pascal Bach: riot-web: init at 0.12.2 (#28585)
NixOS_GitHub has left #nixos []
<Infinisil>
kini: I'm using UEFI, so I need to have a vfat partition for boot
<clever>
kini: i prefer an ext4 /boot for legacy booting, or a fat32 /boot for efi
Fuuzetsu has quit [(Read error: Connection reset by peer)]
sellout- has joined #nixos
<kini>
hmm, thanks. I don't know much about EFI or the benefits of using it, I guess
<kini>
but it sounds like either way I should have a separate boot partition
ladams has joined #nixos
<clever>
yeah
<clever>
kini: and if your doing legacy on gpt, you also need a bios boot partition, 1mb, no fs, not mounted
pxc has joined #nixos
pxc has quit [(Ping timeout: 252 seconds)]
Nwuensche has joined #nixos
<Nwuensche>
Hi. I Messer Up some x stuff in my config, ANd now i can't Login with slim anymore. Even when Ich quit x with Ctrl Alt F1, I cannot Login There. If I enter my Password, ist Just want's the Username again in an endless Loop. What can I do?
<Nwuensche>
Messed Up of course. ANd I Quit X... ANd it Just want's...
jsgrant has quit [(Quit: jsgrant)]
<Nwuensche>
Sorry for that, my german Smartphone doesn't Want to write english...
<Infinisil>
Nwuensche: Are you sure you know the correct password?
<Nwuensche>
Jup
<Infinisil>
Because the virtual consoles (which appear on Ctrl-Alt-F{1-6}) are no different logins than normal
<Nwuensche>
It Shows me a nano second a Message, ANd then I have to Login again
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<Infinisil>
Nwuensche: You could boot from the live-cd and reset the password from there
<Infinisil>
With some chroot or so
<Nwuensche>
SLIM tells me that it c
<Nwuensche>
SLIM tells me that it cannot Login command
JosW has quit [(Quit: Konversation terminated!)]
<Infinisil>
Nwuensche: Doesn't have anything to do with slim if it doesn't work on the virtual console anyways
<Nwuensche>
I have the right Password, but I added Syntax Errors in the NixOS configs
<Nwuensche>
I messed Up the NixOS config. Can I rollback somehow?
<Infinisil>
Nwuensche: You can't even activate a system with syntax errors in the config, doesn't let you
<Infinisil>
so that's certainly not it
<Infinisil>
You can rollback between working and built systems, but not without logging in first
vagrant- has quit [(Ping timeout: 264 seconds)]
Nwuensche has left #nixos []
nwuensche_ has joined #nixos
<nwuensche_>
Infinisil: So I'm back in my PC :). It didn't let me log into the console from Ctrl+Alt+F1, but in the one from Ctrl+Alt+F2.
ambro718 has joined #nixos
<nwuensche_>
Infinisil: I tried to do this displayManager.sessionCommands = ''xautolock -locker '/run/wrappers/bin/i3lock-custom' -time 10& #suspend lock
<nwuensche_>
xss-lock -- "/run/wrappers/bin/i3lock-custom"& #lid close lock''};, but it crashed by system. Do you know why?
<Infinisil>
nwuensche_: Does the command work in a terminal just like that?
<nwuensche_>
Infinisil: Jep.
<nwuensche_>
I updated it now so that they use i3lock instead. I will try it out again and tell you if it works or not.
nwuensche_ has quit [(Remote host closed the connection)]
mudri` has joined #nixos
nwuensche has joined #nixos
<nwuensche>
Infinisil: It works with this, so thank you!
nwuensche has quit [(Client Quit)]
<Baughn>
Is it possible to get channels pushed through nixos-rebuild? As it stands, if I use the --target-host option, there's no guarantee that the target will have the same channel loaded as was used to build the configuration.
elastic_dog has quit [(Ping timeout: 246 seconds)]
<Infinisil>
Baughn: So you just want to have the same channel on localhost as on remote-host?
<Baughn>
Well, no, because I'm using a custom nixpkgs for the build.
<Baughn>
I suppose I want to push that nixpkgs and have remote hosts use it as their channel.
jsgrant has joined #nixos
elastic_dog has joined #nixos
<Infinisil>
There is no "custom nixpkgs channel", channels are predefined in the nixpkgs-channel repository
<Infinisil>
But I may know what you need instead, hold on
<Infinisil>
Baughn: Probably something like this is going to work: `nix.nixPath = [ "nixpkgs=${<nixpkgs>}" "nixos-config=/etc/nixos/configuration.nix" ];`
<Infinisil>
Note that the `nixos-config=...` part I just put there to keep the default
<NixOS_GitHub>
nixpkgs/release-17.03 c4f199a Ambroz Bizjak: chromium: fix beta version build...
<NixOS_GitHub>
nixpkgs/release-17.03 e56d163 Joachim F: Merge pull request #28170 from ambrop72/chromium-fix3...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #28389: Backport google-chrome and chromium to release-17.03 (release-17.03...chrome-backport) https://git.io/v5e1a
NixOS_GitHub has left #nixos []
<joachifm>
I wonder, is it necessary to have wiki edits broadcast to the channel?
<sphalerite>
clever: you asked me "any other ideas?" earlier, was that intended for me?
<joachifm>
hm, I guess I can just ignore ... nvm.
<Infinisil>
joachifm: Just thought about that too, but I think it's okay, because there are only a small part of the channel if people actually write stuff
<Infinisil>
s/there/they
johnw has quit [(Read error: Connection reset by peer)]
<joachifm>
Infinisil: /ignore to the rescue, so I'm all good :)
<joachifm>
such a nice feature but I always forget about it
<fadenb>
Infinisil: as there is #nixos-wiki I can always change the bot to go spam over there :P
_habnabit has quit [(Remote host closed the connection)]
<Infinisil>
fadenb: What's the difference between #nixos-wiki and #krebs?
dieggsy has joined #nixos
<fadenb>
Infinisil: I believe #krebs is used for more projects than just the wiki
<dieggsy>
hello! I've been looking for a way to reliably have my own package install/build specifications/instructions (outside of NixOS, on Ubuntu). It seems like this may be possible with the nix package manager, but it's unclear how I would do this using nix on Ubuntu and not NixOS.. anyone know anything about that?
pxc has joined #nixos
justbeingglad has joined #nixos
<dieggsy>
e.g. i'd like to define my-package (source, build etc.) and be able to `package-manager install my-package`
<Infinisil>
fadenb: I haven't ever seen anything other than the nixos wiki being mentioned in #krebs :P I guess I'll have a look at #nixos-wiki
zeus_ has joined #nixos
<Infinisil>
dieggsy: So, just a nix derivation for your package and install it with `nix-env -if <file>`?
<Infinisil>
Nix works outside of nixos on linux and macOS
<dieggsy>
Infinisil: would there be a way to do that without needing to specify a file? that is, can i keep that file somewhere and change some settings that tells nix that "my-package" is specified by that file?
<Infinisil>
dieggsy: You could use NIX_PATH: By setting export NIX_PATH="my-package=path/to/that/file:$NIX_PATH" and then using <my-package> in a nix-expression
<Infinisil>
Then you could do nix-env -if '<my-package>'
nixoswikibot has quit [(Remote host closed the connection)]
<Infinisil>
but not sure if that's what you want
<dieggsy>
hmmm
<dieggsy>
ideally it'd be nice to just be able to do nix-env -i '<my-package>"
<dieggsy>
but i suppose that migh t work
zeus_ has quit [(Ping timeout: 246 seconds)]
<Infinisil>
dieggsy: What are you trying to do exactly? Do you want to use this to distribute packages for other people to install?
<dieggsy>
Infinisil: nope, just for me
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<Infinisil>
Hmm
<dieggsy>
Infinisil: let's say i'm pretty tired of depending on shell scripts for local installs/complex builds of things
<dieggsy>
since those can't account for dependencies and stuff
<dieggsy>
I'd also like to not depend on something like linuxbrew, nixos just seems more powerful
<Infinisil>
dieggsy: A better solution would be to have something like mypkgs=~/pkgs in NIX_PATH, then use `nix-env '<mypkgs>' -iA pkgname
<dieggsy>
s/nixos/nix
<Infinisil>
dieggsy: While the file ~/pkgs/default.nix declares an attribute set with the packages you want
<Infinisil>
Or
<Infinisil>
How about an overlay, you can put one in ~/.config/nixpkgs/overlays and define your packages in there, then `nix-env -iA nixos.yourpkgname`
<Infinisil>
Or nix-env -i yourpkgname may also work then
<dieggsy>
hmmm
<dieggsy>
Infinisil: i'll look into that, thanks! i didn't see mention of overlays in the maunal
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<Infinisil>
Hey clever, I believe you know this, what happens when multiple disks have the same partlabel?
<Infinisil>
I'd think a single one of them would be used when accessing via /dev/disk/by-partlabel
takle has quit [(Ping timeout: 276 seconds)]
<kevincox>
Infinisil: According to the internet you get a random on in /dev/disk/by-partlabel.
<Infinisil>
kevincox: Ah, nice! Exactly what I need :D
<kevincox>
s/random on/random one/
<kevincox>
Also I think it goes without saying that this isn't advised :P
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<Infinisil>
kevincox: I think it's pretty okay in my usecase: I want to put a key to decrypt the main disk on multiple usb sticks, so if I label them all with "key" I just need to use /dev/disk/by-partlabel/key and it'll work as long as I have at least one connected
<kevincox>
That does sound like a pretty decent use case of this :)
jellowj has quit [(Ping timeout: 248 seconds)]
<Infinisil>
Indeed, makes my config a lot simpler
thc202 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v53l6
<v0|d>
is there a way to get hardeningDisable = ["all"] effect directly on shell via nix-shell -p gcc49?
<v0|d>
like -e "hardeningDisable = ['all']" or alike?
<v0|d>
sometimes -fstack-protector-strong gets on the way of old code:(
<Infinisil>
. /dev/mapper/root points to /dev/dm-4 which is not present in /dev/disk/by-uuid
bamaq has joined #nixos
eacameron has quit [(Remote host closed the connection)]
MP2E has joined #nixos
eacameron has joined #nixos
<dtzWill>
v0|d: export hardeningDisable=all
takle has joined #nixos
<v0|d>
dtzWill: thnx.
hiratara has quit [(Remote host closed the connection)]
hiratara has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
<pstn>
Where can I find out when unstable built successfully the last time?
<kevincox>
Did howoldis.herokuapp.com die? I used to check it for this.
<bamaq>
hi! is there a way to upload a folder instead of a file to /run/keys using nixops?
<kevincox>
But it isn't loading today.
<kevincox>
bamaq: AFAIK no.
<bamaq>
kevincox: i see... perhaps .tar will do
<pstn>
kevincox: Working fine for me. Thanks.
<kevincox>
You can also try to have lots of different keys if that is easier. But tar also works.
<kevincox>
philipp: Ah yes, it managed to load for me too. I guess heroku just put it to sleep.
phinxy has joined #nixos
pxc has joined #nixos
<pstn>
Should a commit that hit master 7 days ago be in a nixos-unstable being built 5 days ago?
<octalsrc[m]>
Weird, the ssh-agent service disappeared on my latest nixos upgrade
ison111 has quit [(Ping timeout: 240 seconds)]
phinxy has quit [(Read error: Connection reset by peer)]
phinxy has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Remote host closed the connection)]
justbeingglad has left #nixos []
eacameron has joined #nixos
<kevincox>
philipp: I do believe so. Also http://howoldis.herokuapp.com/ provides the commit that release was based off of so you can use that to check.