<infinisil>
Ashy: Or even simpler, just call the binary (I assume it's a binary?) directly, /nix/store/xxx-foo/bin/foo
<Ashy>
yeah it's a python script, the derivation uses buildPythonApplication
emptyfl4sk has quit [Ping timeout: 245 seconds]
schjetne has quit [Ping timeout: 244 seconds]
jluttine has joined #nixos
<Ashy>
ah right, my script imports a utils.py file aswell which is missing from the derivation output
<Ashy>
when `nix build` succeeds is there a way to tell what paths it just added to /nix/store?
iqubic has joined #nixos
<iqubic>
Why does it sometimes take a long time for an "rm -rf" command to complete?
<simpson>
Time taken is proportional to the number of inodes updated, I bet.
<simpson>
And sometimes you have lots of inodes? Not sure.
<clever>
Ashy: nix-build creates a result symlink pointing to the ... result!
<clever>
simpson: and for some FS's the time to delete a file scales with the size of the file
<simpson>
clever: Right, on e.g. JFFS2?
<clever>
simpson: ext3 i think also does that
<clever>
ive heard that xfs has faster deletes for large files
<clever>
zfs just does the hard work in the background, there is a garbage collector somewhere
<iqubic>
I see.
<Ashy>
clever: ah right, of course!
<iqubic>
I'm running zfs here.
<clever>
also, in the case of zfs, when you remove a file from a dir, it has to write the new version of that dir listing to disk
<clever>
and if you are below something like 5% free, writing anything is cpu intensive
<Ashy>
also, from grepping nixpkgs i think i need to put the utils.py module into pythonPackages.python.sitePackages
<iqubic>
I wish I could have a progress bar accompany this "rm -rf" command.
<iqubic>
Also, because I have snapshots enabled, I'm not going to actually be saving this space, until I delete a few snapshots. Isn't that odd?!?
<clever>
iqubic: rm -rfv
<clever>
yeah, since you have snapshots on, deleting files will actually consume more disk space, as it creates new versions of the dir listing, to mark them as not in the dir anymore
<clever>
but if the dir itself is deleted (the -r in rm -rf), you get that back (as long as another snapshot wasnt made)
* clever
heads to bed
fusion809 has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
m0rphism has quit [Ping timeout: 246 seconds]
felixfoertsch23 has joined #nixos
emptyfl4sk has joined #nixos
felixfoertsch has quit [Ping timeout: 245 seconds]
emptyfl4sk has quit [Ping timeout: 246 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiratara has joined #nixos
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
hmpffff_ has joined #nixos
hmpffff has quit [Ping timeout: 252 seconds]
oborot has quit [Ping timeout: 268 seconds]
M010100100110010 has joined #nixos
slack1256 has quit [Read error: Connection reset by peer]
<Ashy>
iqubic: I would just enable gnome and rebuild in your situation
<Ashy>
although if your drive is full that may not be an option
<iqubic>
Ashy: My drive is no longer full.
captn3m0 has joined #nixos
jb55 has quit [Ping timeout: 260 seconds]
<Ashy>
Nice, I would enable gnome and debug from there
<iqubic>
Also, I fixed my issue by just deciding to just use startx instead of a display manager of any sort.
<Ashy>
Ah yeap, I just enabled gnome and i3 and i3 shows up in the session list on the login screen
jb55 has joined #nixos
<Ashy>
and then I swap over to tty1 and run sway manually most of the time
<iqubic>
I don't really actually care. I prefer being minimalist and just using startx.
<iqubic>
Oh. Lol.
<Ashy>
hehe
endformationage has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
endformationage has quit [Client Quit]
<{^_^}>
[nixpkgs] @vcunat pushed to master « deluge service: fix my bad conflict resolution from f21211ebf »: https://git.io/Jeekg
kenshinCH has joined #nixos
iqubic has joined #nixos
<kenshinCH>
hi guys. I just upgraded my system, and the new firefox (69) doesn't load any page anymore. Network is working fine otherwise. Haven't seen a issue on GitHub. Has this happened to anyone?
<iqubic>
So, I found that if you run a search through the NixOS package list you can find a lot of packages offering X11 mouse cursors. However, I have no idea how to use these cursors. Anyone know?
<Shell>
kenshinCH: weirdly, the same thing happened to me with tor-browser the other day. o.o
<kenshinCH>
Shell: found a way out, or did you rollback?
<kenshinCH>
Shell: my FF profile was upgraded, so I'd rather not try my luck opening it with the previous version
seanparsons has joined #nixos
<Shell>
kenshinCH: I'm pretty sure I wound up rebuilding it and it worked.
<Shell>
or deleted the profile. or both. can't remember details.
<kenshinCH>
Shell: I see, thanks!
<iqubic>
So, let's say I were to install one of these packages that provides an X11 mouse cursor set for me to use. How would I go about getting that set up?
Snowfox has left #nixos ["Konversation terminated!"]
mexisme has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
dasj19 has joined #nixos
frigate_freedom has joined #nixos
polman has quit [Ping timeout: 245 seconds]
<frigate_freedom>
Hello guys! Can you tell me, please, if turning system.autoUpgrade on will update software installed wia home-manager in my user profile automatically?
Ariakenom has quit [Read error: Connection reset by peer]
<srhb>
frigate_freedom: It will not.
<srhb>
Not unless you're using home-manager as a NixOS module at least.
Bryophyllum has joined #nixos
polman has joined #nixos
<{^_^}>
[nixpkgs] @srhb opened pull request #68308 → nixos/lib/utils: Make the set recursive again, unbreak eval → https://git.io/Jeeqi
<frigate_freedom>
srhb: Thanks. So, if I will add home-manager to configuration.nix as it said here: https://nixos.wiki/wiki/Home_Manager all software installed by home-manager will be updated automatically&
<frigate_freedom>
*?
<srhb>
frigate_freedom: Yes, because the home-manager env will be tied to nixos-rebuilds then.
<frigate_freedom>
srhb: Thank you wor your answer :)
b has joined #nixos
Yakulu has left #nixos ["Error from remote client"]
Yakulu has joined #nixos
<Bryophyllum>
Hi! Any reason why QT apps have unreadable font and broken theming on Wayland when I start Plasma from CLI as opposed to starting it from SDDM/LightDM?
polman has quit [Ping timeout: 245 seconds]
<provessor[m]>
Bryophyllum: I can't help with this but as far as I knew, wayland was still experimental and not expected to work everywhere
polman has joined #nixos
emptyfl4sk has joined #nixos
<Bryophyllum>
provessor: That's a shame. Do you think it could be caused by running NixOS in a QEMU/KVM using GNOME Boxes?
<alexarice[m]>
Bryophyllum: I'm not this is a nixos problem
<alexarice[m]>
I think the login manager did some extra setup to get stuff working
<alexarice[m]>
*I don't think
shadrach has joined #nixos
<shadrach>
I am getting
<shadrach>
error: Package ‘cudatoolkit-9.2.148.1’ in /nix/store/29hg0ks40362ji7fbiaxjhlhxi0ll9w2-nixpkgs-unstable.tar.gz/pkgs/development/compilers/cudatoolkit/default.nix:189 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<shadrach>
But I am pretty sure cuda does work on macos
<shadrach>
Is this some nix limitation?
<clever>
shadrach: the nix package likely hasnt been tested/fixed on macos
<Yaniel>
you know the situation with graphics drivers on nixos is bad when even dota refuses to launch
<simpson>
You don't *have* to use Homebrew; you likely don't have to use Apple's OS at all. (Perhaps, if you're fortunate, you can avoid using their hardware, too.)
<clever>
shadrach: i believe nixops supports macos and azure
<simpson>
Yaniel: Feel free to contribute better drivers.
* shadrach
does not know what nixops is
<shadrach>
simpson: thanks but I don't know what to do with it
<shadrach>
clever: can I use nixops rather than azure-cli to create an azure box running nixos?
polman has quit [Ping timeout: 245 seconds]
<clever>
shadrach: yeah
<Yaniel>
simpson: it did work until someone decided to wall off the driver .so files from applications without telling anyone
<simpson>
Yaniel: Ah, of course, "someone". *They're* why we can't have nice things~ Anyway, does reverting that choice cause things to start working again?
<Yaniel>
yes, but clearly that isn't how nixpkgs should handle drivers
<Yaniel>
which is why it was changed
<Yaniel>
now if there was some documentation about this, especially how packages are supposed to handle graphics drivers now, then I could be fixing these things instead of ranting
polman has joined #nixos
Chiliparrot has joined #nixos
<simpson>
Packages should probably look up drivers in the standard way. It's hardly our fault that libGL is decades of hax.
rndd has joined #nixos
<simpson>
(I just double-checked that the manuals don't have quirky or special instructions for driver maintainers.)
jb55 has joined #nixos
shadrach has quit [Remote host closed the connection]
shadrach has joined #nixos
<rndd>
hi everyone, I dont understand how to just run precompiled binary. there is an error "bash: ./Aby_Elf_file: No such file or directory"
<Yaniel>
and what would that standard way be?
<clever>
rndd: you have to run patchelf on it to fix the interpreter
<simpson>
Yaniel: https://dri.freedesktop.org/wiki/libGL/ covers the init path for Free drivers, which are almost all of them. (We have special support code to make nVidia's objects sit down and shut up.) https://github.com/NVIDIA/libglvnd is quickly becoming popular as an automation of the libGL lookup.
<srhb>
kim0: Yes, I understood that. You'll need to do something like what I suggested.
ambro718 has joined #nixos
<kim0>
Oh I thought that was a question
<srhb>
Ah, sorry.
<srhb>
I suggest that you make a separate unit that does the fetching, puts the instance id into a file, and then your other unit can wait for that an get the information from the file.
<kim0>
but then I'd need to set dependecies between the 2 services :)
<kim0>
pain incoming
<srhb>
kim0: Correct.
<srhb>
It's not that painful.
<kim0>
is there no way to just read it inline ?
boxdot1 has quit [Ping timeout: 245 seconds]
<srhb>
kim0: No, because it's inherently impure.
<kim0>
like in bash $(curl http://...)
<srhb>
Sure.
<srhb>
If you want it in the same unit :)
<srhb>
That's fine.
<kim0>
Ah! that would work
<kim0>
Execpre or whatever
<kim0>
but how do I read from that file
<srhb>
Yeah, my point was merely that you can't do it in a pure fashion from within Nix..
<kim0>
Exec=/my/app --from $(read file here?)
<srhb>
kim0: Sure.
<kim0>
can you show me how please
<srhb>
echo $(cat file)
<srhb>
kim0: Or just inline curl as you proposed.
<kim0>
mm .. not sure if systemd runs those lines through a shell
<kim0>
if it does .. yeah, I guess i could do al lthat
<srhb>
kim0: You can always feed it a script as its ExecStart instead, if need be.
<haslersn>
How can I cross compile nixpkgs packages on linux for darwin?
<srhb>
We have a lot of primitives for easily building those..
<zeta_0>
these instructions say to put `udiskie &` in `~/.xsessionrc`, is this done differently in nixos? should i paste `udiskie &` into `displayManager.sessionCommands` instead?
<{^_^}>
[nixpkgs] @svanderburg pushed commit from @mmahut to release-19.03 « axis2: 1.7.8 -> 1.7.9 »: https://git.io/Jees3
<kim0>
I want to edit the file /nix/store/778670j7lf4aysl764m6vrwblgl4p9qh-unit-xmrig.service/xmrig.service manually .. instead of the longer nixos-build for debugging .. it's not writeable :/
mexisme has joined #nixos
<codedmart>
How do others keep npm up to date? For instance I have nodejs 10 installed which has npm 6.4.1, but the latest npm release is 6.11.3?
<kraem>
i'm currenctly sitting on a train with a bad connection and want to add a user to a group. i accidentally ran nixos-reubild with the --ugrade option and now when i run switch without --upgrade it wants to upgrade all my packages. is there some way i can rebuild the system without upgrading packages now?
emptyflask has joined #nixos
<clever>
kraem: nix-channel --rollback
mexisme has quit [Ping timeout: 276 seconds]
<clever>
kraem: behind the scenes, all `nixos-rebuild --upgrade` does, is run `nix-channel --update`
Yakulu has left #nixos [#nixos]
o1lo01ol1o has quit [Remote host closed the connection]
<zeta_0>
clever: sounds good, and this is what i am trying to do:
<infinisil>
rnhmjoj: I mean I can see what it does, but haven't come accross something that needed it
_d0t has quit [Ping timeout: 245 seconds]
<rnhmjoj>
infinisil: some service doesn't start or fails to work properly without a DISPLAY. for example i have to set it manually for urxvtd, which needs it for running xsel
<infinisil>
Hmm, but why are services that fail to start in nixpkgs to begin with? Or is this a regression due to systemd changes or so?
<philipp[m]>
sbd here also running arch linux and can tell me whether mudlet-4.1.0 from aur actually runs and is properly linked against `libQsLog.so`?
jtojnar has quit [Quit: jtojnar]
o1lo01ol1o has joined #nixos
<Acou_Bass>
hmm nope :D sorted
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
schjetne has joined #nixos
emptyfl4sk has quit [Ping timeout: 245 seconds]
<PyroLagus>
i just use the appimage tbh, because it has way too many aur deps
<PyroLagus>
it's not a huge problem on nixos, since you do your whole config in configuration.nix, and if you need an application specific config, you can just declaratively add a container. but on other distros, it's a pain
<clever>
no idea why one works and the other doesnt
<PyroLagus>
oh. should i have written utillinux then?
<clever>
i would expect util-linux to fail with a clear error
<clever>
what error did you get?
<evanjs>
What channel does the bot source, anyhow? Or more importantly, is the bot on GH somewhere or etc?
<clever>
evanjs: it defaults to master, but you can also name a channel
<clever>
> unstable.firefox.name
<{^_^}>
"firefox-68.0.2"
<evanjs>
Oh well that's fine with me as my primary is nixpkgs-unstable. Still need to add that master channel to my config...
<clever>
evanjs: best to use one of the channels, master can break things
<PyroLagus>
well, i have a bunch of compile output right now so the error is gone, but it was something along the lines of fontconfig being called incorrectly in customization.nix or something
ddellacosta has quit [Ping timeout: 268 seconds]
<evanjs>
clever: lol yeah I know. I would only be using it as an auxiliary channel. To start, just stuff like gitkraken, postman, etc. stuff I bump and misc binary packages that don't take long to build.
<clever>
evanjs: nixos-unstable-small is better for that, it updates faster, and still has testing
o1lo01ol1o has quit [Remote host closed the connection]
<evanjs>
okay, so it _was_ infinisils. Searching nixbot gives a few results but I should've figured.
cdepillabout has quit [Ping timeout: 250 seconds]
<tilpner>
evanjs: {^_^} is a fancy contraption that runs on different machines, so it's not just that repo
<evanjs>
tilpner: I figured as much, just nice to have a starting point of reference!
<evanjs>
clever: often times the channels will switch places in terms of which is newest so I had to query them all.. though my current solution might not be the most optimal
<PyroLagus>
dear santa pls gib me 32 core threadripper thx
<kim0>
I'm trying to add unstable channel, in a declarative way .. My configuration.nix works well, when I "switch" to it interactively .. but when I started a fresh ec2 server .. I faced this error
<kim0>
error: executing 'tar': No such file or directory
<Yaniel>
oh cool, apparently nvidia changed their driver layout which broke vulkan *again*
cdepillabout has joined #nixos
<Yaniel>
and the fix hasn't made it to nixos-unstable yet ;__;
<PyroLagus>
wow
<clever>
kraem: what command did you run to cause that error?
<PyroLagus>
yet another reason to not buy nvidia
<evanjs>
kim0: is your configuration available somewhere we can see?
<Yaniel>
PyroLagus: I mean it just werks if you run their binary installer on ubuntu :P
<evanjs>
PyroLagus: was going to say i don't notice because I don't have much game time lately, but I'm pretty sure it's more because I have a gaming computer that runs windows lol.
<clever>
kim0: are you using nixos-install?
<PyroLagus>
it does. until you want a wayland compositor that isn't gnome3
<kim0>
no I'm starting an ec2 instance
<clever>
kim0: with the metadata containing this cfg?
<kim0>
Yep
<Yaniel>
now if only amd had a card that can do 4K decently
<clever>
kim0: the systemd service that runs nixos-rebuild must not have tar in PATH
<kim0>
makes sense
<clever>
kim0: youlll need to use (import <nixpkgs>{}).fetchFromGitHub
<clever>
kim0: or use nixops
emptyfl4sk has joined #nixos
<kim0>
This is literally my first day with nixos .. and I'm mostly copy/pasting from other webpages :D
<kim0>
clever: do you mind please giving me a full line to use
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<PyroLagus>
for github you can use prefetch
<PyroLagus>
you'll have to install it though
<kim0>
Ok .. is the above the best way to add "unstable" channel through configuration.nix
<PyroLagus>
well, it turns out that fontconfig actually didn't take that long to compile... it was all the deps that use it. cairo, pango, gtk, qt, ...
oborot has quit [Ping timeout: 245 seconds]
<PyroLagus>
which i apparently don't even have all the necessary disk space to compile, sooo
knupfer has quit [Ping timeout: 264 seconds]
<nspin>
The manual suggests that we are searching for a cross compilation pattern without the performance cost of splicing and without explicit references to buildPackages. Does anyone know how that search is going? I haven't been able to find discussion about it online.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
pie_ has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
Myhlamaeus1 has quit [Remote host closed the connection]
gxt has quit [Quit: WeeChat 2.5]
o1lo01ol1o has joined #nixos
pie_ has joined #nixos
alex`` has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
hpfr[m]: I'd just use an override for that, like `environment.systemPackages = [ (pkgs.keepassx.override { withKeePassNetworking = true; }) ]`
<infinisil>
s/keepassx/keepassxc
shibboleth has joined #nixos
cswl has quit [Quit: Connection closed for inactivity]
<hpfr[m]>
Why don’t I want import <nixpkgs> to have that modification?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<infinisil>
hpfr[m]: Not sure what you mean by that
<hpfr[m]>
Isn’t that the difference between the overlay and the systemPackages override approaches
<Smith[m]>
infinisil: I'm just starting with Nix but from what I understand the only way to manage SSH keys distribution is through NixOps
jb55 has joined #nixos
Stuck_ has joined #nixos
shibboleth has joined #nixos
reanimus has quit [Ping timeout: 244 seconds]
<infinisil>
Ah true, forgot about that, I could use `resources.sshKeyPairs` to make it generate a key pair automatically, then use those through the `nodes` argument
<infinisil>
However, I'm actually trying to get away from nixops (because it's stateful and has way more than I need) and using the `nodes` argument (because it slows down evaluation a lot)
<Stuck_>
hi, I'm trying to install chicken (scheme to C compiler) so I've included in my config chickenPackages_5.chicken, but when I try to compile a helloworld program it says "Error: default type-database `types.db' not found", am I missing something
<infinisil>
Wait, I can use resources.sshKeyPairs without nodes
<{^_^}>
[nixpkgs] @FRidh pushed 72 commits to staging-next: https://git.io/JeeRQ
<{^_^}>
[nixpkgs] @FRidh pushed 17 commits to staging-next: https://git.io/JeeR7
fusion809 has quit [Remote host closed the connection]
<evanjs>
trying to debug an application I'm packaging, and the GTK debugger is missing a bunch of icons. Pretty sure I've seen this before, though, and I have no clue how I'm supposed to resolve it. I thought hicolor-icon-theme is usually enough, if not adwaita and etc
<samueldr>
mac10688: one is simply a shell (bash) started with a couple environment variables set in specific ways, the other is a "real deal" container, running under systemd-nspawn
<Yaniel>
3) install it with the conf attribute overridden (see manual on how overrides work)
<Yaniel>
4) ???
<Yaniel>
5) profit
Neo-- has joined #nixos
<ivegotasthma>
raylier: I use alacritty, it's pretty nice
o1lo01ol1o has quit [Remote host closed the connection]
<Yaniel>
+1 for alacritty :3
<Raylier>
ivegotasthma, I have alacritty but I want it to read Xresources, I guess
<Yaniel>
what for?
<Raylier>
I like a consistent color scheme
<Yaniel>
you could set up a script that rewrites the color section of your alacritty config
<Yaniel>
and hook that up to something to automate things I guess
<Yaniel>
or you can do the override thing I mentioned
<evanjs>
jtojnar: right right. **Included it in the enviroment/buildInputs as I usually seem to need it
casaca has quit [Read error: Connection reset by peer]
hoijui has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<evanjs>
re alacritty, failed in trying to get it to match my current kitty color scheme :/ also sorta like the tmux-like features (at least until I get tmux bound more like kitty)
casaca has joined #nixos
m15k has joined #nixos
ddellacosta has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
cdepillabout has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @shyim opened pull request #68322 → mysql80: add missing version → https://git.io/Jevsg
wfranzini has quit [Remote host closed the connection]
__red__ has quit [*.net *.split]
aleph- has quit [*.net *.split]
mkoenig has quit [*.net *.split]
__red__ has joined #nixos
mkoenig has joined #nixos
aleph- has joined #nixos
drakonis has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<m15k>
If I install nix manually. Do I need to add a channel manually too?
<joko>
hey, I am trying to generate a package using node2nix, which has a dot in its name (asciidoctor-reveal.js), how one can override the dot character there?
drakonis has quit [Client Quit]
<joko>
m15k: no idea, but you can always check afterwards if this is needed, e.g., nix-channel --list
<fgaz>
The source is available, but that package just pulls the prebuilt jar from github
aristid1 has quit [*.net *.split]
justanotheruser has quit [*.net *.split]
o1lo01ol1o has joined #nixos
justanotheruser has joined #nixos
<fgaz>
Alternatively, has the nixpkgs gradle infrastructure improved?
aristid1 has joined #nixos
m0rphism has joined #nixos
<evanjs>
fgaz: All I know is that there's a build-manager expression for it, though I'd also like to see more documentation and etc re java stuff, if only for work projects
shadrach has quit [Remote host closed the connection]
<__red__>
So that was a nice surprise
shadrach has joined #nixos
<{^_^}>
[nixpkgs] @FRidh merged pull request #68324 → gcc: use gcc7 for darwin → https://git.io/JevsF
<__red__>
I've been using unstable on my servers forever
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « gcc: use gcc7 for darwin »: https://git.io/JevGm
<fgaz>
evanjs: hmm yeah I see that the few packages that use gradle just let it download stuff in the deps subpackage… but then wouldn't the build fail in the sandboxed hydra?
<__red__>
and I've been waiting for the exim update to hit - and it's been delayed. SO I figure I'd try unstable-small and just pull in anything that was missiong
<__red__>
there was nothing missing
<__red__>
appareently all my server software is in -small already :-D
<justanotheruser>
how can I not run doCheck for a package in nix-shell? I want to do this: `nix-shell -p python37Packages.requests -p python37Packages.matplotlib python37Packages.matplotlib.doCheck=false`
<infinisil>
justanotheruser: -p 'python37Packages.matplotlib.overrideAttrs (_: { doCheck = false; })' should do it
<Acou_Bass>
hey everyone, just a curiosity, does anyone have a nixos config that allows per-user openvpn configs? i had a setup on arch where i had a user account who's traffic always went over the VPN but everyone else's didnt (so i could browse via vpn by starting firefox as that user, for example)
shadrach has quit [Ping timeout: 244 seconds]
<Acou_Bass>
im thinking of doing it on nixos by using containers (so run that user inside a container with all his software installed within it, including a running openvpn daemon)
schjetne has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
emptyfl4sk has joined #nixos
<manveru>
thoughtpolice: trying to package https://github.com/eulerto/wal2json but i'm running into some strange errors when i build nixos with the result...
<infinisil>
Acou_Bass: I don't think there's anything built-in for that, but recently I tried to research myself how to do that (for deluge), and found this which could be useful: https://github.com/bendikro/deluge-vpn
<Acou_Bass>
yeah thats similar (probably the same) as how i did it on arch hehe
<Acou_Bass>
hmm
<Acou_Bass>
i reckon best im gonna get is run a nixos-container with openvpn running + all the softwares i want in there
apeyeoux is now known as apeyroux
vika_nezrimaya has quit [Ping timeout: 246 seconds]
<emily>
I've also been wondering about its brokenness (and don't use `nix-env` at all, so unfortunately the github instructions don't really work for me)
<emily>
is the only option to maintain a custom overlay or something?
shyim has quit [Client Quit]
shyim has joined #nixos
<sphalerite>
probably domenkozar[m] and roberth are the ones to ask
andi- has quit [Remote host closed the connection]
gagbo has joined #nixos
sellout- has quit [Ping timeout: 245 seconds]
inkbottle has quit [Ping timeout: 246 seconds]
andi- has joined #nixos
sellout- has joined #nixos
abathur has joined #nixos
schjetne has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dmj`>
"Realistically, this may force us to drop support for macOS. Using a different store location for macOS would require a separate binary cache and a separate Hydra instance, and there would be no guarantee that the new location wouldn't break in the future."
pikajude has joined #nixos
Myhlamaeus1 has quit [Ping timeout: 245 seconds]
shyim has joined #nixos
<dmj`>
eelco say it ain't so
shadrach has quit [Ping timeout: 245 seconds]
<rawtaz>
we'll see what happens
shyim has quit [Client Quit]
<rawtaz>
then again we're all switching from macOS anyway sooner or later :P
shyim has joined #nixos
<dmj`>
some of us want to cross compile Haskell to iOS
<dmj`>
using nix on darwin
aveltras has quit [Quit: Connection closed for inactivity]
<dmj`>
so /nix not being writable seems to be a catalina *beta* thing
<dmj`>
or maybe not
<Ralith>
why is having a different root such a huge deal? isn't all the darwin stuff pretty much separate anyway?
o1lo01ol1o has joined #nixos
shyim has quit [Client Quit]
shyim has joined #nixos
<emily>
if you read the issue a bit further it looks like there's an alternative to get /nix working
<rawtaz>
dmj`: been a while since i read the comments but it seemed to me like there was hope, given what the Apple guy said
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
jb55 has quit [Remote host closed the connection]
hmpffff has quit [Client Quit]
jb55 has joined #nixos
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
emptyfl4sk has joined #nixos
b has quit [Ping timeout: 258 seconds]
<dmj`>
that would be nice
<dmj`>
hope is good
jtojnar has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 268 seconds]
Zer0xp_ has quit [Ping timeout: 268 seconds]
jtojnar has joined #nixos
rotaerk has quit [Ping timeout: 244 seconds]
user12343 has joined #nixos
t58_ has joined #nixos
<user12343>
hey guys, I'm having problems fetching a specific tar.gz
<ddima>
user12343: there was a similar issue a while ago and it looks like wontfix due to a server-side misconfiguration: https://github.com/NixOS/nix/issues/1568
<{^_^}>
nix#1568 (by mguentner, 1 year ago, closed): nix 1.12: x-gzip encoding causes an error
<provessor[m]>
I'm not at a computer at the moment, I can try in about 40 mins though
<provessor[m]>
user12343: from what ddima said, the best option would probably be to download the file yourself and change it to application/x-gzip
<user12343>
thanks ddima {^_^} .. I, for whatever reason, didnt search for it in the "nix" repo, only in the nixos one. So you think I should contact the serveradmin?
nspin has quit [Ping timeout: 260 seconds]
emptyfl4sk has joined #nixos
<haslersn>
How can I cross compile nixpkgs packages on linux for darwin?
<user12343>
is there another way beside "fetchTarball" to download, extract and then build the tar.gz from within a nix-expression, using fetchTarball does not work because of the error
<ddima>
user12343: you could, or you could consider mirroring it yourself onto github or elsewhere, if its just for your personal use and license permits, for instance
Miranda_Blair has joined #nixos
<user12343>
having it locally in my /etc/nixos dir would be fine too i guess.. can I somehow tell mkDerivation to use a local dir as src (instead of a remote one like github)
drakonis has joined #nixos
<clever>
user12343: src = /path/to/local/dir or src = ./.;
<user12343>
thatks a lot :) But I think a solution in the way i mentioned above (downloading and extracting it from within the nix expression) would be the cleanest approach (without mirroring of course)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emptyfl4sk has quit [Ping timeout: 245 seconds]
<user12343>
could you help me getting started there? I'm quite new to nixos, and i dont know how i would extract the files manually from within the nix-expression
<clever>
user12343: if you point src to a tar, mkDerivation will unpack it automatically
<{^_^}>
[nixpkgs] @Ma27 opened pull request #68332 → urlview: fix path to url_handler.sh → https://git.io/JeJsL
<clever>
user12343: can you pastebin the nix expr you have so far?
<clever>
user12343: i think you just want nix-prefetch-url, without --unpack