proofofkeags_ has quit [Ping timeout: 265 seconds]
proofofkeags has quit [Ping timeout: 265 seconds]
xd1le has joined #nixos
zakame has quit [Remote host closed the connection]
footlooseboss has joined #nixos
liuyb has joined #nixos
emmanuel_erc has quit [Ping timeout: 272 seconds]
zakame has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTen0
sigmundv__ has quit [Ping timeout: 272 seconds]
cinimod has quit [Ping timeout: 260 seconds]
MetroWind has joined #nixos
liuyb has quit [Ping timeout: 272 seconds]
<MetroWind>
I'm using Nix in macOS. I was trying to install Imagemagick with "nix-env -i imagemagick" but it doesn't install the latest version. Why is that?
<MetroWind>
I expect it to install 7.0.x (listed with nix-env -qa) but it gave me version 6.
<samueldr>
since the verifications have to be made against master, when master breaks all PRs end up failing
<Wulfsta>
samueldr: Thanks, wasn't sure what was happening and figured I'd ask before opening an issue.
ericsagnes has quit [Quit: WeeChat 2.7.1]
<samueldr>
fastest way to know the bot is working or not, look amongst the older failing PRs (I see one from a Wulfsta!) and if there's a check from the ofborg eval, the bot ran
ericsagnes has joined #nixos
<samueldr>
and "The branch this PR will merge in to does not cleanly evaluate, and so this PR cannot…" means that the branch (here master) did not evaluate cleanly _before_ trying to look at your changes
<Wulfsta>
Ah, that makes sense! Thanks again for the help
Wulfsta has quit [Remote host closed the connection]
alp has quit [Ping timeout: 272 seconds]
shibboleth has quit [Quit: shibboleth]
jani1234 has joined #nixos
zacts has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
proofofkeags_ has quit [Ping timeout: 260 seconds]
jani1234 has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
pr06lefs has quit [Remote host closed the connection]
pr06lefs has joined #nixos
Fuuzetsu has joined #nixos
<Fuuzetsu>
xos
<Fuuzetsu>
Hi. Is there any reason why root user doesn't by default use the nix-daemon service just look regular users in multi-user setup? Considering that the advised way to set things like private S3 caches is to set variables for the nix-daemon service, this seems a bit strange. It means that actions as root (such as nixos-rebuild) don't honour the variables – so you are suddenly not using the expected env and your binary cache fetch fails
<Fuuzetsu>
couldn't really find any docs on this.
pr06lefs has quit [Ping timeout: 240 seconds]
jabster28 has joined #nixos
jabster28 has quit [Ping timeout: 246 seconds]
<clever>
Fuuzetsu: less overhead, it can just fork out the child workers directly, and modify /nix/store without using the RPC
<clever>
Fuuzetsu: but you can `export NIX_REMOTE=daemon` to force it
astylian_ has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 260 seconds]
Supersonic112 is now known as Supersonic
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
zebrag has quit [Ping timeout: 264 seconds]
inkbottle has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cinimod has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
fresheyeball has joined #nixos
<fresheyeball>
is it possible to provide an env to a systemd module?
Fuuzetsu has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 260 seconds]
endformationage has quit [Quit: WeeChat 2.9]
ericsagnes has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @ryantm merged pull request #97386 → tinycdb: add support for static build → https://git.io/JUZ7f
<{^_^}>
#99724 (by onny, 2 days ago, open): ocenaudio: init at 3.9.3
orivej has joined #nixos
<siraben>
Are there good tutorials on how to do web development with Nix? Is it possible to specify a MongoDB server to run locally, for instance?
<siraben>
Working with a large node project
<{^_^}>
[nix] @regnat opened pull request #4128 → Add a zsh completion script → https://git.io/JTe5W
pinpox has quit [Quit: Ping timeout (120 seconds)]
pinpox has joined #nixos
zupo has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 pushed to master « yarn2nix-moretea: re-add support for `git://` URLs from `yarn.lock` »: https://git.io/JTedR
griff_ has joined #nixos
cole-h has quit [Ping timeout: 258 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
orivej has quit [Ping timeout: 240 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
SLPrehn has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}>
[nixpkgs] @Ma27 pushed to release-20.09 « yarn2nix-moretea: re-add support for `git://` URLs from `yarn.lock` »: https://git.io/JTedj
<ocharles>
I have `./nix/pkgs.nix` which uses `builtins.fetchTarball` to fetch a version of NixOS 20.03. This works, and I can do: nix-shell -p '(import ./nix/pkgs.nix).hello'. However, this only works if I have <nixpkgs> working, and I don't know why
civodul has joined #nixos
<ocharles>
That is, `env NIX_PATH= nix-shell -p '(import ./nix/pkgs.nix).hello'` explodes with: `error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`
<ocharles>
Any idea why this is happening?
SLPrehn has quit [Remote host closed the connection]
berberman has quit [Remote host closed the connection]
cosimone has quit [Client Quit]
berberman has joined #nixos
knerten1 has joined #nixos
berberman has quit [Client Quit]
knerten2 has quit [Ping timeout: 240 seconds]
thc202 has joined #nixos
berberman has joined #nixos
rsoeldner has quit [Ping timeout: 272 seconds]
Chiliparrot has joined #nixos
berberman has quit [Client Quit]
o1lo01ol_ has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
berberman has joined #nixos
dermetfan has joined #nixos
asheshambasta has joined #nixos
<asheshambasta>
Under what circumstances can adding binaryCaches have no effect? I was using Cachix and had cachix.nix in my imports (which I removed since I realised it was overwriting nix.binaryCaches); but even then, after adding nix.binaryCaches and the keys, my system still wants to build everything.
<asheshambasta>
For some reason no additions to nix.binaryCaches seems to have any effect.
astylian_ has joined #nixos
o1lo01ol1o has joined #nixos
orivej has joined #nixos
berberman has quit [Client Quit]
berberman has joined #nixos
<Taneb>
asheshambasta: if you only add something to nix.binaryCaches, only root and other trusted users can use them. Try adding to nix.trustedBinaryCaches instead?
<Taneb>
No, I'm wrong
<asheshambasta>
I see some substituters added to my local nix.conf for some reason
<asheshambasta>
I don't remember adding them :-)
sigmundv__ has joined #nixos
<clever>
asheshambasta: can you pastebin `nixos-option nix.binaryCaches ; nixos-option nix.extraOptions`?
<asheshambasta>
at least `binaryCaches` seems correct
<clever>
asheshambasta: that says that you should have 2 caches in your nix.conf, one of them being there twice
dermetfan has quit [Ping timeout: 260 seconds]
srhm has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<asheshambasta>
I'm not sure I understand.
<edcragg>
Yaniel: if you're around, we talked a month or so ago about broken font rendering for some apps on unstable, and upgrading the version of fontconfig linked against for those apps to fix it. However, i'm not sure how to update fontconfig, the build inputs for the app in question simply pulls in `fontconfig`, so not sure what needs to be done
<asheshambasta>
cache.nixos.org was repeated, which I had mistakenly added to nix.binaryCaches in configuration.nix; which I now have removed. I also see the nixcache.reflex-frp.org in there now, which means I should be able to install obelisk without any local builds; which seems to not be the case.
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
<asheshambasta>
I think I get it now; the caches in ~/.config/nix/nix.conf were being preferred over the ones in nix.binaryCaches.
o1lo01ol1o has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
berberman has quit [Remote host closed the connection]
m0rphism has joined #nixos
jbox is now known as Guest56405
berberman has joined #nixos
domogled has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
dermetfan has joined #nixos
ElNomReal has quit [Remote host closed the connection]
timstott has quit [Ping timeout: 245 seconds]
timstott` has quit [Ping timeout: 265 seconds]
alp has quit [Ping timeout: 272 seconds]
hugolgst has joined #nixos
<hugolgst>
do you guys know why with this configuration: https://hastebin.com/apelejiqez.bash and my disk encrypted, at startup it waits for the device infinitely?
rprije has quit [Ping timeout: 240 seconds]
asheshambasta has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @ceedubs closed pull request #99996 → unison-ucm: add less to buildInputs → https://git.io/JUhRc
alp has quit [Remote host closed the connection]
pr06lefs has joined #nixos
berberman has joined #nixos
berberman has quit [Changing host]
rtjure_ has quit [Ping timeout: 246 seconds]
rtjure has joined #nixos
<Philonous>
sane-airscan seems to install a static configuration file in the store and adding /etc/sane.d/airscan.conf doesn't seem to do anything, how do I change the configuration then?
alaskacanyon[m] has quit [Quit: Idle for 30+ days]
stoile has quit [Remote host closed the connection]
<Philonous>
Never mind, airscan seems to pick up configuration from /etc/sane.d/airscan.conf after all
<Philonous>
For some reason it didn't get picked up by sane before I rebootet the machine
<__red__>
non-random nix question.
<__red__>
I want to install nix on a linux distribution on a production without the nix demons running
lsix has quit [Ping timeout: 244 seconds]
<__red__>
so I guess I can install it as a single-user and then (in thoery) copy their .nix-* stuff from their home directory?
<__red__>
or is there some other way I can achieve this?
lsix has joined #nixos
<__red__>
I guess I just need to get the right paths / environments between the users?
<simpson>
I wonder what you want to have happen when multiple users do things at once.
<simpson>
The names "single-user" and "multi-user" are AIUI relatively descriptive of the number of users that can simultaneously use Nix in that configuration.
alp has joined #nixos
<__red__>
Well, I'm the only user on the system
<__red__>
One issue I have is that I need to use cryptsetup
<__red__>
which has to run as root
<{^_^}>
[nixpkgs] @siraben opened pull request #100085 → miranda: init at 2.066 → https://git.io/JTvWG
<__red__>
but sudo cryptsetup won't work
Sanchayan has joined #nixos
<__red__>
because all the nix stuff drops out of scope when you run sudo
<simpson>
Yeah. What does your production administrator think of all of this? I presume that they *want* you to use their pre-installed suid tools.
<__red__>
except they don't have cryptsetup in any of their repos
<{^_^}>
[nix] @edolstra pushed to master « Remove stray DerivationOutputsAndPaths type »: https://git.io/JTvWu
<__red__>
and I'm going to want to deploy apps this way too
<__red__>
so maybe I'm overthinking it
<__red__>
so with users like: app1, app2 etc
<__red__>
or maybe I just should run multi-user and hope they don't notice? ;-)
dermetfan has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
bbarker has joined #nixos
<simpson>
I'm confused on whether you (plan to/will) have multiple users on the machine. If you're only deploying apps and not users, then you might want to consider containerizing or otherwise isolating their running contexts. (Or go fully the other direction and use NixOS and systemd.)
<simpson>
But I'm also confused on why to put Nix onto an already-deployed production machine. So maybe I just don't understand your goal.
xd1le has quit [Remote host closed the connection]
oldsk00l_ has joined #nixos
oldsk00l has quit [Ping timeout: 258 seconds]
<__red__>
it's a level 9 issue
<__red__>
hmm, multi doesn't seem to work anyways
<__red__>
oddly
<simonpe^^>
I've a project that I built on my build server. Then I have a nixos machine and an ubuntu machine that both build the same project using the build server as a substituter. They all show the same `nix-instantiate` derivation hash. On the nixos machine I keep getting "nar/yzpn99zj5sr6i4y1zgwkzd8d0yjnkn0v.nar' does not exist in binary cache 'http://10.4.6.95:8099". What's going on?
<__red__>
building '/nix/store/b64sdzfcc4wd2p656i9jskxdmhjkq0cv-user-environment.drv'...
<__red__>
at this point of the build: sudo HOME=/root /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7/bin/nix-env -i /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7
<__red__>
okay - it is what it is
<__red__>
I'll just install cryptsetup and crew from sources by hand
jt35[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<{^_^}>
[nixpkgs] @veprbl merged pull request #84997 → apfs-fuse: Let mount find apfs-fuse → https://git.io/JvhXe
<{^_^}>
[nixpkgs] @veprbl pushed commit from @jcpetruzza to master « apfs-fuse: Let mount find apfs-fuse (#84997) »: https://git.io/JTvlF
<{^_^}>
[nix] @edolstra pushed to master « writeFile(): Add error context to writeFull() failure »: https://git.io/JTv8r
<__red__>
man, if I could just work out how to run cryptsetup from sudo that would be good enough
<{^_^}>
[nixpkgs] @Jiehong opened pull request #100094 → doc: add AMD rocm and vulkan to 20.09 release notes (#95765) → https://git.io/JTviO
vidbina has quit [Ping timeout: 272 seconds]
<siraben>
How do I wrap a Python application using qt5.wrapQtAppsHook? I have a package; http://ix.io/2Aci and at runtime I have the error, qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
<worldofpeace>
siraben: ooh, um using a nixpkgs from 2018 is probably highly dangerous considering any kind of security issues with those versions of qt and python
<siraben>
worldofpeace: ah oops, it's misleading! it's from 2020-09-22 I tihnk
<siraben>
that's the last time pyqt5 works on darwin
dermetfan has quit [Ping timeout: 240 seconds]
fendor_ is now known as fendor
<worldofpeace>
siraben: ah right, and to answer you question. I think you'd have to use two files, so `default.nix` and `package.nix`. `package.nix` is the package expression with all the arguments at the top, and `default.nix` calls the package. so `let package = libsForQt5.callPackage; in package`
<siraben>
Ok, I'll try that. Thanks!
<worldofpeace>
glad I could help. hope it all goes smoothly siraben
<siraben>
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa"
<Guest10>
I just booted fresh nixos plasma live ISO and have no running nix-daemon. When I trying to start it it says: Failed to start nix-daemon.service: Unit nix-store.mount is masked.
MichaelRaskin has joined #nixos
<worldofpeace>
siraben: U missed a part of my suggestion
<worldofpeace>
and above that in the manual about how mkDerivationWith works
<evanjs>
So X-based services on RDP -- is this something that's feasible (and easily configurable)? I am using xrdp and various services, such as picom, only start on local sessions
evade has quit [Client Quit]
<evanjs>
I've gone over the docs on arch but like, idk, it's a _lot_ of information and often times in several, slightly different forms 🤪
<evanjs>
Also wasn't sure if there was something idiomatic for nix/pkgs/os
<{^_^}>
#57717 (by Zhen-hao, 1 year ago, open): xrdp server missing KDE option
<siraben>
worldofpeace: Ok I changed the line in package.nix to `mkDerivationWith python3.pkgs.buildPythonApplication rec {` , but it still fails to find the module
<evanjs>
sooo I tried opening a heaptrack file (generated with AppImage heaptrack) on NixOS, and it looks like we don't have zstd support
<evanjs>
so it does seem adding zstd to buildInputs was enough, but
rtjure has quit [Ping timeout: 264 seconds]
<evanjs>
I see a lot of references to boost-zstd in the CMakeFiles and wasn't sure if there was something better I could do
<evanjs>
Bah, should probably just open a PR to nixpkgs with the supposed fix, huh? :P
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #100095 → treewide: don't use spidermonkey attr → https://git.io/JTvS7
Guest10 has left #nixos [#nixos]
Guest10 has joined #nixos
<siraben>
worldofpeace: Oh it works, thanks!
<siraben>
What was the point about not double wrapping?
<worldofpeace>
siraben: so wrapQtAppsHook will make one wrapper... and then wrapPython will wrap that wrapper. it's scary
<worldofpeace>
and wrapPython uses makeWrapperArgs and you can basically give that wrapper script the argument the qt one collected without creating a wrapper automatically
<{^_^}>
[nixpkgs] @doronbehar pushed to master « treewide: Use spidermonkey_68 explicitly »: https://git.io/JTv9l
<ma27[m]>
worldofpeace: I'm very sorry, but I won't make it today. If there's something I should comment on, just CC me in the ticket or in IRC, I'll take a look later tonight or tomorrow :)
<worldofpeace>
ma27: gotcha. I believe there was some PRs you were trying to get in. maybe pm me about those if you're just waiting for some sort of RM review/approve
Ariakenom has quit [Ping timeout: 258 seconds]
cantaloupe has joined #nixos
MmeQuignon has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: cosimone]
cosimone has joined #nixos
<cantaloupe>
trying to run nixos-install from USB installer and getting "syntax error, unexpected $end, at /dev/dm-1:1:1"
astylian_ has joined #nixos
knerten2 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knerten1 has quit [Ping timeout: 256 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
knerten has joined #nixos
knerten2 has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
zupo has quit [Client Quit]
zupo has joined #nixos
orivej has joined #nixos
alp_ has quit [Remote host closed the connection]
alp_ has joined #nixos
zupo has quit [Ping timeout: 256 seconds]
sangoma has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to fix evaluation »: https://git.io/JTvbf
rtjure has quit [Ping timeout: 256 seconds]
<__red__>
worldofpeace: is there an Office Hours?
thc202 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « git-annex: update to new version 8.20201007 »: https://git.io/JTvb4
<worldofpeace>
__red__: nope, just nixos planning stuff. not very interesting stuff too
<{^_^}>
[nixpkgs] @veprbl opened pull request #100099 → pyhton3Packages.ibis-framework: fix tests for pandas 1.1 → https://git.io/JTvbh
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « couchdb: revert changes from 0da82de388a5214522262a3885080bad1c02fd1b »: https://git.io/JTvN2
MmeQuignon has joined #nixos
astk has joined #nixos
<astk>
how can i use nixops to set up nix on a clean aws instance?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « couchdb: revert changes from 0da82de388a5214522262a3885080bad1c02fd1b »: https://git.io/JTvN6
<cantaloupe>
@astk you might want to try #nixops
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « couchdb: revert changes from 0da82de388a5214522262a3885080bad1c02fd1b »: https://git.io/JTvND
<astk>
i understand this is what i need to be able to do in order to use nix-copy-closure to place the ./result directory on the remote box
<astk>
cantaloupe: oh, is that different from nixos?
<astk>
is that not the way to proceed?
<astk>
should i just download nix manually on the aws?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTvN7
<cantaloupe>
@astk, I'm here to try to get some help myself, but since you're asking about nixops I think you could try #nixops
<cantaloupe>
I'm just stuck on installing nixos on a desktop PC
<astk>
ok!
<astk>
oh, i can help with that
<astk>
where are you currently with that?
<astk>
are you on windows?
<cantaloupe>
I'm booted from USB with nixos minimal installer
<cantaloupe>
"<cantaloupe> trying to run nixos-install from USB installer and getting "syntax error, unexpected $end, at /dev/dm-1:1:1""
<astk>
hmm, thats not how i did it. i just used WSL from windows, which works ok
<astk>
i never used nixos so im not sure i can help
grobi has quit [Quit: WeeChat 2.8]
<cantaloupe>
I've set up and mounted LUKS devices for my main btrfs filesystem and swap
<cantaloupe>
okay, thanks anyway
<astk>
wow - i never heard of any of those things...
grobi has joined #nixos
<astk>
is the WSL option not ok for some reason?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cantaloupe>
I'm a long-time Linux user - no Windows here
<astk>
(i asked about using nixops to deploy nix to the aws, but there is nobody online by the looks of it)
<astk>
(on #nixops)
<cantaloupe>
could be timezone-dependent
<astk>
yeah, its almost snack time
<jared-w>
What instance are you using on aws? ec2?
<astk>
yep
<cantaloupe>
have you read the docs about nixops? people are going to prefer if you've done a bit of homework
spease has quit [Ping timeout: 260 seconds]
<astk>
there is plenty of documentation - the thing is, i managed to do it before with just a one line command
<astk>
which i cant find among the documentation, so i thought id ask
<astk>
apparently nixops is really complicated
<astk>
i did; nix-env -i nixops
noudle has joined #nixos
<astk>
and it seems to have set up on my WSL
<astk>
i have added to private key to ssh-agent, so it should be able to log in without the -i option that ssh uses
<jared-w>
nixops can get tricky with ec2 if you're using a default AMI. You'll usually need to infect the OS somehow and the setup isn't particularly worth it since making AMIs isn't terribly difficult.
gxt has quit [Remote host closed the connection]
<astk>
what would you suggest?
<astk>
what do i need to do in order to be able to use nix-copy-closure to put the ./result of a nix-build onto the aws
<astk>
?
gxt has joined #nixos
<astk>
its a totally clean instance
berberman_ has joined #nixos
zupo has joined #nixos
<jared-w>
Well, nixops has a plugin that helps it support ec2 natively, so you can use it to *create* the instance and avoid having to figure out how to install nix on the instance
berberman has quit [Ping timeout: 240 seconds]
<bk1603[m]>
In the derivation for gnu hello, I see something like `"/nix/store/2xwl0cp7vz8x6wfyi09f9dcpdaj033vr-coreutils-8.31.drv": [ "out"]` I get that the inputDrvs contains the derivations for the build dependencies, but what does the "out" stand for? Is it somehow related to the "out" attribute in "outputs" for the derivation?
<jared-w>
Sure, you can do that. Then you just need to figure out how to get the instance accessible over ssh and then you can use the copy closure just fine
<jared-w>
astk: it can create/manage/etc several instances at once. Yes. Think of it as something similar to ansible + terraform
orivej has quit [Ping timeout: 240 seconds]
<jared-w>
bk1603[m]: it's exactly the out attribute in outputs. If you had a derivatation with multiple outputs (like zlib) you'd see more than one item in the array
<astk>
well, im just using the free tier - so i can only run one instance!
astylian_ has quit [Read error: Connection reset by peer]
<jared-w>
Sounds like installing nix manually will do you fine unless you want to experiment with infrastructure-as-code
<astk>
hmm, i just tried
mir100 has joined #nixos
<astk>
it says;
<astk>
bash: nix-store: command not found
<astk>
on running nix-copy-closure
<astk>
even though if i type nix-store on both the aws and the wsl, they both return "error: no operation specified" as they should
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jared-w>
Not sure, honestly. WSL is not something I'm terribly familiar with
astylian_ has joined #nixos
<astk>
pretty much its just ubuntu. im just using wsl and aws to refer to the local and remote linuxes
<bk1603[m]>
jared-w: so the build dependencies of a derivation are also placed in the `out` path of the derivation?
<bk1603[m]>
But I tried listing out the contents of where the derivation was built and I didn't see them there. I am sure I am still getting something wrong.
<jared-w>
bk1603[m]: so the `"/nix/store/2xwl0cp7vz8x6wfyi09f9dcpdaj033vr-coreutils-8.31.drv": [ "out"]` bit you're seeing is inside the inputDrvs object right? The array is just specifying which outputs of the derivations are used for the inputs.
<astk>
hmm, it says; error: cannot connect to 'ubuntu@3.138.85.224'
<astk>
probably i shouldnt have posted the ip...
<jared-w>
meh it's fine. You probably haven't actually enabled inbound access to the ec2 instance yet
<{^_^}>
nix#1078 (by mboes, 4 years ago, open): nix-copy-closure: support non-NixOS machines
<jared-w>
Looks like that's the problem :)
andreoss has joined #nixos
sputny has quit [Quit: sputny]
<astk>
thats a very confusing thread
jani1234 has quit [Ping timeout: 246 seconds]
<andreoss>
I'm defining a systemd service? How can I set to have the excactly the same path as other trusted users have? https://paste.centos.org/view/cee6ae79 It seems that `path` property can only contain list of packages.
<bk1603[m]>
jared-w: Oh I see, that clears things out a bit. But then I don't understand how does `nix` get the runtime dependencies? The book says that the out paths from the build dependencies derivation that are found in the NAR are runtime dependencies. [Here](https://nixos.org/guides/nix-pills/automatic-runtime-dependencies.html) is the link to where I'm reading right now.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-ghcide: update overrides for the new version of lsp-test »: https://git.io/JTvpo
CyberManifest has quit [Quit: Leaving...]
<bk1603[m]>
From what I understand, NAR is just an archive, which is different from tar by being deterministic. So that should simply contain the built derivation in it right?
<bk1603[m]>
(I haven't read the thesis paper linked in the book, in the hopes that it won't be crucial to the understanding of nix, and I am hoping I am missing something extremely simple.)
<{^_^}>
[nixos-artwork] @samueldr opened pull request #58 → logo: Add the white variant for use on dark backgrounds → https://git.io/JTvpb
<astk>
does that mean i have to have nixops as the OS on the AWS instead of ubuntu?
<astk>
im sure i had it working before though...
CyberManifest has joined #nixos
<astk>
wait, whats nix-deploy? is that what i should be using instead?
astylian_ has quit [Ping timeout: 260 seconds]
cole-h has quit [Quit: Goodbye]
<{^_^}>
[nixpkgs] @peti pushed 17 commits to haskell-updates: https://git.io/JTvhb
<cantaloupe>
anybody able to help with "error: syntax error: unexpected $end, at /dev/dm-1:1:1" trying to install to btrfs subvolume over LUKS
<cantaloupe>
it looks like nixos-install is trying to read the /dev/dm-1 device as configuration for some reason
CyberManifest has quit [Quit: Leaving...]
<{^_^}>
[nixpkgs] @peti pushed 8 commits to haskell-updates: https://git.io/JTvjY
<astk>
something to do with non interactive sessions and problems with the path
leungbk has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « Merge pull request #100067 from NixOS/haskell-updates »: https://git.io/JTvjX
ManiacOfMadness has quit [Ping timeout: 260 seconds]
pbogdan has joined #nixos
astylian_ has joined #nixos
cjpbirkbeck has joined #nixos
<leungbk>
What is the most convenient way to test a change to a community overlay? I don't know the Nix language well, so the only way I'm aware of is to go to configuration.nix and change nixpkgs.overlays.
<astk>
or, as it says "the whole interactive / non-interactive is a bit of a pain for non-NixOS"
<astk>
is there any way to set it up to bypass this complication?
zupo has quit [Ping timeout: 260 seconds]
grobi has joined #nixos
<astk>
the only other way seems to be to use nix-copy-closure --from, to gather things from the local machine, instead of pushing them to the remote machine
<clever>
clever@c2d ~ $ cat .bashrc
<clever>
if [ -e /home/clever/.nix-profile/etc/profile.d/nix.sh ]; then . /home/clever/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
<clever>
astk: the installer tends to add it to the "wrong" file, and its only available for interactive shells
<clever>
astk: you can test it with `ssh user@host nix --version`
rprije has joined #nixos
<astk>
bash: nix: command not found
leo60228 has quit [Ping timeout: 260 seconds]
<clever>
then your .bashrc needs more work
<astk>
`ssh user@host bash -lc nix --version`
<astk>
that works
<astk>
but i cant add the `bash -lc` option to nix-copy-closure
<clever>
try editing the .bashrc on the remote machine, to set $PATH correctly
zupo has joined #nixos
<nbathum>
trying to package a python library, and perhaps I should just use poetry2nix as that is what the project uses. but I have an expression working for the source distribution. but I need to patch it to preserve some data (images)
Fare has joined #nixos
<astk>
i can edit that using `vi .bashrc`
<astk>
what do i need to add to it
<astk>
i cant see mention of $PATH
<nbathum>
is it 'normal' to do this dynamically (like in bash in a hook), or should I just create a fixed patch for it?
<{^_^}>
[nixpkgs] @jtojnar opened pull request #100103 → nixos/doc: Mention fontconfig changes in 20.09 RN → https://git.io/JTff3
<clever>
astk: you need the nix.sh line i pasted above
<{^_^}>
[nixpkgs] @veprbl pushed to master « dmtx-utils: enable on darwin »: https://git.io/JTffZ
<astk>
so i should paste the entire line;
<astk>
if [ -e /home/clever/.nix-profile/etc/profile.d/nix.sh ]; then . /home/clever/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
<astk>
into .bashrc ?
<clever>
astk: yeah, near the top
<astk>
oh, swapping the mentions of `clever`
j3k has quit [Quit: Leaving]
<clever>
yeah
<astk>
nope, still does not work
<cantaloupe>
okay, so for posterity and googlerity, I had swapDevices = [ "/dev/mapper/crypt_swap" ]. It needed to be swapDevices = [ { device = "/dev/mapper/crypt_swap"; } ]
<Unode>
it's the first time I'm trying to package this kind of app
zakame has joined #nixos
<worldofpeace>
Unode: the issue is `org.rnd2.cpupower_gui.helper` is a dbus service and it's not running
<worldofpeace>
to make that work it has to be in systemPackages so the dbus module catches it
<worldofpeace>
(I'm guessing this service comes from the package you've created)
<Unode>
ah! yes, I belive so.
<Unode>
giving it a try
<Unode>
out of curiosity, is there any way to have this working without going via systemPackages?
<worldofpeace>
Unode: look for the dbus service in the output. it will likely try to start a daemon of sorts. I believe if you run that manually in the terminal it will suffice
<worldofpeace>
that being the executable referenced in the service file
<Unode>
Since this package needs some super-user access I guess the dbus service is what allows running it as normal user while the root stuff runs via dbus
<Unode>
... my assumption at the moment
v0|d has quit [Ping timeout: 240 seconds]
sangoma has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @TredwellGit opened pull request #100110 → chromium: speed up build and enable system ffmpeg, libjpeg, and zlib → https://git.io/JTfqo
lunik1 has quit [Quit: :x]
<worldofpeace>
Unode: from looking in the repo I also see a systemd service. looks hard to all run manually :D
<pinpox>
Unode: the confusing thing is i don't know whether it's a home-manager problem or a vim configuration error, but it was working before with vim-plug
jabster28_ has joined #nixos
jabster28 has quit [Ping timeout: 260 seconds]
andreoss` has joined #nixos
<{^_^}>
[nixpkgs] @GTrunSec opened pull request #100115 → apache-kafka: replace ParNew to G1 YoungGeneration → https://git.io/JTfsT
<worldofpeace>
pinpox: I believe there is a home-manager freenode channel
<pinpox>
I think I got it, or at least worked around it
andreoss has quit [Ping timeout: 246 seconds]
<pinpox>
packadd! vim-which-key seems to work to force loading the plugins at the correct time
Fare has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
ManiacOfMadness has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
<Unode>
worldofpeace: thanks for the pointers. You were right about system.packages. I now managed to get it to see the service. It gets launched when the program starts. It currently fails to launch because it uses a script in package/lib/... that imports python modules and these files are not (yet) wrapped. Trying to figure out how to do those.
<Unode>
wrapPythonProgramsIn $out/lib "$out $propagatedBuildInputs" seems to get that part sorted
<Unode>
it now launches, success! but when I try to change the setting it tells me I don't have permissions
<Unode>
So now trying to figure out if the dbus/systemd service needs special access.
jani1234 has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
<worldofpeace>
I see a `/var/lib/polkit-1/localauthority/10-vendor.d/org.rnd2.cpupower-gui.pkla` which "allow sudo group to apply settings without authenticating". I think in nixos that would translate to the wheel group?