<ldlework>
if I want to use nix-shell for some project which has some bash scripts with the typical bash shebang, how can I utilize those scripts?
<ldlework>
do I have to really create a derivation in which those scripts get rewritten? what if the tooling i'm using is looking for the scripts where they are? do I have to overwrite them?
<ldlework>
Do I have to make the derivation modify all the tooling so that everything works?
jgt has quit [Ping timeout: 252 seconds]
jluttine has quit [Ping timeout: 245 seconds]
<ldlework>
The paket.net package manager wants to fetch dependencies from git and run bash scripts in them and I can't reasonably replace those scripts ahead of time
Okinan has joined #nixos
nefix has quit [Ping timeout: 260 seconds]
qubasa_ has joined #nixos
qubasa has quit [Ping timeout: 244 seconds]
jasongrossman has quit [Ping timeout: 245 seconds]
<infinisil>
ldlework: You can just make them use /usr/bin/env bash
<infinisil>
This will work no problem in nix-shell's
<ldlework>
huh ok
<infinisil>
Or in non-nix-shells too
<ldlework>
how does that work?
NightTrain has joined #nixos
<infinisil>
/usr/bin/env is a program that looks for a binary with the given name in PATH
<infinisil>
And calls it
<ldlework>
infinisil: I had no idea that existed on NixOS
<infinisil>
It's the only program in /usr/bin :)
<ldlework>
yeah lol :D
<infinisil>
wildtrees: For getting dev outputs you can use pkgs.lib.getDev which is just a small convenience function for getting the correct output from multiple ones
c0ffee152 has quit [Ping timeout: 245 seconds]
<infinisil>
wildtrees: If you put packages in buildInputs/nativeBuildInputs, the dev output gets chosen automatically as well
NightTrain has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjXkA
day|flip has quit [Remote host closed the connection]
Okinan has joined #nixos
day|flip has joined #nixos
<levdub>
gchristensen: thanks, I was using -v but adding -vvvv made ssh more verbose too. However that didn't help me find my issue. Any chance you could take a look at my logs and see if anything stands out? https://gist.github.com/ldub/020e52be143f3473bdd58c09a55b01a7
jgt has joined #nixos
<levdub>
Oh wait. Maybe I do see it... I've configured the wrong key and `ssh builder-node` also tries any keys loaded in my ssh-agent.
<levdub>
yep thats it, adding IdentitiesOnly fails the ssh. I can fix thisi. thanks for the pointers
<{^_^}>
[nixpkgs] @teto pushed commit from @ambrop72 to master « nvidia-settings: Install desktop file and icon. »: https://git.io/fjXIZ
jgt has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
c0ffee152 has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
NightTrain has quit [Ping timeout: 245 seconds]
selfsymmetric-mu has joined #nixos
stepcut_ has quit [Remote host closed the connection]
gagbo has quit [Ping timeout: 244 seconds]
gagbo has joined #nixos
dansho has joined #nixos
lejonet has quit [Ping timeout: 245 seconds]
hmpffff_ has joined #nixos
hmpffff has quit [Ping timeout: 264 seconds]
NightTrain has joined #nixos
ThatDocsLady has quit [Ping timeout: 276 seconds]
kvda has joined #nixos
fusion809 has joined #nixos
oida has quit [Remote host closed the connection]
c0ffee152 has quit [Ping timeout: 268 seconds]
kvda has quit [Client Quit]
AluisioASG has joined #nixos
<{^_^}>
[nixpkgs] @hamishmack opened pull request #64691 → types: Fix path.check for cleanSourceWith output → https://git.io/fjXIK
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jackdk>
I'm hacking on a multi-project haskell repo, and this shell.nix doesn't show any of the packages I asked for in `ghc-pkg list`. I'm probably missing something simple, but I can't find it. https://www.irccloud.com/pastebin/J2OTTTLP/shell.nix
justanotheruser has quit [Ping timeout: 272 seconds]
v88m has quit [Ping timeout: 272 seconds]
<shandogs>
Does anyone know how to remap the caps lock key to act as another control key? So far I have tried this "xserver.xkbOptions = "caps:ctrl_modifier";' which seems to just disable the caps key.
jgt has joined #nixos
justanotheruser has joined #nixos
ilikeheaps has joined #nixos
sushi_ has quit [Ping timeout: 268 seconds]
jgt has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 258 seconds]
gagbo has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gagbo has joined #nixos
init_6 has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @costrouc opened pull request #64692 → pythonPackages.starfish: init at 0.1.3 → https://git.io/fjXIF
<Ashy>
i've since cut back to just caps2esc as my only remapping
<Ashy>
oh also dvorak layout i guess
<jasongrossman>
Ashy: Ditto.
<jasongrossman>
(Plus a lot of remapping in Emacs and a bit in stumpwm.)
<Ashy>
nice
<Ashy>
i'm a vim diehard so went down the space as leader key route
<Ashy>
and ctrl-space as tmux leader
<jasongrossman>
I use a leader a LOT in emacs. Hooray for leaders.
<Ashy>
spacemacs?
<day|flip>
spacemacs is the only way for me to used emacs
<ashkitten>
what's the leader key? am i missing out on something everyone else knows about?
<shandogs>
Hmmm caps2esc is switching my esc and caps keys but isn't working as a ctrl modifier.
<shandogs>
Is that something I need to configure? Or is my system doing something weird?
lambda-11235 has joined #nixos
<Ashy>
shandogs: hmm that does sound weird, i hate to say it but maybe try a reboot?
<Ashy>
ashkitten: vim leader key
gspia has quit [Quit: Leaving]
<jasongrossman>
ashkitten: A leader key is a general way of using keyboard commands. It's just a way of saying that you have commands that use a sequence of keys - the first key in the sequence is a leader key. It's common in vi and it can be done easily in Emacs.
<ashkitten>
oh
gspia has joined #nixos
<shandogs>
I did yeah. Do i need xcape installed as well? Sorry I'm new to linux desktop, just switching over from mac.
<ashkitten>
wait but aren't all of vim's commands sequential
<ashkitten>
like
<Ashy>
no caps2esc doesnt depend on xcape at all, really strange that isnt working for you
<ashkitten>
what does it mean to assign space to the leader key
NightTrain has joined #nixos
<jasongrossman>
ashkitten: Not literally all, but generally yes vim's commands are sequential.
<Ashy>
ashkitten: the space key becomes the leader key in normal mode
<ashkitten>
does that mean you'd have to press `<space> g g` to return to the beginning of the file, for instance?
<Ashy>
`:nnoremap <leader>d dd` means in normal mode i could type <space>d to delete the current line
<Ashy>
no it doesnt change built in key mappings
<ashkitten>
i'm not sure i understand tt tttthhththththththheeheeeeeeeeee
<ashkitten>
wow ok
<ashkitten>
thanks turbo key
<Ashy>
it's just a namespace for users to make their own mappings without having to clobber the built in mappings
<ashkitten>
oh, ok
<shandogs>
I'm running in virtualbox so may be something to do with that.
<ashkitten>
i should really get rid of this turbo key lmao
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<Ashy>
shandogs: ah yes highly likely your host is eating the capslock key events then
<ashkitten>
probably should get rid of my any key binding too
c0ffee152 has quit [Ping timeout: 258 seconds]
<Ashy>
shandogs: i just installed nixos on my macbook air 11" 2012 last night so if your mac is from that era you should be ok to run nixos native
sigmundv has quit [Ping timeout: 245 seconds]
c0ffee152 has joined #nixos
<shandogs>
Yeah mine is from 2014. I'm not quite ready to leave the comfort of the VM as I want to experiment with different filesystems and encryption. I'll just rebind caps in my host for now and come back to this issue.
<Ashy>
ah yeap nice
<shandogs>
Ashy: Thanks for your help!
<Ashy>
i went with btrfs on encrypted luks
<Ashy>
my thinkpad and desktop are both on encrypted zfs which i want to migrate away from
NightTrain has quit [Ping timeout: 272 seconds]
<shandogs>
What are the main advantages you find from btrfs?
<day|flip>
snapshots for one. and how easies it is to add new hdd/ssd to a btrfs partition
<ashkitten>
Ashy: any particular reason why you want to use btrfs over zfs?
jgt has joined #nixos
<Ashy>
btrfs is mainlined in the kernel
<Ashy>
zfs never will be
<ashkitten>
i suppose
<Ashy>
the recent kernel incompatabilities with zfs-on-linux hit me because i run linuxPackages_latest
<ashkitten>
ah, sure
ddellacosta has quit [Ping timeout: 268 seconds]
<Ashy>
the more eyeballs on code the better and btrfs being mainlined gives it a good headstart there i think
jgt has quit [Ping timeout: 252 seconds]
emptyflask has quit [Ping timeout: 250 seconds]
gxt has quit [Ping timeout: 260 seconds]
gxt has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ashkitten>
i suppose
<Ashy>
yeah it's all relatively unimportant for my machines, they're all just single disk workstations
myskran has joined #nixos
myskran has quit [Ping timeout: 246 seconds]
init_6 has joined #nixos
day|flip has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @offlinehacker merged pull request #64627 → Fix virt-manager on non-gnome systems → https://git.io/fjPoL
<{^_^}>
[nixpkgs] @offlinehacker pushed 7 commits to master: https://git.io/fjXLG
Zer0xp has quit [Ping timeout: 260 seconds]
<jackdk>
I asked a few hours back bit didn't get anything, but hopefully there's a different set of people online: I'm hacking on a multi-project haskell repo (these), and this shell.nix doesn't show any of the packages I asked for in `ghc-pkg list`. I'm probably missing something simple, but I can't find it. https://www.irccloud.com/pastebin/J2OTTTLP/shell.nix
init_6 has quit [Read error: Connection reset by peer]
Drakonis has quit [Quit: WeeChat 2.4]
rauno has quit [Ping timeout: 252 seconds]
init_6 has joined #nixos
___laika has quit [Ping timeout: 272 seconds]
jgt has joined #nixos
zacts has quit [Quit: WeeChat 2.3]
jgt has quit [Ping timeout: 264 seconds]
rauno has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
sveitser2 has quit [Ping timeout: 245 seconds]
sveitser2 has joined #nixos
<DigitalKiwi>
jackdk: i have something i used for snap that might help idk i had bad luck with overrides
<DigitalKiwi>
i had multiple attempts so let me find which one it was ;_;
<jackdk>
DigitalKiwi: Cool, I look forward to joining your cargo cult
___laika has joined #nixos
<DigitalKiwi>
...maybe
<DigitalKiwi>
you know what i might have only gotten it to work by fixing it in a nixpkgs tree ;_;
c0ffee152 has joined #nixos
lambda-11235 has quit [Ping timeout: 246 seconds]
NightTrain has quit [Ping timeout: 245 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
gagbo has quit [Ping timeout: 248 seconds]
pie_ has joined #nixos
myskran has joined #nixos
pie_ has quit [Remote host closed the connection]
gagbo has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
<DigitalKiwi>
yeah nvrm cancel that sorry :(
pie_ has joined #nixos
myskran has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
jackdk: have you tried without overrides
lambda-11235 has joined #nixos
<jackdk>
DigitalKiwi: error: value is a function while a set was expected
<DigitalKiwi>
oh
<DigitalKiwi>
jackdk: is it on github
<jackdk>
DigitalKiwi: no. this is me hacking together a dev env to driveby a library i want to PR
<jackdk>
what I have is passable, so DWAI.
mjrosenb has quit [Ping timeout: 272 seconds]
jgt has joined #nixos
mdawley has quit [Ping timeout: 260 seconds]
jgt has quit [Ping timeout: 264 seconds]
cjpb has joined #nixos
cjpbirkbeck has quit [Ping timeout: 245 seconds]
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
init_6 has quit [Read error: Connection reset by peer]
mjrosenb has joined #nixos
wfranzini has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 23 commits to staging-19.03: https://git.io/fjXLH
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to staging-19.03: https://git.io/fjXLQ
<{^_^}>
[nixpkgs] @dywedir opened pull request #64695 → hledger-iadd: add a top-level alias → https://git.io/fjXtd
v88m has quit [Ping timeout: 245 seconds]
shomodj has quit [Client Quit]
<pie_>
what nix adds to this is at least some amount of purity at the on-disk and build environment level which gets rid of ?most? impurities you would get from how these describe puppet - and so you dont get the "sometimes it works" effect
<ashkitten>
i haven't tried it but these are the kinds of things my girlfriend complains about (to be fair she makes these complaints quite rarely and seems otherwise very content with it)
<pie_>
sounds like youve got an interesting girlfriend
<pie_>
its cool that people are working on peculiar things like this
<pie_>
we can assimilate the good ideas ;P
<ashkitten>
she's great
<ashkitten>
i love her
* pie_
is jelly :PP
<ashkitten>
bedrock seems cool, it's just very opposite my idea of the optimal system
<pie_>
i mean it definitely sounds like i wouldnt want to use it
<pie_>
i do kind of wish we could have stuff from all the random package managers though
<pie_>
"oh this is easier to install on ...?" "guess ill just try that for now..."
<ashkitten>
i live for reproducibility, because from reproducibility comes accountability. no more losing track of what things i've manually configured.
<pie_>
a g i l i t y
<pie_>
ashkitten, definitely
<pie_>
though i guess you could just install All The Distros in chroots now that I think about it?
<ashkitten>
sure
<pie_>
im kind of stuck in the "build packages" phase of dealign with things, havent done much actual system configuration and such yet....
<ashkitten>
you could probably write a nixos module to use deb packages in a chroot env
<symphorien>
but then if you install firefox in the chroot, and need to open a pdf from it, you wouldn't be able to use the pdf reader which you installed with nix (outside of the chroot), would you ?
<ashkitten>
sure, that could be an issue
<ashkitten>
ugh i need to sleep at some point
<ashkitten>
been a rough day and i dont particularly want to experience the sort of dreams i'll probably have
<ashkitten>
what do yall do when you know you'll get awful dreams
<ashkitten>
oh, meant to put that in the other channel...
<{^_^}>
[nixpkgs] @FRidh pushed to staging « Revert "buildPythonPackage: add support for setupPyDistFlags" »: https://git.io/fjXmw
<Shouou>
What's the de-facto way of getting NixOS working on a RPI3+ nowadays?
<laerling>
Hello. I'm trying to install a fresh NixOS, but even though I'm root (because I'm installing from a nixos live system) the `nixos-install --root /mnt` command keeps failing with the message "error: could not set permissions on '/mnt/nix/var/nix/profiles/per-user' to 1777: Operation not permitted." Is this problem known?
hmpffff has joined #nixos
is_null has quit [Ping timeout: 246 seconds]
<Shouou>
What's your configuration.nix ?
GamesMaxed has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh opened pull request #64701 → buildPythonPackage: add support for setupPyDistFlags (2) → https://git.io/fjXmo
<chris__>
Is there somewhere the nixpkgs repo is checked out on a Nixos machine? As the repository size seems to be quite large - rather not have multiple copies around.
<Miyu-chan>
Boot time is like at least 30 mins, x86 on AARCH64
<MmeQuignon>
And i tried with cudnn instead of cudnn_cudatoolkit_10_0
<MmeQuignon>
without success
<MmeQuignon>
The error seems to be curl related, and actually the download speed is quiet slow (~200KBps)
<MmeQuignon>
And the file is kind of big (~2GB)
<__monty__>
chris__: Yes, and no. All the expressions of your channel are on the machine but not in teh form of a repo.
<alexarice[m]>
MmeQuignon: I'll try to build it
<MmeQuignon>
Could the download fail after a certain amount of time ?
<{^_^}>
[nixpkgs] @Shou opened pull request #64704 → spago: init at 0.8.5.0 → https://git.io/fjXYR
<chris__>
__monty__: Interesting, thanks!
<__monty__>
chris__: On my machine it's at ~/.nix-defexpr/channels/nixpkgs.
b has joined #nixos
lunik1 has joined #nixos
<__monty__>
chris__: You can open a specific expression using `nix edit nixpkgs.somePackage`.
jgt has joined #nixos
<__monty__>
It'll open an expression in EDITOR.
<__monty__>
Even though IMHO it should use ${VISUAL:-$EDITOR}.
<kenshinCH>
Hi all. I'm toying with Rust in NixOS using vim, so I ended up trying coc.nvim, which has a plugin for Rust with instruction for NixOS even! But I'm a bit confused by those, as I wrote in this ticket https://github.com/neoclide/coc-rls/issues/32 . If you think my reasoning makes sense, I will prepare a PR for the documentation
<{^_^}>
neoclide/coc-rls#32 (by mredaelli, 1 day ago, open): Nixos documentation
<alexarice[m]>
MmeQuignon: Trying to build it and it has got a different error, likely because I don't have any of the sources, is there a place I can get them
<MmeQuignon>
alexarice[m]: ok then it seems that my unstable connection is the cause.
<alexarice[m]>
MmeQuignon: I'm not sure, mine didn't get the part yours got to yet
ixxie has quit [Remote host closed the connection]
knupfer has joined #nixos
<MmeQuignon>
What command do you launch ?
kim0 has quit [Quit: Connection closed for inactivity]
jgt has joined #nixos
myskran has joined #nixos
<alexarice[m]>
MmeQuignon: I'm just trying to install python3packages.tensorflowWithCuda now as that seems to be where the issue is
jgt has quit [Ping timeout: 252 seconds]
xantoz has quit [Ping timeout: 246 seconds]
<alexarice[m]>
MmeQuignon: I'll let you know if it succeeds
xantoz has joined #nixos
waleee-cl has joined #nixos
ixxie has joined #nixos
Okinan has joined #nixos
<MmeQuignon>
alexarice[m]: thank you !
<ixxie>
hmm anybody know about the status of wayland in NixOS?
<MmeQuignon>
But actually, given that the only package I have to download at each try is cuda_10.0.130_410.48_linux, I'm not so sure that tensorflowWithCuda is causing the issue
<ixxie>
I am wondering whether gnome is broken for me because my config sets xserver
<symphorien>
anyway you still have x because of xwayland
<ixxie>
at this point I would be happy to get any desktop enviroment build.... my old gnome generations work but every time I try to build anything new, I just get a tiny terminal in the top left corner of the screen
<ixxie>
karetsu: this is true by default, shouldn't be an issue
fendor has joined #nixos
<symphorien>
ixxie: disable the xterm window manager
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @mrVanDalo to master « memo: 0.6 -> 0.8 (#64676) »: https://git.io/fjXsD
<ixxie>
it seems I am having a trouble finding a stable combination of displayManager / desktopManager other than gdm + gnome
<ixxie>
maybe it has to do with the way I configured xserver
cybrian has joined #nixos
<ixxie>
but I think its probably because wayland isn't working well for me
fusion809_ has quit [Remote host closed the connection]
<ixxie>
because now with gdm, if I pick the default GNOME as opposed to GNOME on Xorg, I get the terminal flash with systemd logs and then the gdm returns
hexo is now known as mekdolan
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
<oborot>
I messed up my first time nixos configuration, specificaly I pointed LUKS to the wrong partition
<oborot>
Is there any way I can modify that without having to reinstall?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjXZI
jgt has quit [Ping timeout: 252 seconds]
ilikeheaps has joined #nixos
oborot has joined #nixos
fendor has quit [Ping timeout: 245 seconds]
cybrian has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
wildtrees has joined #nixos
<Thra11>
Can a nix expression tell if it's being built on a different, but compatible, architecture (not cross compiling, but e.g. x86_64 building for i686 or aarch64 building for armv6)?
gagbo has quit [Remote host closed the connection]
gagbo has joined #nixos
nefix has quit [Remote host closed the connection]
<Miyu-chan>
Uh.. holy crap.
selfsymmetric-mu has joined #nixos
<Miyu-chan>
Hm. It looks *much* better on an actual TTY.
<Miyu-chan>
Oh, it's just because I use a light theme.
<aveltras>
does anyone know how to input a pipe character in vultr vps console by chance ? i need it to pipe a curl command for nixos installation on a vps
<chrisaw>
Does anyone know how to install settings schemas for a gnome-based desktop environment? Trying to package up Cinnamon but I'm getting: (process:3814): GLib-GIO-ERROR **: 21:32:34.685: Settings schema 'org.cinnamon.SessionManager' is not installed
gagbo has quit [Ping timeout: 248 seconds]
<Miyu-chan>
Neither images nor screenshots do it justice. ; ;
gagbo has joined #nixos
<Miyu-chan>
TL;DR, I accidentally made a wpa_supplicant/wpa_cli version of wifi-menu.
<arianvp>
Im at Cbase currently and see there is a NixOS evening Tuesday? Who's hosting that? Someone in here?
<arianvp>
I'd love to drop by
gyroninja has quit [Read error: Connection reset by peer]
<__monty__>
I'm thinking of packaging an electron app. Builds are available for linux (deb) and mac (pkg). What's the preferred method? Fetch and install those builds or reproduce the build in a nix expression?
<aveltras>
having a nixos iso mounted on /mnt/nixos from a linux rescue mode (on a hetzner vps), is there a way to bring nixos install commands into environment to run a classic installation ?