<jared-w>
I never realized how sinful my scripts were until I started using nixos. "Oh use /bin/blah instead of relying on the path. That'll make it more robust." Hah. Jokes.
bvdw has quit [Read error: Connection reset by peer]
magneticduck has quit [Remote host closed the connection]
bvdw has joined #nixos
<samueldr>
extremely robust, for running on that one system where the binary is at that location, if the binary is not ever changed for another one
selfsymmetric-mu has joined #nixos
m0rphism has quit [Ping timeout: 252 seconds]
<jared-w>
Indeed. Bit of a misguided solution for scripts that are trying to be portable, though... Whoops. I've gotten much better at that for obvious reasons :p
mexisme has joined #nixos
<jared-w>
although ironically I first wised up about this the first time I tried to run a few of my "portable scripts" in macOS
xkapastel has quit [Quit: Connection closed for inactivity]
<Nazral>
I installed gcc but I get the following error
<Nazral>
Sanity check compile stderr:
<Nazral>
gcc: error trying to exec 'as': execvp: No such file or directory
paprika has quit [Client Quit]
<Nazral>
not sure how can I fix this
drakonis has joined #nixos
boogiewoogie has quit [Remote host closed the connection]
<clever>
,libraries Nazral
<{^_^}>
Nazral: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
peanutbutter144 has quit [Quit: No Ping reply in 180 seconds.]
peanutbutter144 has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
i want to install nixos unstable on my raspberry pi 4, but i am not sure if i should install unstable or install stable and upgrade it to unstable ?
<zeta_0>
also if there is an x, does that mean that the specific nixos version is broken(doesn't build)?
<zeta_0>
drakonis: cool, i switched from debian to nixos a couple months ago, nix is great
<jared-w>
Nixos legitimately annoyed me. I tried to get it setup once a while ago and over-complicated it and it didn't work right. This time around it was painless and I opted to just give up and use kde/plasma until I had the time to customize it more rather than getting the configs perfect first. Needless to say, having an install working in 20 minutes more flawlessly than your lovingly tweaked WM configs is very annoying.
<jared-w>
Pffh.
xkapastel has joined #nixos
<samueldr>
now try doing the same on your phone
<drakonis>
pfft ricers
red[evilred] has joined #nixos
<red[evilred]>
H haha
<jared-w>
wat did u just say about me? I'll have you know I have hundreds of lines in my neovim config. My wm brings all the boys to the yard ... /pasta
galaxie has joined #nixos
<jared-w>
I do want to get xmonad setup eventually, but also want to try out wayland and there aren't any good wms for wayland yet... *sigh* (well there's sway but I don't like i3 style wms for irrational reasons)
<zeta_0>
jared-w: ya nixos was painful for me to install but after that it got better
<jared-w>
One of the things that tripped me up for a while is there's a split between people who use channels and people who want their entire config to be _completely_ reproducible and there's an enormous difference between "I wrote my own OS agnostic linux-like-distro in nix lang" and "idk I just installed firefox through configuration.nix and called it a day"
<notgne2>
after a while on KDE I just wrote a 900 line home-manager module dubbed "ezpc" paired with a 178 line NixOS module (some external modules I made were used too)
<notgne2>
it manages pretty much everything I would want standard across my computers with various toggles
<drakonis>
the magic of nixos
<jared-w>
nice
<notgne2>
including one to switch between wayland and X11 configurations using a toggle, since my desktop has nvidia :(
<zeta_0>
jared-w: i am using xmonad in nixos right now, i really like it
danielrf has quit [Remote host closed the connection]
<notgne2>
I also went a bit overboard making every themable application be themed based off a single base16 field
<jared-w>
I need to put more stuff into home-manager. Right now it sets up git stuff and like a few other things but I have suuuper detailed zsh and neovim configuration setups from my years on Arch, so they're both probably going to be slightly painful to stick in home-manager
<drakonis>
i'm glad my laptop works out of the box
<drakonis>
arch users huh
<zeta_0>
so for my experience with xmonad is much better than gnome(other than having to configure some things manually)
<jared-w>
I also have this irrational need to use neovim from the bleeding edge of master and idk quite how to set that up yet. I miss my transparency and other random v0.5dev crap ;-;
<jared-w>
zeta_0: yeah xmonad is awesome. Especially for limited screens. I'm also excited cause I've heard it has some of the best multi monitor support vs other tiling wms so that would be sweet
<jared-w>
notgne2: I think I saw your configs on r/nixos then because I definitely remember seeing some crazy setup where way too much effort had been put into theming and I appreciated that on a deep level since I also care too much about stupid things like that
<zeta_0>
jared-w: ya, xmonad has a lot of flexibility, you can easily use it with multiple monitors
<zeta_0>
taking some time for aesthetics is good
o1lo01ol1o has joined #nixos
<zeta_0>
samueldr: so what is the difference between: `Latest successful build` and `Latest successful build from a finished evaluation` ?
<zeta_0>
samueldr: they seem to look the same ?
<samueldr>
they seem to, but they differ by the last four words
jluttine has joined #nixos
<samueldr>
the first one, the latest build is always the latest build
<samueldr>
it doesn't wait for the full nixpkgs set to be (tried to be) built
<samueldr>
if you were to download from a "last successful build" that was extremely fresh, with a lot of rebuilds, you could be installing stuff that has not been rebuilt yet by hydra
work_ has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
<zeta_0>
so in this context, `evaluation` means: that all the nixpkgs can be built with this version, so you know they won't break ?
drakonis has quit [Quit: WeeChat 2.6]
<zeta_0>
samueldr: thanks for the info
<samueldr>
not really, simply "all packages at that commit"
<zeta_0>
samueldr: oh, ok
<samueldr>
even if all packages not needed by the sd image fails, but the sd image works, the link would point to it
<zeta_0>
samueldr: i just want to make that i am doing this right, i had many issues when installing nixos on my laptop, so i don't want to struggle installing it on my pi
<zeta_0>
samueldr: thanks, sorry for spamming you with so many questions
<zeta_0>
samueldr++
<{^_^}>
samueldr's karma got increased to 137
<jared-w>
I've tried using nh2's static-haskell-nix repo but I end up with a bunch of missing library weirdness and cabal telling me to run cabal update
justanotheruser has quit [Ping timeout: 250 seconds]
<notgne2>
jared-w: I don't think that was me, I haven't uploaded any of my config publically yet, so far it's just shared between all my devices, my wife, and her brother. though I am very interested to see the post you are referencing to get some more ideas
<jared-w>
hmm... gonna look that up then
<zeta_0>
jared-w: are you using home.nix ? it's much easier to use that
<colemickens>
has there been discussion of hwat nix-shell looks like with flakes?
<jared-w>
Doesn't seem like they've uploaded their config to github yet. elvishjerricco pls
justanotheruser has joined #nixos
<notgne2>
funny he had the same idea as me with base16, I've found it very fun to be able to change out the colors, rebuild, and watch every application on my system change to fit the theme
<notgne2>
so far I'm only theming gtk, codium, kitty, rofi, sway, i3, and waybar, but I plan to add a lot more
<jared-w>
zeta_0: I have all of my home-manager stuff shoved inside of my configuration.nix at the moment. It's a dumb solution but I don't hate it yet. It was also convenient to be able to reuse pkgs with the overrides and whatever that I have setup since I attempted to get everything done without actually switching channels in the name of "tru reproducibility"
<jared-w>
Time will tell on whether or not I fucked that up :p
<notgne2>
it's also as far as I know the simplest way to theme codium at all
<jared-w>
notgne2: nice. Getting everything super standard is a really nice feeling.
<notgne2>
yes it's been great having all these multiple devices where I can just configure by setting if I want to use wayland, my wallpaper, theme, colorscheme, font, then some random toggles like games and bluetooth
<notgne2>
then every application is configured according to all those options automatically
<notgne2>
I can't imagine how that would be done without NixOS
<jared-w>
suuuuper painfully
<jared-w>
Have you seen some of the most-starred dotfiles repos on github?
nuncanada has quit [Ping timeout: 276 seconds]
<notgne2>
oh yes, I had a giant dotfiles repo too until one day I worked through every single file and converted it to a nix expr, adding modules for missing applications where needed
<jared-w>
Even then, they don't achieve that level of configurability.
<jared-w>
Yeah I kinda wanna do that but I also want to keep my dotfiles as close as possible to how they're "supposed" to be written. Idk why. Maybe I just haven't fully drank the koolaid but something bugs me about having a configuration for one tool that's completely inaccessible without some other unrelated tool
<notgne2>
next I think I'm going to try and make another module/setting to see how small I can get NixOS (potentially using a different output than an actual NixOS install like I did with Continix) since I have a system with 64MB ram and a 252mhz processor
<elvishjerricco>
jared-w: One reason I don't have my config on github is because I keep putting work related stuff in it. Not sure how to hide that from a github repo.
<elvishjerricco>
notgne2: Tiny NixOS would be great. I'd love to see how that turns out
<jared-w>
elvishjerricco: .gitignore has worked well for me. I've stuck work stuff in a separate file and done an "if this is my work computer source this extra directory" sorta thing.
<elvishjerricco>
That's not a bad idea
<jared-w>
Then the other directory can actually be a second, private, git repo. Or whatever, really. I always just kept it unmaintained since I've yet to actually use stuff I wrote at one job anywhere else
<jared-w>
I've seen similar usages of the idea in other peoples' dotfiles where they'll have multiple private-style things and either just source the private dir, or in each of their separate bits of config they'll source the appropriate private stuff if they need to. Either way.
buckley310 has joined #nixos
boxscape has quit [Remote host closed the connection]
<jared-w>
I actually don't have my zsh setup fully public for the same reason. I'm _pretty_ sure there's nothing lying around in there that's sensitive but meh.
<jared-w>
although I keep one sensitive alias in my zsh config because of nostalgia. I used to have this setup in college when I admin'd the CS labs: alias door='sshpass -p "ps aux | grep fixme *" ssh -o StrictHostKeyChecking=no root@nfs ./RelayExec64'
<jared-w>
it was a hacky POS that would ssh into our rpi we wired into the server door and would unlock the server room from my laptop. Good times, good times
<evils>
i've heard nothing but that for the last month xD, my branch works now though :D, close to making a PR for 5.1.5
kleisli has joined #nixos
<jared-w>
nice!
<evils>
huh, if i open the 7 files individually i don't get any issues
<evils>
wrong chat
<jared-w>
Got fond memories of randomly placing crap on a pcb and then having it auto-wire and somehow having accidentally made an almost optimal configuration the first time
<{^_^}>
[mobile-nixos] @samueldr opened pull request #52 → imageBuilder.makeMBR: Fixes bug with gap → https://git.io/Je6xL
<{^_^}>
[mobile-nixos] @samueldr opened pull request #53 → device: Pine64 PinePhone Don't be evil development kit // pine64-dont-be-evil → https://git.io/Je6xO
<evils>
jared-w: how did you determine the optimal configuration?
ericsagnes has quit [Quit: WeeChat 2.6]
<evils>
have you considered sticking to C89 and single threads?
<evils>
wrong chat again xD
ericsagnes has joined #nixos
gagbo has quit [Ping timeout: 240 seconds]
gagbo has joined #nixos
rardiol has quit [Ping timeout: 276 seconds]
sb0 has joined #nixos
<jared-w>
lol.
<jared-w>
evils: honestly, I just showed it to my professor and asked him if he could do it better. He squinted at it for a bit and went "wow, that's pretty good; that's gotta be near optimal or something" and I never really questioned him on it
<jared-w>
Looking back, in all honesty it probably wasn't that close to optimal lol
<evils>
well, can't argue with a professor
<jared-w>
He was a strange case
gagbo has quit [Remote host closed the connection]
<selfsymmetric-mu>
How do I get `pyenv`? I don't see one in nixpkgs.
<selfsymmetric-mu>
Normally I'd just use Nix to configure Python versions, but it doesn't like it when I override the patch version and use virtualenv with it.
<selfsymmetric-mu>
So I'm trying to take a step back.
domogled has joined #nixos
vonfry has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
i just burned nixos unstable onto an sd card and placed it into my raspberry pi 4(model B), i am not sure what to do next ?
<evils>
is it the aarch64 iso?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<zeta_0>
evils: yes
<zeta_0>
samueldr: you there ? i could use your help as well
<evils>
sry, missed it's a 4, my next suggestion was going to be "connect power and a screen"
<zeta_0>
evils: i already have the everything setup, i am just not sure how to install correctly, is it just like installing nixos on a laptop, or are the steps different ?
<evils>
i think i followed this for my rpi 3B+, not sure if that's still valid for the 4, https://github.com/zupo/nix
<evils>
assuming it boots, i'm guessing it should be valid
gagbo has quit [Ping timeout: 240 seconds]
gagbo has joined #nixos
<zeta_0>
evils: thanks, this will really help, it's going to take me a while though
<zeta_0>
evils++
<{^_^}>
evils's karma got increased to 1
mexisme has quit [Ping timeout: 276 seconds]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
xkapastel has quit [Quit: Connection closed for inactivity]
gagbo has quit [Ping timeout: 276 seconds]
gagbo has joined #nixos
bgupta has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<bgupta>
Curious is Macos Catalina supported yet. I saw a great Nix talk and wanted to play, and now see that Catalina may not be supported due to the inability to create /nix on the read-only / fs.
<notgne2>
I believe nix 2 supports specifying different store locations, not exactly sure how though
<infinisil>
bgupta: I think there's a fix for it by LnL
<clever>
notgne2: local?store=/mnt/ only works if you can chroot, and darwin doesnt have chroot support
<clever>
notgne2: and recompiling to put /nix/store elsewhere means recompiling EVERYTHING
<clever>
notgne2: changing /nix/store also means you cant use nixops to deploy linux
endformationage has quit [Ping timeout: 276 seconds]
mexisme has joined #nixos
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<kaliumxyz>
Is there some memory type which is optimal for the nix store?
<kaliumxyz>
like some kinda write once memory with high read speed?
<clever>
kaliumxyz: thats basically what you get if you enable fstrim on an ssd, it will pre-erase blocks, so it writes faster
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<kaliumxyz>
clever I don't care about write speed that much (except for when I'm doing deployments with nixops or testing stuff, but in that case whats written to the store is actually just testing stuff and should really be kept in memory instead).
halfbit has joined #nixos
<clever>
kaliumxyz: most FS's will also keep a read cache, so recently used files stay in ram, but you could force that if you use something like the installer media, where it unionfs's a read-only store with a tmpfs
<kaliumxyz>
That sounds pretty interesting.
<clever>
but you usually also loose all disk contents on reboot when in such a setup
lovesegfault has joined #nixos
englishm has quit [Excess Flood]
o1lo01ol1o has quit [Remote host closed the connection]
englishm has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
gagbo has quit [Ping timeout: 240 seconds]
gagbo has joined #nixos
vonfry has quit [Quit: WeeChat 2.6]
Rusty1 has quit [Quit: Konversation terminated!]
oida has quit [Remote host closed the connection]
oida has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 276 seconds]
slack1256 has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<lovesegfault>
,search libclang.so
<lovesegfault>
,find libclang.so
<{^_^}>
,find is temporarily unimplemented
<lovesegfault>
,locate libclang.so
<{^_^}>
Found in packages: emscriptenfastcomp, llvmPackages.libclang.lib, llvmPackages.clang-polly-unwrapped.lib
<{^_^}>
[nixpkgs] @vbgl pushed commit from @rixed to master « ocaml-sodium: init at 0.6.0 »: https://git.io/Je6jP
<{^_^}>
[nixpkgs] @FRidh pushed 12 commits to release-19.09: https://git.io/Je6jD
<kaliumxyz>
how much does nix benefit from having the store on an NVMe drive?
mniip has quit [Ping timeout: 608 seconds]
<tilpner>
kaliumxyz: As opposed to spinning metal or a SATA SSD?
philr has joined #nixos
Heirlung has joined #nixos
<pistache>
in my case, the switch from a SATA SSD to the same SSD in NVMe didn't make much difference
<pistache>
it depends on the SSD specifications, some are quite beefy and make good use of the NVMe bandwidth, others not so much
lovesegfault has quit [Ping timeout: 246 seconds]
<kaliumxyz>
I'm a noob on this but does nix do paralel writes when writing to the nix store?
<kaliumxyz>
tilpner as opposed to anything.
<pistache>
if it's read performance you're interested in, just having more RAM (more cache) can be better
<kaliumxyz>
best case non-NVMe
<tilpner>
kaliumxyz: Having any kind of storage is vastly preferable to having none
Diagon has quit [Quit: Leaving]
<kaliumxyz>
I was looking into it because a dedicated volume for the nix store would make it last pretty much forever as flash memory doesn't wear out that quickly with little writes and tons of reads.
<kaliumxyz>
tilpner as opposed to best-case non-NVMe
Jackneill has joined #nixos
<tilpner>
It doesn't make too much of a difference
<tilpner>
A good SATA SSD is already pretty usable
<tilpner>
But your workload may disagree with me
mniip has joined #nixos
<tilpner>
If you use it as a build server, an NVME drive might very well be worth the money
<pistache>
I'd recommend filling the server with RAM before investing in expensive NVMe drives
<reactormonk>
I'm getting a weird combination of circumstances here, one of the pieces is the .so provided by nix, maybe someone here has seen this before? GhcException on cradle initialisation: "can't load .so/.DLL for: /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libpthread.so (/nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libpthread.so.0: undefined symbol: __libc_vfork, version
<ij>
because I see it's present in the other nixos I own
<clever>
ij: thats what the default NIX_PATH should look like
<evils>
clever: i'm lacking context for your suggestion, i'm trying to simplify the kicad package by separating its "libraries" (footprints etc) into `kicad-libraries` and then use e.g.: `${kicad-libraries}/modules` in the kicad package
<clever>
evils: you could add `outputs = [ "out" "libraries" ];` to the derivation, then reference `${kicad.libraries}` to get the files that got installed to $libraries
thc202 has joined #nixos
sigmundv has joined #nixos
<evils>
clever: i'm not seeing where i would define the libraries in your suggestion
<yorick>
clever: you could, but libraries aren't built as part of the kicad build
<clever>
evils: the kicad package would `mkdir $libraries` and copy things to there, while doing its normal build
<clever>
yorick: ah, in that case, it would be better to just make 2 seperate derivations
<clever>
might get away with just `kicad-libraries = fetchgit`
jgt has quit [Quit: WeeChat 2.4]
<evils>
clever: ah, so the reason i want to separate it is because i'm also doing kicad-unstable and may want to reuse these assets there
<clever>
yeah, simpler to use a fetchgit then
<evils>
clever: also, using `mkdir` doesn't sound like it'd get rid of all the library stuff in the kicad package
<yorick>
evils: is there any library stuff in the kicad package?
<yorick>
I've always had to install kicad-libraries seperately and set the path somewhere
reactormonk has quit [Ping timeout: 265 seconds]
<evils>
yorick: yea, that's kinda what i want to do, set the paths with a wrapper, but aside from adding the libraries as a dependency, have no reference in the default.nix
<yorick>
the library management is the ugliest part of kicad
<evils>
i basically find the mkLib and passthru part of that default.nix quite cluttering and was wondering if i can abstract it out of the default.nix
<ij>
clever, anyhow thanks! sorry it's because of my misconfiguration :)
<yorick>
evils: you can still do kicad.libraries now, right?
<yorick>
well, kicad.symbols and footprints and templates and packages3d
nuncanada has joined #nixos
<evils>
ok so i'm quite unfamiliar with the `package`.`stuff`, stuff
rauno has quit [Ping timeout: 240 seconds]
<evils>
yorick: does look like kicad.symbols etc exists
<yorick>
evils: passthru does that magically, yeah
__monty__ has joined #nixos
fusion809 has quit [Remote host closed the connection]
<jollyjester>
how can i add a path in my bash script, for example if i wanted to execute /usr/bin/firefox how can i get the path of it from /nix/store
<evils>
yorick: i want to get rid of mkLib and the contents of passthru in that kicad/default.nix because it clutters it up, wouldn't that break what you're suggesting?
<yorick>
evils: you could still move it to a different file
<evils>
also since i want to use the libraries for kicad-unstable, wouldn't that imply i'd have to install kicad to install kicad-unstable?
<yorick>
evils: no, kicad.symbols is usable without building kicad itself
hmpffff has joined #nixos
<clever>
evils: you can either do `symbols = something;` right in the kicad derivation (but kicad will depend on, and force symbols to build first), or you can do `passthru.symbols = something;` then kicad wont depend on the symbols
mananamenos has joined #nixos
<jollyjester>
i think it was something along the lines of
<jollyjester>
/nix/store/{firefox}
<jollyjester>
or something like that, involving curly braces
<clever>
jollyjester: if your bash is a string in a nix file, ${pkgs.firefox}/bin/firefox
<jollyjester>
clever: -bash: ${pkgs.firefox}/bin/firefox: bad substitution
<jollyjester>
when i try to echo it
<evils>
clever: ok, that's clearing something up, but how do i move both the `let mklib =... in stdenv.mkDerivation` and the definition of `passthru` to a separate file?
<clever>
jollyjester: then its not a string in a nix file
<jollyjester>
clever: i mean like in a .sh script
<clever>
evils: you can use callPackage in all-packages.nix to load the file and pop it into pkgs
sb0 has quit [Quit: Leaving]
<clever>
jollyjester: you usually want to build that bash script with nix, so you would use something like pkgs.substituteAll to replace @firefox@ with pkgs.firefox
<evils>
clever: that seems like a completely unrelated answer to me xD
<jollyjester>
clever: how do i do that
<evils>
clever: atm i'm thinking there's probably a way to move the passthru to a file, do import where it used to be, and put something like 'with mkLib = ...' in that file
<clever>
jollyjester: check nixpkgs for examples of how substituteAll is used
<evils>
maybe i should just rephrase my original question, anyone know of a package that does this i can use as an example?
<jollyjester>
clever: how do i install substitute
<clever>
jollyjester: you would write a package overlay, that does something = self.substituteAll { src = ./something.sh; firefox = self.firefox; }; i believe
<clever>
jollyjester: and then nix-env -iA nixos.something
<evils>
i keep finding myself unable to link the theory with the practice, snippets that sound like a good idea lack context as to where i'd apply them, which is why i strongly prefer grepping through nixpkgs to reading the documentation...
<jollyjester>
weird the manual tells me to use substitute like a program
<jollyjester>
substitute ./foo.in ./foo.out \
<clever>
jollyjester: thats a function that pkgs.substituteAll uses
<jollyjester>
clever: do you know a way to create a shell script as a package
<jollyjester>
what you'd do is just move it to .loca/bin but how do you do that on nixos
<clever>
jollyjester: grep the nixpkgs source for substituteAll, youll find an example near nixos-install and nixos-rebuild
<marek>
any KDE maintaners around? kiod5 is crashing with org.kde.kpasswdserver[2482]: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<marek>
but I see kio using mkDerivaction, so Qt5 should wrapp it
<jollyjester>
clever: so how would i make a shell script into a package
<clever>
jollyjester: you would write a package overlay, that does something = self.substituteAll { src = ./something.sh; firefox = self.firefox; }; i believe
<jollyjester>
like just add the script to my path and execute it, for example "screenshot" being a shell script and instead of doing `bash screenshot` you would just run `screenshot` in your shell
mexisme has quit [Ping timeout: 245 seconds]
<clever>
jollyjester: that will generate a package, that copies something.sh, and replaces @firefox@ with self.firefox
<jollyjester>
i'm not talking about the previous firefox substitute thing
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #73781 → Pantheon 5.1 (second set of updates etc.) → https://git.io/JeKAW
<{^_^}>
[nixpkgs] @worldofpeace pushed 18 commits to master: https://git.io/Jeifp
<jollyjester>
error: cannot auto-call a function that has an argument without a default value ('writeScriptBin')
<clever>
jollyjester: which nixpkgs rev are you on?
<clever>
(or channel)
<jollyjester>
19.09
<clever>
jollyjester: are you using callPackage?
fendor has joined #nixos
pointfourone has quit [Ping timeout: 276 seconds]
iyzsong has joined #nixos
<jollyjester>
clever: i have no idea i'm running the utils.nix
<jollyjester>
how am i supposed to run it what i did was nix-build utils.nix
<clever>
,callPackage jollyjester
<{^_^}>
jollyjester: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<jollyjester>
ah jeez clever do you have a huge notebook or markdown/org file with all of this stuff
<jollyjester>
because i feel like it's going to take me 2 years to learn just the basics
<clever>
jollyjester: my brain is just wonky, ive memorized a decent chunk of the source for nix, nixops, and nixpkgs
<jollyjester>
the fact that nixos isn't posix-compliant just tilts my whole linux knowledge upside down
<clever>
yeah, that adds a bit of a learning curve
<jollyjester>
all of this extra abstraction and nix scripts
<clever>
jollyjester: one trick, is to just forget everything you know about where files normally are, and learn how to find where a tool is told to look
<clever>
jollyjester: for example, instead of assuming the config is in /etc/nginx/nginx.conf, you `ps aux | grep nginx` and look at whatever `--config` is telling it to look at
<jollyjester>
the hardest part to understand is the .nix files
<jollyjester>
and how they work
<clever>
that way of finding things, also applies to other distros sometimes
<kahiru>
a how the various nix-* tools work with said .nix files
<clever>
jollyjester: do you know functional programming?
<jollyjester>
clever: i tried learning haskell a bit
<notgne2>
I've been using Nix for a while and I'm picking up Elm, I think I might finally properly learn Haskell soon
alexherbo2 has joined #nixos
<notgne2>
I feel like Nix has probably prepared me a bit
<jollyjester>
so, since nix is a lazy programming language, will adding more "modules" for different programs to use in your configuration slow it down or not?
<dminuoso>
jollyjester: What does lazy have to do with this?
<notgne2>
the evaluation time will increase
<notgne2>
which is an issue with nixpkgs currently that I believe is being tackled somehow
<dminuoso>
jollyjester: Lazyness merely means you can do things like (mutually) recursive definitions.
<jollyjester>
dminuoso: oh ok
<dminuoso>
jollyjester: You can express things in more natural ways.
<dminuoso>
jollyjester: This notion is kept in other techniques like nixos modules
<dminuoso>
jollyjester: Which is why you can have two nixos modules which refer to each other.
<jollyjester>
also the nixpkgs are put into different categories right?
<dminuoso>
(This is not directly an effect of nix being lazy, but nixos modules being done in a lazy fashion as well)
<jollyjester>
also if a package becomes unmaintained, is there a way to remove it from the repositories?
<dminuoso>
jollyjester: All nix parts are maintained in git repositories.
<clever>
jollyjester: last week, slim was finally removed (its been unmaintained since ~2014)
<dminuoso>
jollyjester: So removing/upgrading/adding packages is just working on that git repository. In principle anyone can do it.
<jollyjester>
how does the removal process occur
<dminuoso>
jollyjester: You would either open an issue or better make a pull request at github with the necessary modification.
<dminuoso>
jollyjester: Oh and another property of lazyness is that nixpkgs is introduced as a huge attribute. So you dont actually install packages, you just reference them somehow (and by doing them they get installed automatically)
<dminuoso>
*huge attribute set
gxt has joined #nixos
<jollyjester>
dminuoso: did nixos improve your workflow in a drastic manner?
<dminuoso>
jollyjester: Yes.
<jollyjester>
how much time did you think you saved and lost after you started using nixos
<dminuoso>
I dont think of it in terms of "how much time"
<dminuoso>
Im maintaining multiple complex mail setups, so nixops/nixos gives us deterministic mail setups (*guaranteed* coherence between development, staging and production, instant and accurate rollbacks) with the expressivity of a functional programming language.
<clever>
dminuoso: and your less likely to run into a 500 mile email problem, due to the distro downgrading components on you
<qyliss>
I wouldn't generally but since jollyjester is asking for a step by step of what happens to a .nix file rather than "how do I use this" I figured the pills are the answer
rardiol has joined #nixos
<jollyjester>
what does `with import <nixpkgs> {};` do
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to staging: https://git.io/JeiU3
philr has quit [Ping timeout: 240 seconds]
nschoe has quit [Ping timeout: 252 seconds]
<Ashy>
adisbladis: when you say i can just pull the deps, can i just fire up a nix-shell with them? `nix-shell -p python3Packages.click ...`
bahamas has quit [Ping timeout: 245 seconds]
smatting has joined #nixos
<mananamenos>
hi, I have a haskell project which suddenly started failing to build. I found the lib causing it, fixed it in my nixpkgs local project, now the lib builds well. Back to my project, how do I make my project's default.nix or just shell.nix take that lib from my local nixpkgs dir?
<clever>
mananamenos: -I nixpkgs=/path/to/nixpkgs
<ij>
clever, well I thought you'd be right.. but installing other things work... I am going to look at the release branch to see it's truly there
<mananamenos>
clever it still says that that lib is broken, even if it builds fine. Did i have to do something special in nixpkgs project to unmark it from broken? I've deleted the line from configuration-hackage2nix.yaml.
<clever>
mananamenos: how does your default.nix load nixpkgs?
bvdw has quit [Read error: Connection reset by peer]
<mananamenos>
clever, thank you. I've got working
<{^_^}>
[nixpkgs] @aanderse opened pull request #73915 → codeowners: add etu as php owner → https://git.io/JeiUd
bvdw has joined #nixos
Ariakenom has quit [Quit: WeeChat 2.6]
<FRidh>
Ashy: adisbladis: the problem is that example. Using nix-shell will trigger the python setup hook, exporting PYTHONPATH resulting in the wrong pip module being loaded
<adisbladis>
FRidh: Note to self: Go through the python docs and make sure we're consistently using withPackages
zupo_ has joined #nixos
<FRidh>
adisbladis: we do mostly. This was something added by those that wanted to show how to use pip impurely. I'm not bothering really with that piece because its asking for trouble and outside the scope of nixpkgs.
mexisme has quit [Ping timeout: 276 seconds]
<FRidh>
but indeed, withPackages here would solve it
zupo has quit [Ping timeout: 246 seconds]
<betawaffle>
how does anyone decide between using `x86_64` and `amd64` when referring to an architecture?
<adisbladis>
FRidh: It's fine that you want to use it impurely. Though I don't think the docs should contain anything to encourage that.
<adisbladis>
FRidh: I don't know how many people I've helped because of docs giving bad examples :)
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @novoxudonoser opened pull request #73916 → helm3: init at 3.0.0 (help wanted) → https://git.io/JeiTq
mexisme has quit [Ping timeout: 245 seconds]
mananamenos_ has joined #nixos
mananamenos has quit [Remote host closed the connection]
mananamenos_ has quit [Client Quit]
mananamenos has joined #nixos
mexisme has joined #nixos
rauno has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
mexisme has quit [Ping timeout: 250 seconds]
mananamenos has quit [Client Quit]
gxt has joined #nixos
mananamenos has joined #nixos
<ij>
how do I extract the version from a files of a channel?
<ij>
ah, it's .version... :) ls didn't show it by default
mexisme has quit [Ping timeout: 252 seconds]
<philipp[m]>
Can I get the path of a shell.nix file while evaluating it?
Ariakenom has joined #nixos
mexisme has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
<mananamenos>
i want to upload configuration.nix and hardware-configuration.nix files to git repo, but as those files are only edited by root, i cannot create a repo in that dir with normal user. How should i approach this? Give that dir users group?
<clever>
mananamenos: or just `sudo -i` to get a root shell
<mananamenos>
ok
<mananamenos>
the thing is then I have to give create git root name, email and also ssh key
<tilpner>
mananamenos: Change ownership of the directory/files to your user
<philipp[m]>
You could opt for two repositories on your hdd, pulling the files as root and otherwise working as your normal user.
<clever>
mananamenos: if you are using an ssh agent, it will inherit those vars and keys
mexisme has quit [Ping timeout: 250 seconds]
bahamas has quit [Read error: Connection reset by peer]
bahamas has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
<etu>
:O
bahamas has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/Jeik0
mexisme has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @filalex77 opened pull request #73918 → nebula: init at 1.0.0 → https://git.io/JeikE
Makaveli7 has joined #nixos
mexisme has joined #nixos
bahamas has quit [Ping timeout: 245 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domogled has quit [Quit: domogled]
mexisme has quit [Ping timeout: 250 seconds]
civodul has quit [Remote host closed the connection]
mexisme has joined #nixos
<laas>
does anyone here use non-standard ways to compress their initrd?
<inf>
Hey all. I'm trying to setup unencrypted grub-based setup with GPT -> unencrypted EFI partition + luks -> lvm -> ext4... After installing GRUB (with enableCryptodisk = true;) it tries to mount lvmid/... disk, without
<philipp[m]>
Back in my gentoo days I did such things, but I don't bother with it now.
zupo has joined #nixos
<inf>
trying cryptomount first... when I strings'ify the grub image it ends with (lvmid/...)/boot/grub, how I expected... On my main laptop I use (with very similar setup, but grub is stored on separate drive and LUKS is directly on sda block device) it just creates `cryptomount` line at the end of grub...
<inf>
end of grub efi image*
boogiewoogie has quit [Remote host closed the connection]
<inf>
so somehow grub-install doesn't see that root partition is running off LUKS?
cosimone has joined #nixos
waleee-cl has joined #nixos
sondr3 has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
<rnhmjoj>
do you know any quick way to copy a file between virtual machines running in a nixos test?
<clever>
rnhmjoj: there is a dedicated xchg mount point for just that, check the other nixos tests for an example
<rnhmjoj>
clever: thank you, i'll into it
cosimone has quit [Quit: Quit.]
Rusty1 has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
<ij>
does adding directories have a different effect to adding name= in $NIX_PATH when doing nix-env -iA?
knupfer has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
mexisme has joined #nixos
<Ariakenom>
im getting failed assertions from autoLogin for sddm gdm and lightdm. "The current default session: none is not valid". I set default to none and desktopManager.xterm.enable. according to the wiki.
<Ariakenom>
is the assertion pointing out some error that I can fix?
<rnhmjoj>
clever: the only reference i can find is in nixos/tests/blivet.nix, but it's not clear how (or why) it's used.
pie_ has quit [Quit: No Ping reply in 180 seconds.]
cosimone has joined #nixos
<rnhmjoj>
i tried touching a file in /tmp/xchg but it's not shared between hosts
pie_ has joined #nixos
<sondr3>
is discourse.nixos.org down for others than me? It keeps timing out
<clever>
rnhmjoj: each host has its own xchg dir, under some statedir
cosimone has quit [Client Quit]
<sondr3>
nvm it suddenly started working
cosimone has joined #nixos
<rnhmjoj>
sondr3: it works for me, but it's kind of slow
<ij>
can nix 2.0 do "nix-env -i"?
mexisme has quit [Ping timeout: 252 seconds]
reactormonk has quit [Ping timeout: 276 seconds]
cosimone has quit [Client Quit]
nschoe has joined #nixos
pie_ has quit [Ping timeout: 252 seconds]
<rnhmjoj>
clever: what i meant was exchange a file between two guests vm running in the same nixos test, not between a guest and the host machine. can i use xchg to do this?
mexisme has joined #nixos
<clever>
rnhmjoj: you would have to copy it from guest to host using xchg, then move it from one xchg to the other xchg
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeiLW
<clever>
rnhmjoj: i believe each vm has a stateDir function on it, that returns the dir that xchg would be under
<jollyjester>
Do you guys actually configure your software through home-manager or the nixos configuration? Isn't just backing up your configs better? Including them in a .nix file or just backing up a .conf file, I think it's the same thing
mexisme has quit [Ping timeout: 246 seconds]
<jollyjester>
Maybe it's because of the modularity of nix, and how you can edit the config file depending on what state the system is...
<jollyjester>
Guess I answered my own question?
drakonis has joined #nixos
<sondr3>
eh, personally it's because I can bundle configuration and installating all in one, no more shell script listing all "required" packages on new Arch installs etc, just include the relevant configuration and you have everything configured and installed
<sondr3>
it really starts to shine once you are configuring more than one machine, I can do big changes on my laptop to configuration of whatever software, pull them home and rebuild and _know_ that they will be completely in sync
<jollyjester>
I kind of prefer the UNIX way, I feel like NixOS tries to impress us by it's complexity not it's simplicity and writing your own scripts to configure your system is a more simple way to do it, but that's what I think
tboerger has joined #nixos
<sondr3>
I did that before, but it was a major PITA to keep in sync, updated and working across different machines. Nix isn't just managing software, but also hardware. With Arch it's hard to keep track of what changes you've made to your kernel parameters, xorg configuration and so on, with Nix all is configured in my dotfiles
seku has joined #nixos
<rnhmjoj>
clever: i've found the function stateDir() and the state `/tmp/vm-state-client/xchg/` in the host machine. i'll try to use copyFromHost
<sondr3>
Now I have a base set of packages for my home and OS, and my laptop can have specific settings for power management, kernel headers and so on and still know that everything else is the same as my desktop at home
pointfourone has joined #nixos
mexisme has joined #nixos
<clever>
rnhmjoj: copyFileFromHost is rather ugly, it just jams the entire file into an echo command!
ddellaco1 has joined #nixos
<sondr3>
dunno, I came from Arch to NixOS using my own shell scripts to configure my dotfiles and so on and using Nix and home-manager has been such a breath of fresh air for me
drakonis has quit [Ping timeout: 240 seconds]
<tboerger>
does somebody know a repository which defines expressions for graphical macos apps?
<clever>
i just configure things without dot files!
<clever>
rnhmjoj: telling the guest to run a plain `cp` against its `xchg` dir feels faster
<sondr3>
clever: that's how I do it too :)
<sondr3>
I still have a few regular dots lying around, but they are mostly things I'm frequently changing and want them to settle down before merging them into a nix derivation
boogiewoogie has quit [Remote host closed the connection]
<Shoubit>
clever, is there something similar/is that usable for Neovim?
<rnhmjoj>
clever: alternatively i could try to hack something with netcat. i wonder if `succeed("command &")` will work
<inf>
OK, got everything working in my case - issue was that cryptsetup luksFormat created LUKSv2 volume, while GRUB only supports LUKSv1.
<inf>
Now another quick, rather unrelated, question... Is there a way to add an extra symlink in /run/current-system/sw/bin? I have awesomewm setup that references x-terminal-emulator, and I'd like to just create a global "alias" for that command.
<catern>
tabaqui1: it depends on the format of that .closure, but probably not - check with "file", is it listed as binary data? if so it's in Nix canonical form which is a low-overhead uncompressed form for binary data
<srk>
adisbladis: cooling, lookin' into it
<tilpner>
tabaqui1: Does your .closure file have "nix-archive-1" in the first hundred bytes?
<catern>
tabaqui1: if it's in Nix canonical form then you'll need the Nix tools to unpack it
<tabaqui1>
catern: "file" just returns Data
<tabaqui1>
nix-archive-1, right
<srk>
adisbladis: I mean thanks, looking :)
drakonis has quit [Quit: WeeChat 2.6]
<adisbladis>
tabaqui1: It's likely a NAR, which is not supported by any tooling I know of except nix
<karetsu>
then there's a command group but doesn't say which of the commands didn't work
<srk>
adisbladis: this one is tricky to debug as changes to stdenv/generic/setup.sh cause massive rebuilds. I might try bisecting it as I don't see any suspicious changes in that file
<tilpner>
karetsu: So it might not be a HM problem
<karetsu>
oh its definitely not, its a systemd issue but HM alerted me to it
<tilpner>
karetsu: Figure out what happened to your systemd user session. If you want help with that, share output of above command and logs
<adisbladis>
srk: The change happened on staging... Bisecting will probably take forever
<adisbladis>
I'd really like Ericson2314 to take a look at this
jb55 has joined #nixos
<adisbladis>
As it's likely his recent stdenv changes broke it
<magneticduck>
I'm trying to point `requireFile` at a file in my store, but having trouble
<magneticduck>
I need to get the sha256 hash, but `nix-store --query --hash` is providing this thing, which is not the usual size of a sha256 hash!
<magneticduck>
the usual length, I mean. anyway, when I use this as the `sha256` argument of requireFile, I get an error message telling me that my file is not in the store.
<infinisil>
magneticduck: Using `sha256 = "sha256:1fgbr8gn5d8ffw979jd0k09cinhysrwj5njnjfcm5d0ayiql85ca"` should work I think
<magneticduck>
hmm, still not working
o1lo01ol1o has quit [Remote host closed the connection]
karetsu has quit [Quit: WeeChat 2.6]
<eyJhb>
hyper_ch: sadly the fix does not work for me
<magneticduck>
I'm actually not using requireFile directly, but trying to enter this file into a list of possible Mathematica versions which are tried in order by the Mathematica expression in nixpkgs
<infinisil>
magneticduck: Can you show the error and the nix file declaring the requireFile?
<magneticduck>
sure
rardiol has joined #nixos
* infinisil
is away for a bit though
gxt has quit [Ping timeout: 260 seconds]
<magneticduck>
so, the nix expression in question is http://ix.io/22xH
<betawaffle>
does anyone use nix to manage dotfiles/their home directory on a non-nixos machine? (eg. macos)
karetsu has joined #nixos
<magneticduck>
betawaffle, there's home-manager
<magneticduck>
but I don't know if that works on mac
<karetsu>
infinisil: it still gives me a systemctl --user status of degraded and the services still don't start automatically, specifically its dbus that isn't
<betawaffle>
i just assumed it didn't, but didn't look at it much
<jollyjester>
can someone help me try patching a binary using a .nix file
<infinisil>
magneticduck: And..?
mexisme has quit [Ping timeout: 276 seconds]
<jollyjester>
how would i add all the libraries and ld-linux and everything to a default.nix
<jollyjester>
and build it, then it makes a binary that executes properly
<magneticduck>
infinisil, the file had the wrong name. it was expecting Mathematica_11.0.1_English_LINUX.sh, but the file I had downloaded was called Mathematica_11.0.1_LINUX.sh
<infinisil>
Ahh I see
<magneticduck>
I wasn't expecting an issue of that sort, since I assumed everybody acquired the file in the same way and the naming wouldn't jump around between versions
<ddima>
joepie91: boot.trace trace at least shows the statements executed of stage-1 and stage-2, but whether it's useful or not depends on the type of issue you're having.
<jollyjester>
i just installed ubuntu_font_family and when doing fc-list | grep "Ubuntu" it doesn't show anything
<adisbladis>
srk: Ok, lemme try to revert that commit locally and rebuild :)
mexisme has joined #nixos
jgeerds has joined #nixos
drakonis has joined #nixos
LysergicDreams has quit [Ping timeout: 240 seconds]
juhe has joined #nixos
LysergicDreams has joined #nixos
smatting_ has joined #nixos
smatting has quit [Ping timeout: 250 seconds]
<veleiro>
can anyone explain, why would I use home-manager vs nix-env? because nix-env is declarative? I'd like all of my config files for emacs etc to be deterministic as it is for configuration.nix
hmpffff has quit [Quit: nchrrrr…]
<adisbladis>
veleiro: nix-env is not declarative
<adisbladis>
And home-manager is :)
<adisbladis>
Also home manager has some pretty nifty features like user services
<adisbladis>
veleiro: Imho the best way to use home-manager is as a nixos module
karetsu has quit [Quit: WeeChat 2.6]
hmpffff has joined #nixos
<veleiro>
so why wouldn't nix-env be more like that? all i can imagine is its easy to just spin up some derivations to check out, but using both home-manager and nix-env would ensue quite a mess
<adisbladis>
veleiro: Mostly historical I guess. Idk
<adisbladis>
Never really used nix-env
tilpner has quit [Quit: tilpner]
<juhe>
veleiro: I think that the goals of nix-env and home-manager are different. nix-env is for (at least to me) for quick & dirty tests of applications, which either end up in home or even system configuration or not.
<juhe>
veleiro: I try to keep the output of nix-env -q short. Mainly because apps installed by nix-env do not get updated when running home-configuration switch (or nixos-rebuild switch).
rardiol has quit [Ping timeout: 245 seconds]
tilpner has joined #nixos
<jollyjester>
can anyone tell me if ubuntu_font_family works on their system
<veleiro>
oh thats cool, i'm pretty much convinced about home-manager i believe.
<jollyjester>
i tried restarting my xorg session too, but with no effect
<adisbladis>
veleiro: For ad-hoc things you want either `nix run` or `nix-shell`
LysergicDreams has quit [Ping timeout: 240 seconds]
<adisbladis>
I recommend everyone to stay away from nix-env :)
<veleiro>
jollyjester: mine work in fonts.fonts = with pkgs; [ ubuntu_font_family ];
<lordcirth>
I try to only use nix-env for -qa
<adisbladis>
Also there is a `nix` 2.0 command coming which replaces nix-env and has at least some better semantics
<veleiro>
<adisbladis "ultranix: For ad-hoc things you "> thanks
<qyliss>
Yeah, I like to think of it as "nix-env is there because it hasn't been deleted yet"
<adisbladis>
lordcirth: It's fine as a search tool, I mean anything that alters state
<lordcirth>
adisbladis, ooh, where can I follow that 2.0?
red[evilred] has joined #nixos
<red[evilred]>
I’m still struggling with the use case for home-manager too. I think I need an article / video / something to help me understand what I’m missing
* juhe
noted down to use nix run / nix-shell instead of nix-env :)
<adisbladis>
red[evilred]: Basically this: You know how you have configuration.nix globally
<adisbladis>
What if you could have that for user profiles too
LysergicDreams has joined #nixos
jollyjester has quit [Quit: leaving]
<red[evilred]>
So each user has a configuration.nix?
<qyliss>
essentially
<adisbladis>
red[evilred]: Each user has a home.nix (usually in ~/.config/nixpkgs/home.nix)
hmpffff has quit [Quit: nchrrrr…]
<red[evilred]>
So I could use my master configuration.nix to write out my individual user home.nix es?
<veleiro>
which is why nix-env isnt helping, because you can have config files for it too in home, right?
<adisbladis>
But home-manager can also be used as a nixos module (ie you also define your user profiles in configuration.nix)
<adisbladis>
red[evilred]: ^
<adisbladis>
Then it's all updated when you nixos-rebuild
<red[evilred]>
Oh, so basically what I’ve been doing already manually
<veleiro>
~/.config/nixpkgs/config.nix
<red[evilred]>
Sold.
<red[evilred]>
Time to find that module
<veleiro>
i like how nix-env has rollbacks and i dont understand either the warning about home-manager needing manual rollbacks
<red[evilred]>
It’s basically saying that it can’t restore something that wasn’t automatically generated
<red[evilred]>
Which is also true for all of nix, but you don’t see it because people typically don’t do things manually at a system level
MmeQuignon has quit [Ping timeout: 240 seconds]
<veleiro>
true
<red[evilred]>
Basically the same warning as when you turn mutable users false but forget to define one
<red[evilred]>
That user just disappears
<red[evilred]>
Or adding something directly to hosts
<red[evilred]>
Which reminds me, I need to check on my nixos PRs
<adisbladis>
red[evilred]: I believe it's a directory called `nixos` in the home-manager repo, add that to your system imports
davidak has quit [Read error: Connection reset by peer]
<adisbladis>
And then something like: `home-manager.users.adisbladis = import home.nix;`
davidak has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<red[evilred]>
YES! It got added!
<red[evilred]>
Woot!
<red[evilred]>
Now I gotta go check on hydra and make sure I didn’t break master :P
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<qyliss>
red[evilred]: you can PM the bot fwiw
<red[evilred]>
,
<{^_^}>
Special commands: find tell locate expand - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries unstable escape'' library declarative unfree howoldis escape" ping paste callpackage -a pinning profiling ask overlay pr wololo nixlang++ which-channel botsnack stateversion xml imperative xy cache fancy-uninstall pills channels exec ifd invite haskell loot home-manager stuck pointers tias tofu cloak dontask escape-special
<red[evilred]>
Oh, thank you
<juhe>
Does anyone know how to cleanup boot stage 1's network before entering boot stage 2? Or at least somehow persuade systemd that it should reconfigure eth0 to become enp4s0 as if is with boot when network in boot stage 1 is never configured...
<red[evilred]>
I’m looking for the heroku url that shows channel status
<red[evilred]>
Now I just need to work out when this got commit was actually committed as it showed the date I committed it, not when merged.
davidak has quit [Ping timeout: 276 seconds]
<red[evilred]>
Easy from a command line, hard from a cellphone
<red[evilred]>
I should probably just be patient
<lordcirth>
red[evilred], what commit ID?
fusion809 has joined #nixos
<red[evilred]>
C8bfae0
lovesegfault has joined #nixos
bahamas has quit [Ping timeout: 246 seconds]
<red[evilred]>
It got merged into staging, then staging-next over the last few weeks
<red[evilred]>
I’m trying to work out when it hit master
<lordcirth>
K
<red[evilred]>
I guess it doesn’t matter - but it does mean that I can now open a PR to add LTFS support!
<red[evilred]>
Which is what I’ve been waiting for
davidak has joined #nixos
<ambro718>
When I run genericBuild in a nix-shell environment, it ends up failing to install to the nix store (Read-only file system). How do I make the install work?
<lordcirth>
red[evilred], ec9cf578e56ff7c3045878f86506338b0112777d Wed Nov 20
<adisbladis>
ambro718: What do you expect to happen? Where do you want the stuff to be installed?
<ambro718>
adisbladis: possibily in a specific location of my choice, not in the nix store
<Ariakenom>
(no sarcasm I find these managers confusing)
domogled has joined #nixos
zupo has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
when i set the option: `networking.wireless.enable = true;` in configuration.nix, wpa_supplicant threw an error: `Failed to open config file '/etc/wpa_supplicant.conf', error: No such file or directory`
<zeta_0>
what's going on here ?
<zeta_0>
how do i get the wifi up and running in nixos ?
<jared-w>
Does your wpa_supplicant file exist?
<jared-w>
I think it has to be created manually for some reason... I remember needing to do some weird nonsense before giving up and installing nixos through the graphical live disk like a pleb
zupo has quit [Client Quit]
<jared-w>
(in my case I configured everything right but forgot I was on a WEP wifi network until I used the graphical installer which had the GUI to automate the wireless nonsense)
zupo has joined #nixos
cosimone has quit [Remote host closed the connection]
<zeta_0>
jared-w: i guess not, i'm not sure if i am missing some steps to get the wifi up and running
cosimone has joined #nixos
<jared-w>
let's see if I can dig up the page I used last time
<lordcirth>
Ariakenom, ah ok. I thought by displaymanager.default=none you meant disabling all login managers
knupfer has joined #nixos
drakonis1 has joined #nixos
MmeQuignon has joined #nixos
domogled has quit [Quit: domogled]
drakonis_ has quit [Ping timeout: 265 seconds]
<Ariakenom>
lordcirth: it looks strange to me ... but there is services.xserver.desktopManager.xterm.enable = true which is supposed to work instead?
drakonis has quit [Ping timeout: 276 seconds]
<dredozubov>
I'm trying to do patchPhase after installPhase and patch the headers in $out. During that I'm getting: "patch: **** Can't create temporary file Library/Frameworks/Security.framework/Headers/SecItem.h.oKnh4ui : Permission denied"
<dredozubov>
Does it mean I can't do this in $out? How do I do this instead?
philr has joined #nixos
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @saschagrunert to master « sonobuoy: 0.15.0 -> 0.16.1 (#70904) »: https://git.io/JeiZN
<worldofpeace>
dredozubov: umm, you how did you do patchPhase after installPhase? That phase runs way before anything has been compiled or installed. If you want to fix some headers that are installed you want postFixup.
<dredozubov>
doc says it can be rearranges, so I did ` phases = [ "configurePhase" "installPhase" "patchPhase" "fixupPhase" ];`
<lordcirth>
That seems a weird thing to do, though...
<dredozubov>
I'm trying to fix apple_sdk.frameworks, there are lots of weird thing there
<dredozubov>
things*
<dredozubov>
I want to patch some headers, just as worldofpeace pointed out
<adisbladis>
Oh, apple frameworks
<adisbladis>
Here be dragons :P
__Myst__ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<worldofpeace>
Yeah it's pretty much not a good idea to reorder, or even set `phases`. I believe there's an active to issue to deprecate that entirely.
<worldofpeace>
How about using the `dont$phase` attributes if what you need to do is disable a phase?
<worldofpeace>
patchPhase is for operating on the src.
tbenst has quit [Remote host closed the connection]
<worldofpeace>
also, how you defined phases appears to completely leave out unpackPhase. I bet there isn't an src unpacked in the working directory.
<dredozubov>
actually I don't need to unpack anything here, so it's not a concern
<dredozubov>
it looks like it's cherry-picking system headers from os x /Library/System to the nix-store
<dredozubov>
but I guess it was an incorrect approach anyway
<infinisil>
There's not really an alternative, but it's just really slow and cumbersome to integrate stuff with
sigmundv has quit [Ping timeout: 265 seconds]
<lovesegfault>
infinisil: I feel the same way
<lovesegfault>
where I'm like "this is not great, but it's worlds better than not having it"
<infinisil>
I have so many scripts related to managing my music
<lovesegfault>
I started working on a replacement
<infinisil>
Oh I've actually planned some stuff for a replacement too hehe
<infinisil>
Haven't started though
<infinisil>
lovesegfault: Wait let's go to #nixos-chat
<lovesegfault>
written in Rust and all, but I got stuck writing some really advanced thing to minimize data transfers when updating music metadata and then I got a job and never touched it :P