<Infinisil>
I have vfat on my local machine, gonna use that
<clever>
vfat should work either way
<clever>
ext4 would be safer against improper shutdowns, but rule out efi
<Infinisil>
Alright, /mnt/etc/nixos/hardware-configuration has the pool, the boot device and the swap, confguration is also correct
<Infinisil>
Now I'll do nixos-install --root /mnt
* Infinisil
crosses his fingers
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #25934: Fix typo in manual about options without defaults (master...nixos-manual-module-option-never-fix) https://git.io/vHJ4H
NixOS_GitHub has left #nixos []
<Infinisil>
Damnit it didn't work
sitwon has quit [(Ping timeout: 240 seconds)]
roconnor has joined #nixos
<clever>
Infinisil: what error does it have on boot?
<Infinisil>
Same as before, something about /boot not being found, wait I'll try to make a screencap (I have to use the stupid online console which clears output like immediately)
<Infinisil>
And I need to use windows for that because the console doesn't work on firefox
<Infinisil>
Or not, I can't even hard reset it, or it just takes forever
<clever>
:(
johnramsden has joined #nixos
hellrazo1 has joined #nixos
<Infinisil>
Okay it just takes forever
<Infinisil>
Oh and also the console sometimes crashes the tab, and I if I miss the first 20 seconds of the bootup sequence I need to restart, ugh, I should really go to bed
nixon has joined #nixos
hellrazor has quit [(Ping timeout: 260 seconds)]
<johnramsden>
Is there a way to compile modules into the kernel. Like what you do with mkinitcpio? There is boot.kernelModules but I I think those are just passed on the commandline at boot.
roconnor has quit [(Quit: Konversation terminated!)]
cpennington has quit [(Ping timeout: 240 seconds)]
<clever>
Infinisil: try symlinking /boot/grub.cfg to point to /boot/grub/grub.cfg ?
<Infinisil>
Hm I can try, shouldn't be necessary though
<clever>
Infinisil: line 1 also implies its looking for an FS with the label DOROOT
<Infinisil>
grubs config should definitely be in /boot/grub/grub.cfg
georges-duperon has quit [(Quit: Leaving)]
<Infinisil>
If you feel like poking around on the DO machine I could get you access to it, just if you're interested, you've helped me a ton already `:)
matthewbauer has joined #nixos
nixon has quit [(Quit: WeeChat 1.7.1)]
betaboon has quit [(Quit: This computer has gone to sleep)]
<clever>
Infinisil: i have been thinking about looking into do again myself
<Infinisil>
Cool
matthewbauer has quit [(Ping timeout: 240 seconds)]
derjohn_mob has quit [(Ping timeout: 255 seconds)]
kiloreux has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Quit: Nighty night)]
derjohn_mob has joined #nixos
filterfish_ has quit [(Ping timeout: 272 seconds)]
s33se_ has joined #nixos
johnramsden has quit [(Quit: Leaving)]
s33se has quit [(Ping timeout: 260 seconds)]
Raimondii has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
lambdamu has joined #nixos
<DavidEGrayson>
I'm running Nix on the Windows Subsystem for Linux right now, it's chugging away at compiling GCC but it seems way slower than VirtualBox.
matthewbauer has joined #nixos
lambdamu_ has quit [(Ping timeout: 246 seconds)]
<simpson>
All the compatibility of the Linux syscalls, with all the speed of the Windows I/O scheduler~
* simpson
couldn't resist
<nh2>
simpson: but Linux syscalls are very long-term ABI compatible, aren't they?
<nh2>
Linux very rarely changes syscalls to not break userspace
<simpson>
nh2: I guess I was thinking of the kernel ABI, not the syscalls, sorry.
<DavidEGrayson>
indeed
svij1 has quit [(Ping timeout: 260 seconds)]
<DavidEGrayson>
simpson's statement still applies, it's just a good thing and a bad thing combined
<dash>
DavidEGrayson: a good description of _most_ software
sellout- has quit [(Quit: Leaving.)]
<DavidEGrayson>
Ouch, I think it took like 10 minutes to build binutils
<dash>
because most software has an old and a new part
matthewbauer has quit [(Ping timeout: 268 seconds)]
<dash>
when you're lucky, the old part is the bad one
derjohn_mob has quit [(Ping timeout: 240 seconds)]
stepho has joined #nixos
acarrico has joined #nixos
<nixy>
How many people here are using NixOS for work or are paid to work with it in some capcity?
<gchristensen>
I do
<simpson>
nixy: Technically, if my side business were profitable, then yes.
<nixy>
Are you using entirely NixOS or only using it for certain roles? I kind of want to use Nix to manage dev environments at work, but I am not sure I could convince other people of the benefits
<simpson>
100% NixOS. I'm the proprietor, I got to choose, and I chose the only technology that I knew would let me even *do* it.
matthewbauer has quit [(Remote host closed the connection)]
<gchristensen>
nixy: how big is the company you're at?
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
derjohn_mob has joined #nixos
filterfish has joined #nixos
<spacekitteh[m]>
peti: can you update hackage-packages?
hexagoxel has quit [(Ping timeout: 260 seconds)]
exarkun has quit [(Read error: Connection reset by peer)]
<nixy>
gchristensen: Its like 100 people
<nixy>
I am also not one of the developers so I don't have much influence over how we do things, but I would like to try lol
zeus_ has quit [(Remote host closed the connection)]
<gchristensen>
nixy: what is your role?
<nixy>
gchristensen: Technical support, so pretty low in the ladder
<gchristensen>
cool
filterfish has quit [(Ping timeout: 268 seconds)]
<nixy>
We have open repositories and everyone can contribute stuff though
hexagoxel has joined #nixos
<gchristensen>
cool
<gchristensen>
are there ways you can use nix to solve your own problems at work?
<nixy>
Kind of. The main problem I see Nix solving is bootstrapping our tools/development environments
<nixy>
A lot of the tools we use don't have any packaged version and rely on iffy ill specified imperative instructions
exarkun has joined #nixos
<dash>
nixy: some folks at my employer created a nixpkgs overlay that packaged work-specific tools
<nixy>
^ That. That is kind of how I want to start
<gchristensen>
sounds good
<gchristensen>
easiest way to start is to solve your own problems first
<dash>
oh, i see it's not done as an overlay proper, but similar idea.
<nixy>
So, one of the things about that is our development environment is a huge interconnected web of all our packages/services
<nixy>
Is an incremental approach best? I feel like having stuff half in Nix half outside would be messy and turn people off
<nh2>
nixy: To contribute to your poll, I too use it for work. For 3 use cases: System dependencies for our Haskell software, CI, and nixops deployments.
<dash>
nixy: i would try to get to a point where there are things you can do entirely from the nix stuff you build
<dash>
even if it isn't usable for all tasks immediately
<nh2>
nixy: in any case, if you want people to get directly in contact with the nix related things (e.g. modify .nix files), you should ensure that you can provide good training. I found it has a nontrivial learning curve, and it really can get into the way when you don't understand what is going on and have nothing to ask.
<dash>
nh2: i used nix for a while before i learned the language, now i'm ruined and don't see why everyone else has a hard time with it
<nixy>
dash: Yeah I think Nix suffers pretty hard from the whole burden of knowledge thing
<simpson>
nixy: I know Nix and Make, and Nix is easier than Make.
<dash>
nixy: yes
<dash>
OTOH the burden of ignorance isn't small either
<nh2>
dash: I agree, now that I'm over the hill, I also find most things very easy going. But since I only started with it 2 months ago I still very well remember my burdens
<nixy>
I kind of want to introduce it as a (almost) zero-knowledge solution to getting certain tools installed and ratchet up from there
<dash>
nh2: yep
<dash>
nixy: you can absolutely do that :)
<simpson>
nixy, nh2: FWIW we have this problem in the Lojban community where the learning curve is sufficiently short and shallow that folks feel a reflex at the 3mo mark to write a tutorial blog post.
<dash>
simpson and I tried to build some tools wrapping nix for some small use cases, we were not entirely successful
<simpson>
Or like, uh, Haskell's Monad problem, where Monad is a fine typeclass but neophytes are still compelled to compare it to burritos/the Web/etc.
<nh2>
I definitely had moments where I had to spend 6 hours to get some very basic stuff done (like, how can I make a mkDerivation that just contains a single file), that afterwards turned out super trivial. That kind of obstacle is not something you want 50 people to have at the same time without somebody available to immediately fast-forward their knowledge.
<nh2>
nixy: My opinion is that when you are the support person, and you can just tell people "run ./company-nix-shell and all your tools will be available in PATH" and if it doesn't work, it's your job to fix it and not the people's, then that's a relatively easy setup
<simpson>
nixy: My opinion is that your folks should know your tools, as a matter of company policy, and you should have docs to match. If folks use Puppet/Chef/etc., then there's already an internal culture of knowledge around those tools, right?
<nixy>
simpson: I like the description 'cultue of knowledge'. It fits well because many things that we collectively know may or may not be documented, but I see you r point here
<nixy>
Also, just saiyin this is great conversation and you guys are awesome <3
<simpson>
nixy: It's an SRE term. The idea is that company culture should actively foster the writing and updating of documentation in order to elevate us above tribal knowledge.
asymmetric1 has joined #nixos
acertainkind has quit [(Read error: Connection reset by peer)]
phinxy has quit [(Read error: Connection reset by peer)]
systemfault has joined #nixos
nh2 has quit [(Quit: Leaving.)]
eacameron has quit [(Remote host closed the connection)]
asymmetric1 has quit [(Ping timeout: 246 seconds)]
MinceR has quit [(Ping timeout: 260 seconds)]
MinceR has joined #nixos
<nixy>
I can't seem to figure out how I should be calling a default.nix that uses fetchgitPrivate
<clever>
nixy: are you loading it with callPackage?
<trikl>
my question comes because i would want to see what happens: currently, the kernel doesn't get booted when the default entry is selected and it does when the latest config is selected, even when they are exactl equal
<clever>
write support for filesystems in grub is a bit limited
<clever>
so it generaly pre-allocates a lot of space in the grubenv file
<clever>
so it can write to it in-place, without having to touch the FS metadata
<trikl>
oh, i see
<clever>
but some filesystems like zfs hash the crap out of the data, and wont like that
<clever>
i dont know what grub does in that situation
<clever>
but i always do ext4 for /boot if zfs is at play
<trikl>
i have ext2 for /boot
<clever>
trikl: i think if you rename unicode.pf2 and background.png, it will stay in plaintext mode
<trikl>
there's also a switch for it in nixos i see
<clever>
that sounds safer
<trikl>
About to try it out! I should have connected to freenode through uni :(
kier has quit [(Quit: No Ping reply in 180 seconds.)]
trikl has quit [(Remote host closed the connection)]
trikl has joined #nixos
<trikl>
No luck :( BTW, I should have mentioned that I use my libreboot's grub to load NixOS' grub's config. What happened is that I got the background from the previous grub config.
<clever>
ah
<trikl>
It has maybe something to do with the position of the menu entries? I'll try adding a dummy first entry and making the second the default
<clever>
if your using a different grub, you may want to run insmod on everything nixos uses, before you source the nixos grub.cfg
<clever>
ive found that the gentoo grub cant load the nixos grub modules
<clever>
but if you pre-load the gentoo versions, it worked fine
marsel has quit [(Ping timeout: 268 seconds)]
kier has joined #nixos
<trikl>
But shouldn't nixos' grub take care of loading the modules it needs?
<clever>
it changes the module search path
<trikl>
ooh
<clever>
and tries to load modules that arent compatible with the grub core
<clever>
another option, is to just chainload the nixos grub from the other grub
<clever>
if you have another hdd for the mbr
<trikl>
That's what I did. The thing is I'd ideally like to sign my /boot files and have them verified by libreboot's grub -- which is residing on chip
<trikl>
I couldn't do that if I chainloaded
<clever>
ah
<trikl>
Time for a breakfast break!
<trikl>
Thanks for the help clever!
cpennington has quit [(Ping timeout: 260 seconds)]
trikl has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vHJwc
<NixOS_GitHub>
nixpkgs/master 029125b Jörg Thalheim: postgresql: add man output...
NixOS_GitHub has left #nixos []
hamishmack has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
hamishmack has quit [(Client Quit)]
trikl has joined #nixos
simukis has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<NixOS_GitHub>
[nixpkgs] bachp opened pull request #25938: emby service: allow changing data directory (master...emby-datadir) https://git.io/vHJKr
NixOS_GitHub has left #nixos []
mudri has joined #nixos
oida_ has joined #nixos
oida has quit [(Ping timeout: 255 seconds)]
proteusguy has quit [(Remote host closed the connection)]
ixxie has joined #nixos
<ixxie>
heya
<ixxie>
I've been trying to figure out this issue with bash interactive
<ixxie>
it doesn't work when I try and run it from a script, but does when I input it directly to the shell, e.g. read -p "Prompt: " -i "default" -e VALUE will show the default when entered directly to the shell but not when executed withing a script
<nixy>
Is the absh you are using to execute the script the same you are using as your shell?
orivej has quit [(Ping timeout: 246 seconds)]
<ixxie>
nixy: the script is headed with the usual #!/usr/bin/env bash
<nixy>
But do you have bashInteractive installed in your path? Try running nix-env -iA nixos.bashInteractive and running it again
<ixxie>
well nixy, LnL said bashInteractive should be installed with it, and indeed it runs in my interactive shell
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHJ6c
<NixOS_GitHub>
nixpkgs/master a3696aa Stefan Lau: networkmanager_fortisslvpn: init at 1.2.4
<ixxie>
anyway, it spits out trace: { rev = "5277d96745afcc04a0873102f4a5f80cfc68fa23"; sha256 = "17h2ijb50q76al72hpggv35bbqiayyzvybmfwyx1cr5xzlpvzcqh"; url = "https://github.com/teozkr/Sbtix"; }
<ixxie>
which is what I found with my nix-repl experiments anyway
<gchristensen>
great
darlan has joined #nixos
<ixxie>
with clearly isAttrs :P
<ixxie>
which*
<gchristensen>
now you should --show-trace b/c it seems the error isn't here _however_ Sbtix's default.nix probably is a function you need to call when you import
<teozkr>
actually
georges-duperon has joined #nixos
<teozkr>
you probably *don't* want to import default.nix, since it doesn't really play nice with overrides
<gchristensen>
speak of the devil himself
<teozkr>
:D
<teozkr>
sorry, for some reason my client didn't trigger the alert before now haha
<gchristensen>
do you highlight on sbtix?
<teozkr>
yeah
<gchristensen>
dude
<ixxie>
oh :P
<ixxie>
well his name is also in the url
<teozkr>
:P
<teozkr>
anyway
<teozkr>
you'd probably want to pkgs.callPackage sbtix-tool.nix instead
<teozkr>
but yeah, default.nix gives a function that takes your nixpkgs
<ixxie>
well, that would be a shame, because my idea (which may be stupid) was to automatically track branchs of git repos with default.nix's in them, updating jsons with the latest hashs, and then fetching
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vHJ7u
<NixOS_GitHub>
nixpkgs/master b447f62 Robin Gloster: bind: 9.10.4-P6 -> 9.10.5
NixOS_GitHub has left #nixos []
<ben>
what's the simplest way to build binaries on nixos aimed at non-nix systems? like, without the loader and all library paths hardwired and not shipping a whole closure or anything, but ideally still based on stuff in nixpkgs.
<ben>
probably a regular build and then some reverse patchelf dance?
<gchristensen>
ixxie: you can still do that though
<ixxie>
I am using sbtix as a test case, I wanna generalize this bit of code to import anything, hence default.nix is quite crucial as an approach
<ixxie>
LnL: well I guess so, because that code is putting sbtix in systemPackages....
<gchristensen>
well then it is lucky that your first test case points out an important part of the way you use your code
<gchristensen>
that sometimes you don't want the default.nix
bennofs has joined #nixos
<ixxie>
I am still having trouble understanding why this is so
<gchristensen>
for NixOps you want to import release.nix not default.nix
<ixxie>
so default.nix is really designed for nix-shell right?
<gchristensen>
hmm shell.nix is definitely
Azo has quit [(Quit: WeeChat 1.7.1)]
<ixxie>
so what is the paradigm usecase for default.nix?
<ixxie>
are there even agreed upon standards for this sort of thing?
<gchristensen>
I think my answer would be "it depends on the project" and then that probably means "not really"
<gchristensen>
gotta run, good luck :)
<ixxie>
thanks for the help gchristensen, have a nice and sunny evening
<teozkr>
my understanding is, default.nix is for nix-build
<teozkr>
and shell.nix is for nix-shell
<ixxie>
what baffles me still is that this import method works when I manually supply the attribute set
<teozkr>
I don't think there is any common standard for the "release product" :/
<teozkr>
hm?
<teozkr>
tbh
<teozkr>
I wish nix-build would start running the derivations through callPackage
<teozkr>
then again, that would probably couple it too tightly to nixpkgs, hmm..
<nixy>
Whats the difference between what nix-build does and callPackage?
takle has quit [(Remote host closed the connection)]
mudri has joined #nixos
<ixxie>
teozkr: correction, it doesn't work, and I now see this method worked in the past but not with your latest revisions
takle has joined #nixos
<teozkr>
nixy: nix-build does the equivalent of importing it and calling it with no arguments if it's a function
<teozkr>
or just importing it if it's a derivation
<teozkr>
ixxie: oh, okay
<teozkr>
it *should* work if you just provide an empty attrs ({}) to your imported default.nix
<teozkr>
if you just want to get it up and running asap
<ixxie>
well the goal is a robust solution in which one could follow a number of repos, so I don't wanna do something fragile like that (I am inferring fragility from your tone here)
<ixxie>
I guess I will look into this release.nix thing, and simply fork whatever repos don't have one and add it
<ixxie>
maybe that could be a good candidate for such a standard
takle has quit [(Ping timeout: 260 seconds)]
<ixxie>
I am hoping to have a convenient way for a dev team's main ops server to track and autodeploy branches of interest in particular repos
<ixxie>
the hope being that everything could be managed via git+NixOps/Disnix
takle has quit [(Read error: Connection reset by peer)]
eacameron has quit [(Ping timeout: 246 seconds)]
ilyaigpetrov has quit [()]
ilyaigpetrov has joined #nixos
rcschm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #25797: chromedriver: Update and make available for linux-i686 and darwin (master...ubiquitous-chromedriver) https://git.io/v95xN
NixOS_GitHub has left #nixos []
betaboon has quit [(Quit: This computer has gone to sleep)]
<ixxie>
does anybody know anything about how this release.nix thingy is supposed to work?
thblt has quit [(Remote host closed the connection)]
anton__ has quit [(Ping timeout: 255 seconds)]
anton__ has joined #nixos
eacameron has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
<nh2>
in a NixOS module, to the things in `imports = []` necessarily have to be paths or can they also be inline expressions?
betaboon has joined #nixos
trikl has quit [(Ping timeout: 260 seconds)]
trikl has joined #nixos
sitwon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vHJbH
<NixOS_GitHub>
nixpkgs/master 34bdf45 ryneeverett: lxpanel: init at 0.9.3...
<pbogdan>
I'm trying to write a nix expression for tcptraceroute, here's what I've got so far https://dpaste.de/TNfE but it's erroring out at linking stage https://dpaste.de/uj9w Any ideas how I could fix it?
<pbogdan>
seems to have no trouble finding the libraries at configure time so I don't understand what could be causing the issue
<Acou_Bass>
eey folks, im trying to package up a python/gtk3 program for using the steam controller... the package builds fine but when i run it it says IOError: [Errno 2] No such file or directory: '/usr/include/linux/input.h' - can anyone assist? :D
cpennington has joined #nixos
stepho has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
takle_ has quit [(Remote host closed the connection)]
<Acou_Bass>
ill push it upstream once ive cleaned it up a bit
cfricke has joined #nixos
<disasm>
Thanks Mic92 for the review! Sadly disasm was not available on github when I joined :(
<teozkr>
nice
<teozkr>
I kinda gave up having it play nice with steam itself :(
<Acou_Bass>
i use it for emulators... and its a pain to add emulators to steam properly so yeah hehe
<teozkr>
ahh
<teozkr>
basically, my use case was to have it act as an xbox controller for kodi
<teozkr>
but to use steam's native support for games
sitwon has quit [(Ping timeout: 240 seconds)]
sitwon has joined #nixos
<trikl>
I'm trying to create a derivation which has two srcs. This srcs aren't zip files, but simply the files I want themselves. What should the buildCmd fir stdenv.mkDerivation be?
<Acou_Bass>
doesnt kodi have a thingy for launching steam from within it?
cpennington has quit [(Remote host closed the connection)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pbogdan>
seems like I fixed my tcptraceroute problem, didn't notice "-static" https://dpaste.de/uj9w#L1
Itkovian has joined #nixos
<teozkr>
Acou_Bass: yeah it does
<teozkr>
but kodi doesn't know what to do with steam controllers
<Acou_Bass>
yeahh
Itkovian has quit [(Client Quit)]
<Acou_Bass>
so you launch kodi with the sc-controller daemon to make it see it as an xbox... but then when you fire steam up, steam shrugs its shoulders
<teozkr>
yup
<Acou_Bass>
weird
<Acou_Bass>
i mean, makes sense... but weird;D
<teozkr>
so I had kodi's steam launcher kill sc-controller as a pre-launch script
<Acou_Bass>
yeah
<teozkr>
(and the reverse, start sc-controller after shutting down)
<teozkr>
but for some reason steam still doesn't like that
koserge has joined #nixos
<Acou_Bass>
i thought steam added a way to change the 'default' controller setup, but not sure if that was just me dreaming
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
<S0rin>
Hey, I am porting some cron task to systemd service on nixos, it is based on a user-script that use user ssh alias and provide advanced backup process, but when I start the service I get the error that executable path is not absolute
<S0rin>
And I started it with systemctl --user start backup-save_prod-syncrm.service
<S0rin>
Do you know a way to make it work ?
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vHUem
<NixOS_GitHub>
nixpkgs/master 874b81b Joachim Fasting: treewide: s,enableParallelBuild(s),enableParallelBuilding,g
NixOS_GitHub has left #nixos []
<ToxicFrog>
S0rin: what does `systemctl --user show backup-save_prod-syncrm.service` say? That will tell you what it thinks the executable path is.
<S0rin>
ToxicFrog: Executable path is not absolute, ignoring: bash /home/s0rin/bin/backup/backup.sh -f ovhprod:/home/s0rin/save_prod -t /raid/backup -m SYNCRM -l 300
bennofs has joined #nixos
<ToxicFrog>
That's not what I asked, but sure
<ToxicFrog>
It doesn't look like the systemd unit it's seeing is the same one you pasted
<ToxicFrog>
Did you daemon-reload after nixos-rebuild?
<S0rin>
ToxicFrog: Sorry, No only nixos-rebuild switch
<ToxicFrog>
try systemctl --user daemon-reload
<ToxicFrog>
And then try again
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ToxicFrog>
Every time you change the unit files you need to daemon-reload (with or without --user depending on whether they were user or system units)
takle has quit [(Remote host closed the connection)]
Itkovian has quit [(Client Quit)]
RayNbow`TU has quit [(Read error: Connection reset by peer)]
RayNbow`TU has joined #nixos
takle has joined #nixos
athan has joined #nixos
georges-duperon has quit [(Ping timeout: 246 seconds)]
jsgrant_ has joined #nixos
<ToxicFrog>
S0rin: this is after a daemon-reload? it looks fine
<S0rin>
Yes but it works now thank you !
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<S0rin>
I was pretty sure that nixos-rebuild restart systemd daemon if new / changed service in the new config
<ToxicFrog>
IIRC, it does it for the system systemd
<ToxicFrog>
But not for user instances
<S0rin>
ToxicFrog: Ah I didn't know that thanks !
takle has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
evangeline has joined #nixos
<evangeline>
hi, my /nix has grown quite a lot after using the system for a while and I've noticed that I have a number of different versions of the same package installed on the system. Is there a way to minimize the disk space by removing the older versions of all packages. The "nix-collect-garbage -d" doesn't seem to be meant for doing this, any ideas how to do what I'm requesting?
Itkovian has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
cfricke has quit [(Ping timeout: 255 seconds)]
<Infinisil>
That's exactly what nix-collect-garbage does
<Infinisil>
It removes everything your current system doesn't need
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
Infinisil has quit [(Ping timeout: 245 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<evangeline>
indefini: is there a way to print all versions of installed package?
peacememories has joined #nixos
iyzsong has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
<teozkr>
evangeline: ls /nix/store/*-package-name-*
<grw>
in wpa_supplicant package, wpa_supplicant.conf is only generated if wireless.networks is defined. but i think it should be if networks OR if userControlled = true
<grw>
at the moment, wireless.enable = true and wireless.userControlled = true does not work without declaring networks
sziszi has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<manveru>
even after enabling steam.java, i get this: "java: symbol lookup error: /nix/store/1y6sbyyxbzfjm3n6g71c6kx4lyyyrfza-gnome-vfs-2.24.4/lib/libgnomevfs-2.so.0: undefined symbol: g_type_class_adjust_private_offset"
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<manveru>
i'll buy the game for anyone who wants to fix it :)
iyzsong has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vHUIW
<trikl>
I have multiple srcs which I want to combine at the unpacking stage of a derivation. These sources are not packed, they are in the state I need them to be. Currently, I copy them into the build dir doing "cp $curSrc hunspell
<trikl>
Sorry :S
<trikl>
"cp $curSrc \${curSrc##*-}"
<trikl>
Is there a way of telling fetchurl to put the downloaded files in a dir so that their names are not messed with?
<kirelagin>
Hi everyone! Does anyone happen to know if it could be possible to somehow use nix-shell for a local development environment without using coreutils from nixpkgs? stdenv.mkDerivation unconditionally adds coreutils and a bunch of other stuff to PATH :(
bennofs has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
hellrazo1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pbogdan opened pull request #25943: tcptraceroute: init at 1.5beta7 (master...tcptraceroute) https://git.io/vHUqz
NixOS_GitHub has left #nixos []
Wizek_ has joined #nixos
engblom has quit [(Read error: Connection reset by peer)]
engblom has joined #nixos
cpennington has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] chris-martin opened pull request #25945: unetbootin: fix bug where nothing renders in the window (master...pr/unetbootin) https://git.io/vHUYX
NixOS_GitHub has left #nixos []
rcschm has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
<AndreasO>
A small note on writing ISO to USB with dd, you need to run "sync" after dd... it seems it doesn't work if you don't.
<AndreasO>
I mean it might be appropriate to add that to the manual.
<AndreasO>
And for some reason unknown USB written with uniboot wouldn't boot.
sellout- has joined #nixos
<srhb>
AndreasO: I think the manual recommends using unetbootin
henrycrutcher has quit [(Quit: Page closed)]
<AndreasO>
Yes, but the laptop wouldn't boot when I used it. dd followed by sync worked.
<srhb>
AndreasO: Oh. That's odd.
<AndreasO>
Yes, used unetbootin with other distros with no problem.
RaphaelLullis[m] has joined #nixos
<AndreasO>
srhb: I got a message "isolinux.iso" not found.
<jbo>
Hi there -- to use `ifuse`, I need my user to have raw usb device access. What groups should I add the account to?
<jbo>
(ignore the message about pairing -- idevicepair can't find the device through usbmuxd)
<clever>
[20:30:03.604][1] preflight_worker_handle_device_add: The stored pair record for device 5bdd7301098fd52c91a76a4c4ea1496134730707 is invalid. Removing.
<clever>
[20:30:03.611][4] preflight_worker_handle_device_add: Device 5bdd7301098fd52c91a76a4c4ea1496134730707 is not paired with this host.
<clever>
i'm guessing you need to approve the desktop in the iphone ui?
<clever>
so the first person to pickup the phone cant just plug in and steal your files, without being able to unlock the phone
eacameron has quit [(Ping timeout: 240 seconds)]
<Infinisil>
jbo: I'm running it in foreground with sudo usbmuxd -f, if you haven't done that (shouldn't make a difference, it's just easier to debug)
cpennington has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<Infinisil>
Again for reference, this is what I see with -vvv, you can clearly see when I plug it in: https://pastebin.com/Vnzcqkmd
takle has joined #nixos
bhipple has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
AndreasO has joined #nixos
<Infinisil>
Do you have the usb_storage kernel module enabled?
<AndreasO>
Tried NixOS on VB, I really like it. Next I'm doing a real install.
<Infinisil>
AndeasO: Nice to hear!
<jbo>
Infinisil: yep
<jbo>
Infinisil: might leave this for now - thanks for the help :)
<Infinisil>
:)
eacameron has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<AndreasO>
Infinisil: one thing I've always thought was missing in Linux works in NixOS, user installed software.
orivej has joined #nixos
<Infinisil>
AndreasO: Yeah it's pretty nice, although I'm pretty much just installing everything system wide anyways
matthewbauer has quit [(Ping timeout: 240 seconds)]
RaphaelLullis[m] has left #nixos ["User left"]
<AndreasO>
Infinisil: yes that's probably true for most. But the separation of OS and user is good. This might make Linux easier for the masses to adopt Linux .
<srhb>
AndreasO: You can even make command-not-found automatically install programs if you use a command that isn't there!
AndreasO has quit [(Quit: Found more important stuff than irc!)]
<srhb>
Aw. :-P
AndreasO has joined #nixos
<AndreasO>
srhb: cool
<AndreasO>
Well, going to bed now. God night from Sweden!
mkoenig has quit [(Remote host closed the connection)]
<srhb>
Night from Denmark then ;-)
AndreasO has quit [(Client Quit)]
acertain has joined #nixos
rcschm has joined #nixos
<Infinisil>
srhb: I don't know what to think of this auto command-not-found install, I feel like that could be a big security hole
tilpner has quit [(Quit: :wq)]
mizu_no_oto has joined #nixos
Guest88530 has quit [(Ping timeout: 240 seconds)]
rcschm has quit [(Ping timeout: 246 seconds)]
xadi has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<Infinisil>
I still need some way of getting music on my iPhone, always switching over to OSX, regenerating the iTunes library from the beets library and then syncing wouldn't be optimal
<Infinisil>
I thought about using the windows iTunes version through wine, but I don't really get wine on nixos, it didn't even build for me (had to build from source for some reason)
moet has joined #nixos
jsgrant_ has quit [(Read error: Connection reset by peer)]
kiloreux has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
takle has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
Kingsquee has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #25950: mysql service: Make initialDatabases.schema attribute optional (master...mysql-optional-schema) https://git.io/vHU4I
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 255 seconds)]
proteusguy has quit [(Read error: Connection reset by peer)]
<raignarok>
does anybody happen to know why the mysql service is made so that stuff like initialDatabases and some others are only run at the first ever launch of mysql? would be nice to be able to use it for changes that occur during operation of a server, not only on mysql server install.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ericsagnes opened pull request #25951: fcitx service: add QT_PLUGIN_PATH to env (master...service-fix/fcitx) https://git.io/vHU40
NixOS_GitHub has left #nixos []
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
asymmetric1 has quit [(Ping timeout: 255 seconds)]
cpennington has quit [(Ping timeout: 240 seconds)]
georges-duperon has quit [(Ping timeout: 255 seconds)]
mizu_no_oto has joined #nixos
takle has joined #nixos
koserge has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
trikl has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
<ben>
How do I deal with "a ... is required to build ..., but I am a ..." kinda errors?
<clever>
ben: what are the 2 platforms its censoring out?
matthewbauer has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
<ben>
im on x86_64 nixos and was hoping to be able to build stuff for, say, aarch64-linux by just passing that as the system attribute :)
<clever>
ah
<clever>
it wants an aarch64 build slave in /etc/nix/machines
<clever>
which it will ssh into and push all the dependencies to
Jackneillll has joined #nixos
<ben>
Is there a concise way to make it set up a vm for that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHUBR
<NixOS_GitHub>
nixpkgs/master 4ec0947 Franz Pletz: matrix-synapse service: restart on failure
<NixOS_GitHub>
nixpkgs/master 458895d Willi Butz: go: add dependencies for go get...
<NixOS_GitHub>
nixpkgs/master b411968 Franz Pletz: lldpd: init at 0.9.7
NixOS_GitHub has left #nixos []
Jackneilll has quit [(Ping timeout: 240 seconds)]
<clever>
ben: one option is the qemu stuff i wrote a while ago
<clever>
ben: if you run the register script inside the arm64 package, then linux will be able to just run aarch64 binaries
cpennington has joined #nixos
johnramsden has joined #nixos
<clever>
ben: then using the patched nix on line 10 as an override of nix on the host (so it replaces nix-daemon), will add a new build-extra-platforms option
drakonis has joined #nixos
<ben>
sweet
<clever>
ben: so you can set "build-extra-platforms = aarch64-linux" in /etc/nix/nix.conf, and nix will try to run aarch64 programs
simukis has quit [(Quit: simukis)]
<ben>
wow that's magical
<clever>
yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vHURU
<johnramsden>
What's the proper way to just call a function if you don't want to assign it to something. For example I just want to write text to a file and I don't care if it's assigned to something. Here's my example: https://github.com/johnramsden/NixOS/blob/eece9dc2ba71296c6097803b81dfa8839dca596e/users/john/environment.nix I want to map over my list "configurations , and write text to every path. I keep getting the following error:
<johnramsden>
"error: The option `environment_user' defined in `/etc/nixos/users/john/environment.nix' does not exist."
<clever>
johnramsden: what do you want to do with environment_user?
<ben>
writeTextFile doesn't write a text file, it returns a derivation that can be built to write to a text file~
<ben>
i think youd want to turn that resulting list into a derivation that has those derivations as propagatedUserEnvPkgs?
stepho has joined #nixos
<ben>
tho i guess theres probably a wrapper for that too somewhere...
eacameron has joined #nixos
Jackneillll has quit [(Remote host closed the connection)]
<johnramsden>
I see. I don't actually want to do anything with environment_user, I just want to run the map and write to every path. The next syntax doesn't seem to like it if I dont assign to a variable which is why I assigned to environment user
systemfault has joined #nixos
<johnramsden>
*nix
<clever>
johnramsden: it will write all of those paths into /nix/store
markus1209 has joined #nixos
<clever>
johnramsden: so it will leave files at locations like /nix/store/<hash>-<name>/home/user/.config/libvirt/qemu.conf
<johnramsden>
Oh. I thought it wrote to the path you gave it.
<clever>
johnramsden: and then the function returns the /nix/store/<hash>-<name> part
markus1219 has joined #nixos
<clever>
johnramsden: the closest you can do, is make a script that lands in /etc/profile, and runs upon login
<clever>
johnramsden: then writes things wherever it wants
<Baughn>
Anyone running gnome 3 with Emacs? I can't figure out how to swap caps lock and ctrl...
<johnramsden>
clever: OK. What is the right way to just run some code though. So I just wanted to run a map and not assign it to anything
<clever>
johnramsden: so you could put a command that writes to $HOME/.config/ in the spots where i set B thru F
markus1199 has quit [(Ping timeout: 240 seconds)]
<clever>
johnramsden: if you dont assign the result of the map to anything, nix will not even run it
<clever>
johnramsden: because the language is evaluated lazily
eacameron has quit [(Ping timeout: 240 seconds)]
<johnramsden>
Oh, ok
<johnramsden>
I guess that's what I was confused about
markus1189 has quit [(Ping timeout: 246 seconds)]
<ben>
wait why is this even a thing: There must be an attribute named system whose value must be a string specifying a Nix platform identifier, such as "i686-linux" or "powerpc-darwin"[7] The build can only be performed on a machine and operating system matching the platform identifier.
<clever>
johnramsden: butif you do something like environment.interactiveShellInit = "cp -vi ${file1} ~/.config/foo/bar/file1.conf";
rcschm has joined #nixos
<ben>
im pretty sure i can write a text file into the store on x86_64 just as well as on aarch64
<clever>
johnramsden: then it will overwrite file1.conf every time you open a shell, updating it to what the last nixos-rebuild made
<ben>
I might be doing this very wrong...
<clever>
ben: the writeTextFile derivation uses the shell from the target platform to run echo