<bqv>
hm, in fact, i bet that would break half of nixpkgs, tbh
<bqv>
do not do that
<matthewcroughan_>
This is really annoying.
<matthewcroughan_>
I do not want Xorg.
<matthewcroughan_>
I want a Wayland only system.
<matthewcroughan_>
I don't even want the possibility of installing software that requires xorg
<bqv>
your desired outcome is that you don't have Xorg running, or that it isn't present on your system at all?
<matthewcroughan_>
I don't want it to be present on the system at all.
<bqv>
because the former is trivial, the latter is going to be an exercise in pain
<matthewcroughan_>
This is yet another thing that is easier on imperative distros then?
<bqv>
no, not at all
<bqv>
on arch any package could fetch an Xserver and use it, and many packages that don't even need X as dependencies have it as so
<nownpl>
even in arch, wayland has an (indirect) dependency on X for some video drivers ;)
<bqv>
lmao
<bqv>
exactly
<matthewcroughan_>
sway doesn't though hmm
<Raito_Bezarius>
matthewcroughan_: just do assert on xorg or something
<Raito_Bezarius>
but yeah, wayland might break
<bqv>
gentoo is about the closest you'll get for having a system where you can forcibly eject every trace of X, and even then it's not watertight. what you're asking for is going to basically be a futile whackamole
<Raito_Bezarius>
matthewcroughan_: sway depend on wayland
<Raito_Bezarius>
well, sway depend on a certain flavor of wayland protocol implementation*
<Raito_Bezarius>
(wlroots? i don't recall)
<bqv>
egh, wlroots
<bqv>
but yes
<Raito_Bezarius>
what's wrong with wlroots :p?
<Raito_Bezarius>
i'm not well-versed with wayland state
<nownpl>
also, im having a small problem while upgrading my system, it's failing to remove a path from "thunar-with-plugins", what could I do to troubleshoot it?
<matthewcroughan_>
- LightDM requires services.xserver.enable to be true
<matthewcroughan_>
:(
<nownpl>
I'll put it in a pastebin
<bqv>
i hate it personally, firstly because almost EVERY wayland compositor uses it, and i hate that monopoly, and secondly because the dev's a twat (imo)
<Raito_Bezarius>
you mean sircmpwn ? :p
<Raito_Bezarius>
or emersion ?
<bqv>
yes
<bqv>
no
<Raito_Bezarius>
alright
<qyliss>
he quit yesterday
<Raito_Bezarius>
because emersion just get full control of wlroots
<wrl>
bqv: as a counterpoint to the wlroots monoculture, i know now that everything i need works very well under wlroots compositors, so i know that if i switch to a different one, i won't have to bail because of, for example, xwayland funk
<bqv>
just, not for screensharing, of course
<matthewcroughan_>
internal server error bqv
thelounge812 has joined #nixos
<bqv>
wrl: i'll sacrifice functionality to avoid the further development of that monoculture
<nownpl>
yea, looks like removing "thunarPlugins" from the xfce options did the trick
maxdevjs has quit [Remote host closed the connection]
<qyliss>
GNOME and KDE are both huge and not wlroots
<nownpl>
but now it's recompiling the kernel again bwaaa
<qyliss>
I don't think there's really any danger of a wlroots monoculture given that
<supersandro2000>
I looking for reviews/merges on #100175 and #100191. Would really appreciate it. 😃
<bqv>
matthewcroughan_: did you type the url wrong?
<matthewcroughan_>
oh durr, multiline
<matthewcroughan_>
sorry
<bqv>
qyliss: this is true, but i'm thinking speficically of tiling WMs, where as far as i'm aware, every public compositor except swc uses wlroots
<bqv>
oh, and weston, i guess
maxdevjs has joined #nixos
maxdevjs has quit [Remote host closed the connection]
maxdevjs has joined #nixos
lazylambda has quit [Ping timeout: 260 seconds]
noudle has quit []
maxdevjs has quit [Max SendQ exceeded]
maxdevjs has joined #nixos
maxdevjs has quit [Max SendQ exceeded]
maxdevjs has joined #nixos
<bqv>
Raito_Bezarius: because I avoid PRing nixpkgs like the plague at this point, all package and config and display manager package and config are just in my repo, but it works, so feel free to copy them or just import it from my flake
<Raito_Bezarius>
thanks bqv
maxdevjs has quit [Max SendQ exceeded]
maxdevjs has joined #nixos
eidn has joined #nixos
maxdevjs has quit [Max SendQ exceeded]
CMCDragonkai1 has joined #nixos
<eidn>
help
<eidn>
commands
<eidn>
dir
<bqv>
we are not a terminal
maxdevjs has joined #nixos
<bqv>
HumanError: Wrong window
<nownpl>
hehe, ive written "ls -ll" at a chat window more than once
<omasanori[m]>
timokau: SageMath in nixpkgs is currently 8.9 and https://trac.sagemath.org/ticket/26625 was fixed in 8.8, so I guess it is safe to remove Maxima 5.41 nowadays. your opinions?
cole-h has joined #nixos
dbmikus has joined #nixos
<supersandro2000>
matthewcroughan_: getting a pool is not that hard
<supersandro2000>
ubuntu has their own too
<matthewcroughan_>
Does Arch?
<supersandro2000>
and the pool subdomains are not cnames. they are dynamically generated by the ntp dns server based on load IIRC
<supersandro2000>
and the pool is to monitor what causes the most stress in the network
<supersandro2000>
if suddenly 99% of the requests come from one subdomain it is easier to find the vendor and disable the pool
<supersandro2000>
to no overload or ping of death the entire pool or one particular server
<supersandro2000>
also never ever hardcode those domains into your machine or any piece of software
<cole-h>
matthewcroughan_: Did you figure out how to "rebuild and end up with a good home-manager setup"? Or do you still need my input?
<matthewcroughan_>
I got sidetracked. I still don't really fully understand what home-manager does and does not do.
<matthewcroughan_>
And what happens to my system configuration.nix when I do switch to home-manager.
<matthewcroughan_>
What I should and should not do in my system-wide config when I do get my home-manager set up.
<supersandro2000>
it basically allows users to have their own setup on a multi user system without modify the global config or using nix-shell all the time
dbmikus has quit [Ping timeout: 256 seconds]
<supersandro2000>
also it works great on other distributions
<cole-h>
It's allllllll up to you. There are ways to configure sway/i3 in NixOS modules, and in h-m modules.
<cole-h>
You decide how far removed or tied together your user and system config is.
<supersandro2000>
if you have a single user machine I would do as little as needed in NixOS and as much in nix
<supersandro2000>
advantage: if you are ever on something else you can easily transfer the config and it will most likely still work
<cole-h>
That's kinda the approach I take as well: manage as much stuff with h-m as possible, so if I ever need to, I can just switch to another Linux-based OS and have all my things (after installing Nix, of course)
<matthewcroughan_>
What does "on something else" mean?
<matthewcroughan_>
Do you mean another distribution?
<cole-h>
Ubuntu, Arch, Kali, Fedora, etc
<cole-h>
Yea
thelounge8127 has joined #nixos
<matthewcroughan_>
Nice.
<supersandro2000>
cole-h: or WSL
<cole-h>
Indeed
<matthewcroughan_>
So, for this, I need Home-Manager?
<cole-h>
You don't need
<cole-h>
But it makes it a whole lot easier
<matthewcroughan_>
So supersandro2000 is saying that if I want that experience to be better, I ought to use home-manager?
<supersandro2000>
it is like brew but portable
<matthewcroughan_>
Uh. It's not like brew. :D
<supersandro2000>
if you want your user setup to be somewhat protable
<matthewcroughan_>
I hate brew.
<matthewcroughan_>
Making brew packages is a PITA
<supersandro2000>
it is like brew but reproducible
<supersandro2000>
it is like brew but in good
<matthewcroughan_>
I don't use ruby, or macOS, so I'm lost with your analogy ;)
<supersandro2000>
I have my setup in a git so I can move it to any machine I use and with a quick git pull and home-manager switch everything is ready to be used
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JTwF9
<matthewcroughan_>
Ah, I think I see what you're saying.
h0m1 has quit [Ping timeout: 272 seconds]
<matthewcroughan_>
So you still need Nix on these machines right?
<supersandro2000>
brew is basically doing nix-env all day and breaking things
<matthewcroughan_>
WSL, macOS, you need nix to do this portable setup.
<supersandro2000>
yeah you do but I wrote a simple shell script to install that
<matthewcroughan_>
I thought you were talking about systemd-home or whatever that is
<supersandro2000>
that is something else and still kinda beta
thelounge812 has quit [Ping timeout: 260 seconds]
thelounge8127 is now known as thelounge812
<supersandro2000>
also it requires support in software
h0m1 has joined #nixos
<matthewcroughan_>
is nixos 20.03 to make fun of ubuntu?
<matthewcroughan_>
-0.01
<cole-h>
No?
<matthewcroughan_>
canonical is always .04
<cole-h>
It follows a similar yearly release schedule -- one in March, and one in September.
<cole-h>
While Canonical releases in April and Octoebr
<cole-h>
October*
<matthewcroughan_>
oh wtf, I never actually understood that was how the versions came about
<supersandro2000>
we should always count up the first digit and have 4 random others:
<supersandro2000>
185.0.0.123.3453
<cole-h>
:)
danderson has joined #nixos
oida has quit [Remote host closed the connection]
<matthewcroughan_>
cole-h: alright then, so, what happens if I have packages installed via configuration.nix AND in home-manager at the same time?
<cole-h>
Then you'll have them both installed :)
<matthewcroughan_>
But which one will I get when I type "htop"
oida has joined #nixos
<cole-h>
Depends on your PATH
<matthewcroughan_>
So, home-manager is like pip then?
<cole-h>
I don't use Python, so I can't confirm or deny,.
<matthewcroughan_>
or like brew, in the sense that the system has packages, and I as the user have packages?
<matthewcroughan_>
But only in that sense
<matthewcroughan_>
Lol, then it won't even matter what distribution I'm on..
<matthewcroughan_>
That's so screwed up. I love itr.
<cole-h>
I also don't use brew, so.... :P
<matthewcroughan_>
It's like how docker completely removes the need to care about what distribution you're on as long as you have runc and a recent enough kernel.
<supersandro2000>
matthewcroughan_: pip has one of the worst dependency resolving systems I know of
<matthewcroughan_>
Yes, so in that sense it's completely incomparable.
<cole-h>
I also don't use docker...
<cole-h>
:)
<matthewcroughan_>
Docker exists because people don't know what their dependencies are
<supersandro2000>
and docker requires linux
<matthewcroughan_>
Not really.
<supersandro2000>
or don't document them
<supersandro2000>
docker does not work on bsd
<matthewcroughan_>
Look at the way docker works on mac, amazing virtualisation lol
<supersandro2000>
-_-
<matthewcroughan_>
bsd can do the same thing with bhyve
<matthewcroughan_>
I think macOS literally uses bhyve to accomplish docker
<supersandro2000>
but executing docker in a vm is not really the goal
<matthewcroughan_>
I'd agree, but it's fun to see what people do :D
<matthewcroughan_>
Docker also kinda works on Android, which is Linux of course.
<{^_^}>
[nixpkgs] @veprbl merged pull request #101523 → [20.09] blugon: fix build on darwin → https://git.io/JTVtf
<{^_^}>
[nixpkgs] @veprbl pushed commit from @r-burns to release-20.09 « blugon: fix build on darwin »: https://git.io/JTwpY
servo has joined #nixos
<colemickens>
matthewcroughan_: Just some random tidbits that might help give you some context: A flake is just a way of organizing inputs and outputs for a Nix project. "configuration.nix" is not so special, it just happens that NIX_PATH points nixos-config at it by default, and by default nixos-rebuild will find `nixos-config` from NIX_PATH and then build that against `nixpkgs` from NIX_PATH to build a new generation. The "generation" is
<colemickens>
just another Nix build output. `nixos-rebuild` then "activates it". So, the same way that nixos-rebuild builds the system toplevel derivation, we can make one of our flake outputs be... that same toplevel derivation.
<colemickens>
for example: /run/current-system -> /nix/store/hxgzbfz3gsvliisgn4hmzj29d7mwgr4v-nixos-system-slynux-21.03.20201022.723d42f
<colemickens>
And if you ran `nix build github:colemickens/nixcfg#hosts.slynux` right now, you should get the same thing, in theory (I have local changes that aren't pushed so it won't, but you get the idea).
<matthewcroughan_>
And that only works when flakes are enabled?
<matthewcroughan_>
the ability to provide a github repo like that?
<colemickens>
matthewcroughan_: yes, that `nix buid ...` example is very flake specific.
<colemickens>
both the short-hand accessing of github, and the # syntax.
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<matthewcroughan_>
Flakes certainly make me feel a lot more uncertain about how my system's going to boot.
<matthewcroughan_>
just so many layers of indirection
<colemickens>
I wish I had kept my non-flakes -> flakes diff clean, it was a very small diff.
<colemickens>
I only had to change a single thing in my configurations, and write the flake.nix.
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<colemickens>
we need a good barebones nixos-config flake repo, with like a 6 line flake.nix and a vanilla stock configuration.nix to show that flakes is just a bit of sugar.
<matthewcroughan_>
Omg your nixcfg repo..
<colemickens>
my config is too complicated to see it
<infinisil>
Shouldn't this be the terminfo output too ^^?
<infinisil>
Calling `.out` on a derivation should be just the derivation itself imo
<infinisil>
I'm a bit salty because I just wanted to put `environment.systemPackages = [ pkgs.kitty.terminfo ]`, but apparently that installs the whole kitty
<{^_^}>
infinisil's karma got increased to 371.9999999999999
<matthewcroughan_>
.999999
<infinisil>
So close
* cole-h
adds to nixos notes file
<colemickens>
in the same way `nixos-rebuild switch --flake '.#'` will build my system (using flake.nix), produce _the same system closure_, and then again, make a new system profile, and activate the built system closure.
dbmikus has quit [Ping timeout: 240 seconds]
<matthewcroughan_>
colemickens: that makes sense for the pi, since you're just building a system image which you flash to it, you're not running nixos-rebuild on the pi
<{^_^}>
[nixpkgs] @veprbl pushed commit from @r-burns to release-20.09 « bacula: fix build on darwin (#101526) »: https://git.io/JTre3
<matthewcroughan_>
but what about your laptop?
<colemickens>
matthewcroughan_: no, this isn't flashing
<colemickens>
this is the same way I update all of my x86_64 machines as well, except the primary development one.
<colemickens>
the point is that it doesn't matter.
<colemickens>
it doesn't matter where it gets built.
<colemickens>
it's just another nix build product
<colemickens>
it's just a dir of files
<colemickens>
but one of the files is a script that can "activate" the system
<matthewcroughan_>
I'm not as advanced as you, so I don't have a builder.
<colemickens>
so I just build the system closure, wherever, copy it to the target, wherever, and then manually activate it (again, nixos-rebuild just automates this process)
<matthewcroughan_>
On my laptop, where would the flake go?
<matthewcroughan_>
/etc/nixos/flake.nix? Alongside my configuration.nix?
<colemickens>
you're missing a foundational piece
<matthewcroughan_>
I don't have a remote builder. So the files are local. I don't understand how to use the flake.nix instead of configuration.nix :P
<colemickens>
I really don't think this is going to click until you understand that nixos-rebuild is literally just doing a `nix build` and then calling two scripts.
<colemickens>
The remote builder has nothing to do with anything.
<matthewcroughan_>
I know, it's just where your files happen to be.
<colemickens>
The flake.nix is just a pointer to configuration.nix.
<matthewcroughan_>
And what do I have to do to use it?
<matthewcroughan_>
So today, I run nixos-rebuild switch.
<matthewcroughan_>
Tomorrow, I run nix build --flake ?
<colemickens>
(I really think the README I wrote wil explain all of this)
<colemickens>
that's also on the wiki page
<matthewcroughan_>
It doesn't explain it from the context of running all of this on your laptop.
<matthewcroughan_>
At all.
<colemickens>
nixos-rebuild switch --flake does indeed work
<matthewcroughan_>
.#mysystem is what?
<colemickens>
dude, clone that repo, run those commands
<matthewcroughan_>
I don't understand that.
<colemickens>
the entire point is htat its self contained
<matthewcroughan_>
There isn't even one of your command that references the flake.nix
<matthewcroughan_>
how is it getting it?
<colemickens>
Man, I can't keep doing this with you. Read the wiki page, read my README again, then come back. I'm not looking back here until a half hour.
waleee-cl has quit [Quit: Connection closed for inactivity]
<matthewcroughan_>
So. If I place nix.nixPath = /customdir/custom/configuration.nix
<matthewcroughan_>
then I run `nixos-rebuild switch`
<matthewcroughan_>
well, my configuration.nix isn't in there yet, so what happens?
<colemickens>
you'd want to do nixPath = [ "nixos-config=/customdir/..." ] but then the problem is that it's not going to know where to find nixpkgs from.
<colemickens>
you have to have both components
<colemickens>
Oh.
<colemickens>
If you do that? It will just error.
<matthewcroughan_>
So how am I able to move it at all?
<matthewcroughan_>
I have to copy configuration.nix temporarily and have it in both locations?
<colemickens>
That's one way I guess yeah.
<colemickens>
Or you update the nix, rebuild switch, then move it...
<colemickens>
then on the next switch it will be reading from the new location that you've moved it too.
<matthewcroughan_>
NixOS really ought to stop pretending it's oh-so-easy to use :P
<colemickens>
matthewcroughan_: that's another reason to use flakes though, its all just local to one dir... eliminates entire classes ofp roblems.
<matthewcroughan_>
It's easy in some ways, but these things are why regular users will never get it.
<matthewcroughan_>
It's a build system, like you say.
<colemickens>
all of that NIX_PATH stuff is basically eliminated by flakes though
<colemickens>
like, this entire conversation didn't need to be had, tbh
<colemickens>
(if it helped though, that's great ofc)
<matthewcroughan_>
It helped explain exactly how nix files get into nix-build
<matthewcroughan_>
which was a complete and utter mystery to me prior
<colemickens>
Cool
<colemickens>
Let me update that example README to explemify that point then
<matthewcroughan_>
You're a Github monster.
<matthewcroughan_>
One day I can be that productive.
<colemickens>
just an accident. if I don't string quote them, markdown things its a bash comment
<matthewcroughan_>
ah!
<matthewcroughan_>
colemickens: specified dir.?
<matthewcroughan_>
you mean current directory?
<matthewcroughan_>
This automatically loads from a flake.nix in the *current directory* right?
<matthewcroughan_>
it's not automatic if it's specified.
<colemickens>
matthewcroughan_: can you refresh now, I just pushed a change to see if it helps.
<matthewcroughan_>
Yeah that's a good way of exemplifying it.
<matthewcroughan_>
Perfect
<colemickens>
also see the "more tips" tip
<matthewcroughan_>
So what should go in the flake and what should remain in the configuration.nix?
<matthewcroughan_>
I see you've put ssh in the configuration.nix
<matthewcroughan_>
is "${modulesPath}/installer/scan/not-detected.nix" supposed to be in the configuration.nix ? Is this a leftover?
Supersonic112 has joined #nixos
<colemickens>
matthewcroughan_: I just wanted something in there to show how to access nixos modules inside configuration.nix, it's purely to be a naive example
<colemickens>
matthewcroughan_: like, that module literally just enables redistributable firmware, it's almost a no-op.
<colemickens>
matthewcroughan_: otherwise, that's really up to. I could've just straight up in-lined my configuration.nix in my flake.nix, but that wasn't helpful for hte example.
<colemickens>
matthewcroughan_: I'd suggest poking around a few other peoples' flakes.nix and kinda seeing how they organize things.
<matthewcroughan_>
Well cole-h is my favourite so far
<matthewcroughan_>
but again, if I try to do what he does, I don't understand how I could integrate this into my existing system
<colemickens>
I generally treat my nixos configs (almost) identically to pre-flakes, and then I just use `flakes.nix` to sort of manage the shape of my outputs, or to pull in other nix imports.
<matthewcroughan_>
right now, I run "nixos-rebuild switch" to apply my changes.
<colemickens>
matthewcroughan_: FWIW, I don't like the `my` thing cole-h has.
<cole-h>
>:(
<matthewcroughan_>
Oh yeah, I meant more his hosts layout
<colemickens>
matthewcroughan_: partly because it breaks compatibility with non-flakes `nixos-rebuild` which I think is exactly what you're touching on
<matthewcroughan_>
hosts/machine/user/modules
<colemickens>
cole-h: <3 I went down that path but then removed it for partially this reason, I wanted to be able to keep building my config with naive nix-build.
zupo has joined #nixos
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
<cole-h>
Hahaha it's all in good fun
<matthewcroughan_>
I said earlier, can't I just move flake.nix alongside configuration.nix?
<colemickens>
matthewcroughan_: hm I'm not sure what you mean, all of those individual nix files are surely imported somewhere
<matthewcroughan_>
so `nixos-rebuild --flake switch` should do it?
<colemickens>
matthewcroughan_: like, you can trace imports all the way from flake.nix to those indivdual module files.
<colemickens>
matthewcroughan_: I think in your case...
<colemickens>
matthewcroughan_: that yeah, if you just chuck flake.nix in /etc/nixos, things should mostly roll on just working for you.
<matthewcroughan_>
I have a fresh system, I just wanna start building my system correctly, from the latest version of nix.
<colemickens>
matthewcroughan_: that's kind of the thing, almost everyone (at least pre-flakes) had different ways of fetching/pinning nixpkgs and other inputs.
<matthewcroughan_>
I put off doing nix stuff for 6 months. Now I'm here again wanting to resume using nix. Now this flake stuff is around :P
<colemickens>
I guess I don't know how `nixos-rebuild` would give that error
<colemickens>
like, where is it getting `flake` from even? that's not even in the snippet
<matthewcroughan_>
you have ssh access to this machine in pm :P
Rusty1 has quit [Quit: WeeChat 2.3]
<colemickens>
um. hm.
<colemickens>
Interesting.
<matthewcroughan_>
>This program is EXPERIMENTAL and subject to change.
<matthewcroughan_>
LOL
<colemickens>
Is it possible you did these in piecemeal?
<colemickens>
Like, have you gotten any rebuild to apply?
<colemickens>
hm, yeah, many of them
<matthewcroughan_>
well everything was fine until I put the flake.nix in /etc/nixos
<matthewcroughan_>
mv it hehe
<colemickens>
but nixos-rebuild shouldn't be doing anything flake related without `--flake`.
<matthewcroughan_>
well, maybe it is
<colemickens>
give me a few more minuets to poke at this
<matthewcroughan_>
no problem
<colemickens>
idk
<colemickens>
I am really starting to wonder if you got an old version of nixUnstable that is incompatible with the nixos-rebuild you have.
<matthewcroughan_>
dependency hell!
<colemickens>
yeah, this is definitely a "playing with packages that end in "unstable"" problem, and being on an out-dated channel :(
<colemickens>
idk, I feel like we should get you fixed up, instead of wondering exactly what happened.
<matthewcroughan_>
haha
<matthewcroughan_>
Pimp My Nix
<matthewcroughan_>
I just want whatever the current correct workflow is for working with flakes, in my /etc/nixos/ folder
<matthewcroughan_>
Then I can just play with that for a bit, once I'm comfortable can figure out my own folder structure
<matthewcroughan_>
I mean, this should be it, right?
<colemickens>
yeah, somehow you have an unstable daemon and stable nix cli: nix (Nix) 2.3.7
<colemickens>
yeah, what you have looks okay, from what I can tell.
<colemickens>
like that's stable Nix, not unstable Nix.
<matthewcroughan_>
How did this happen though?
<matthewcroughan_>
oh durr, it's cos the snippet doesn't specify unstable, right?
<matthewcroughan_>
Ah, no it really does
<colemickens>
yeah, no, it seems like you have it in your configuration.nix too.
<matthewcroughan_>
I've been on unstable ever since cachix/wayland
<matthewcroughan_>
which is literally forever
<colemickens>
okay
<matthewcroughan_>
Okay, so that nix build command you just ran, what did it do exactly?
<colemickens>
I ran this: NIX_PATH='nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz' nix-shell -p nixUnstable
<matthewcroughan_>
it built the thing, and then did what with the output?
<colemickens>
to get into a nix-shell that I know is nixUnstable from nixos-unstable.
<colemickens>
BUT, see, this command proves to us that the daemon is not running the unstable version either. I suspect that you made the changes to your configuration.nix, but never managed to get it activated.
<matthewcroughan_>
what exactly did that do with its build output?
<matthewcroughan_>
moved it to the nix store?
<matthewcroughan_>
when we define things in nix files, unless it's an OS level change, it's just moving files to the nix store? That's the goal?
<colemickens>
well everything `nix build` builds is in the store
arahael1 has joined #nixos
<colemickens>
but that `nix build` command just built it and left it in the store. It didn't touch anything except some /nix/store/... .paths.
ericsagnes has quit [Ping timeout: 272 seconds]
<colemickens>
Nothing happens anywhere else until "activation" is performed.
<colemickens>
"activation" can be performed by nixos-rebuild switch, or it's performed at the end of initrd basically
<matthewcroughan_>
thinkpad t480 is going crazy :D
<matthewcroughan_>
fans whirring
<colemickens>
It is. I set NIX_PATH and then built <nixpkgs/nixos>
<matthewcroughan_>
Yeah I saw it all, I just don't know how many packages that entails.
<colemickens>
which will find nixpkgs, go in the nixos dir and then build a nixos system. It will pull nixos-config frm NIX_PATH so it will be for your system.
<colemickens>
So. This will make "result"
<colemickens>
which will be a symlink to a store path
<colemickens>
nixos-rebuild normally does (1) update system profile (2) run `result/bin/switch-to-configuration switch`
<colemickens>
we will do that by hand if the build works, and that will activate a good, built system, with nixUnstable.
<matthewcroughan_>
To avoid all of this, we could have just rebooted from a previous generation and tried again, right? :D
<colemickens>
HA
<colemickens>
yes
<matthewcroughan_>
nixos, fixing is harder than turning off and on again..
<matthewcroughan_>
AMD?
<matthewcroughan_>
Lol, I only have intel hd graphics
<colemickens>
one thing we should dois go ahead and upate `nixosConfiguration.mysystem` to be `nixosConfigurations.t480` just to line up with nix's expectations.
<colemickens>
looks like Mesa building? could be a quite long rebuild if it is
<matthewcroughan_>
ah crap, don't think I even needed that.
<colemickens>
you don't.
<matthewcroughan_>
I was just experimenting with it earlier
<colemickens>
you want to fix it, or want me to comment it out?
<matthewcroughan_>
go ahead and comment it out
<matthewcroughan_>
I mean, I just never figured out if iris was working properly
<colemickens>
it's on by default now :P
<colemickens>
hopefully you shouldn't have to do a thing
<matthewcroughan_>
._.
<colemickens>
haha
<colemickens>
yeah, it's only rebuilding a single thing now :)
endformationage has quit [Quit: WeeChat 2.9]
<matthewcroughan_>
nixos is like smoking crack
<matthewcroughan_>
< First time seeing a drv error
<colemickens>
so. <nixos/nixpkgs> has multiple build outputs, some of which don't make sense in your config
<colemickens>
we need to build the exact output attribute that is the "system" build.
<colemickens>
which, you learn after much time with nix is .... nix-build '<nixpkgs/nixos>' -A config.system.build.toplevel
<colemickens>
and there we go: /nix/store/brd9840ymj08r1nxzf6s0fl2dsf3sm51-nixos-system-t480-21.03pre-git
<colemickens>
built by hand, your very own system toplevel.
<matthewcroughan_>
Makes.. some.. sense.. ;D
<matthewcroughan_>
Only some
<matthewcroughan_>
I get that it's unique to my system, in some way, but not exactly what a "top level" is
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.css-parser: 1.0.4 -> 1.0.5 »: https://git.io/JTrTT
xd1le has quit [Remote host closed the connection]
<colemickens>
matthewcroughan_: nixos can build lots of outputs, they sort of get stashed under "config.system.build". One of those outputs might be a full VM "disk.img", or in our case, we just want "toplevel" which is hte "toplevle" nixos build output... the one can activate itself.
<colemickens>
-A is for the specific attribute you want to build.
<colemickens>
so, nix build <nixpkgs/nixos> starts building _everything_ whereas -A config.system.build.toplevel builds only the specific nixos output we care about
<colemickens>
it doesn't matter which file you import it in
<colemickens>
I'd just leave it there and just change <> => the fixed format
<colemickens>
and call it good
<matthewcroughan_>
I think I've fixed it then.
<matthewcroughan_>
yay, nay?
<colemickens>
cool, looks fine I think
<colemickens>
oh right, we have to add it to the args passed to your module
<colemickens>
when you add stuff to imports = [ ] ... they are imported with all of the same args that all of the nixos module are imported with
<colemickens>
including this special modulesPath arg, so let's add that....
<matthewcroughan_>
omg
<matthewcroughan_>
that ^ in the comment
<matthewcroughan_>
have never thought to do that before
<matthewcroughan_>
you are a compiler
<colemickens>
ha
<colemickens>
crap
<colemickens>
I was hoping your config would avoid this.
servo has quit [Ping timeout: 258 seconds]
<matthewcroughan_>
You've discovered your own mess :P
<colemickens>
See, flakes requires you to be pure.
<colemickens>
And the way you're importing here, is unpinned, and impure.
<matthewcroughan_>
unpinned means not defining versions?
<colemickens>
ya
<matthewcroughan_>
I'm not precious about any of this config btw
<matthewcroughan_>
as long as it boots
<matthewcroughan_>
and runs sway
<colemickens>
three options: (1) remove nixpkgs-wayland (2) pin to specific version [and keep updating] (3) use Flakes to pull in the latest.
cole-h has quit [Ping timeout: 260 seconds]
<colemickens>
If you do (3), you will lose the ability to build your system config without flakes though.
<colemickens>
but I mean, you've come this far.
<matthewcroughan_>
Well I'd definitely like latest
<scott>
is it possible to make a systemd.user.services.<name> entry start with the graphical session only for a specific user? i don't strictly need this, but it would make sense to do
<matthewcroughan_>
I like being on the latest software, flakes are not antithetical to that arethey?
<colemickens>
no, it's just a bit more syntax to cover
<colemickens>
I think flakes are essential for making this process better, actually. It eliminates the need to keep bumping versions by hand, while remaining pure + lockable.
<matthewcroughan_>
instead of nixos-rebuild switch
<colemickens>
yeah. you can just comment out the overlay usage for now and it will probably work
<colemickens>
matthewcroughan_: yes `nixos-rebuild switch --flake /path/to/flakedir` will work, but ONLY because I made the hostname match in the flake.nix.
<{^_^}>
[nixpkgs] @7c6f434c opened pull request #101632 → pkgs.nyxt: init at 2020-10-23 → https://git.io/JTrZp
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « coreutils: fix aarch64 build by upstream patch »: https://git.io/JTrZh
<MichaelRaskin>
bqv: yes, I know your aversion and I assume I understand your reasons (and agree with them). Fortunately I got lucky to find NixOS early enough to bypass the most annoying step. Thanks for a git am'able paste, pushed a PR keeping you as the author of the commit after a minor typo fix.
ManiacOfMadness has joined #nixos
<Akira[m]>
any possible issue that causes my VMs to be slow as hell? actually, that isn't that bad, but what pains me the most is that the host system becomes unusable too
<Akira[m]>
I've got a mediocre machine, but I wouldn't say it's terrible
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTrn7
<Akira[m]>
i5-6200U, 8 gb ram, VT enabled in bios
<Akira[m]>
virt-manager says kvm is enabled
<ar>
i wouldn't expect much out of vm perf on a dualcore low voltage laptop chip from a few years ago
<Akira[m]>
just running ubuntu would be enough >_>
<ar>
source: my current laptop is only ever so slightly better (i7-6500U)
<Akira[m]>
how much ram should I give
ardumont has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<ar>
depends on what else you're using on this laptop
<Akira[m]>
nothing
<Akira[m]>
but DE is plasma atm
dbmikus has joined #nixos
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « open-vm-tools: 11.1.0 -> 11.1.5 »: https://git.io/JTrWN
<{^_^}>
[nixpkgs] @vcunat merged pull request #92704 → gcc: Fix manpage symlinks when architecture tuples are prefixed to the file name → https://git.io/JJqCb
<whald>
hmm, i have a problem with flakes and git-lfs enabled repos. thing is, the command nix build 'git+ssh://git@my-gitlab-instance/foo/foo.git' can acutally produce different results depending on whether the system it's executed on has git-lfs installed or not.
<whald>
i think the root cause is that "git" is aware of "git-lfs" and will use it when it's on $PATH and nix does not care.
<{^_^}>
[nixpkgs] @vcunat pushed commit from @avdv to release-20.09 « fritzing: 0.9.3b -> 0.9.4 »: https://git.io/JTrRc
<whald>
one could argue that nix should have a dependency on git (and git-lfs?) and not just use what's in the user's environment, which would at least fix the "nix build" issue. for hydra it's a bit more involved because of it's VCS cache system.
<whald>
anyway, nix uses git and should do so properly which means either git-lfs works always or is not supported at all which would mean it should error out when a repo using lfs is detected. right?
berberman has joined #nixos
berberman_ has quit [Ping timeout: 260 seconds]
nizhm has quit [Remote host closed the connection]
<akoppela>
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
<akoppela>
this is what I get
<akoppela>
do I need to run the script with sudo?
<akoppela>
I'm on fresh machine, just unboxed
nizhm has joined #nixos
dbmikus has joined #nixos
<tilpner>
akoppela: Looks like curl gets stuck? Try saving the install script manually, then executing it instead of substituting it into your command
<aaabbbbbbbbbb>
Hi, when I plug in my external keyword and run xev to obtain all keystrokes pressed, the ESC is not functioning, nothing is shown in xev at all (when pressing ESC) key. Any ideas how to debug this?
<akoppela>
I created Nix Store manually and script executed succe
<akoppela>
I created Nix Store manually and script executed successfully
akoppela has quit [Remote host closed the connection]
<vldn>
hi, someone uses dwm on nixos? how can i patch the configFile via my configuration.nix (i patch dwm with nixpkgs.config.dwm.patches [(builtins.fetchurl http....)]; but conf = built.... doesn't work :(
<tyrion-mx>
Hello, I am trying to install steam but I get `unable to start any build; either increase '--max-jobs' or enable remote builds`. maxJobs is set to 0 but remote builds are enabled. I can successfully build other packages. What could it be? I am thinking maybe steam has some `requiredSystemFeatures` but I do not know how to verify this
<Raito_Bezarius>
I didn't solve it atm because I didn't think a lot about the easiest way to solve it without patching the software for example
<hodapp>
is there a good Nixian way of getting Rust's stdlib source (so that I can point things like IntelliJ IDEA via intellij-rust to it)? I've seen people just recommend rustup
NightA is now known as night
ManiacOfMadness has quit [Ping timeout: 240 seconds]
<hodapp>
as it stands now, intellij-rust can build just fine and do most interactions, but things like highlighting and completion are all borked because it can't find the stdlib
<Raito_Bezarius>
pinpox: I mean like, maybe an easy way to solve it is to inject them using preStart or something like this
<Raito_Bezarius>
As I'm using NixOps, I could also trivially solve by using deployment.keys
<pinpox>
Oh I see. I'm not using nixopts (yet). Is it possible to use the sourcehut packages without the modules and just place the config manually in the correct location?
<Raito_Bezarius>
pinpox: it's possible to use them like you said, you just have to rewrite the module part yourself or handle the service management
<Raito_Bezarius>
(I realized I didn't push sourcehut/* ahem)
aaabbbbbbbbbb has joined #nixos
<pinpox>
I was thinking about just creating some systemd services in my configuration.nix. Not sure if I have understood everything correctly, but that should be enought to start/stop/manage the sourchut stuff right?
<Raito_Bezarius>
Definitely, pinpox
<Raito_Bezarius>
But, note that some part of sr.ht have 2 or 3 services
<pinpox>
I'll do that. My TODO list definitely includes looking at NixOps and NUR, but I want to start simple and solve this first in a basic way
<Raito_Bezarius>
And you have ~6-7 parts, so it makes ~ 12 - 14 systemd services
<pinpox>
Raito_Bezarius: Yeah, I guess the config will be "verbose" but not "complicated" if that makes any sense
<Raito_Bezarius>
Exact
<Raito_Bezarius>
Most of the stuff is 'boring'
<pinpox>
Thanks Raito_Bezarius! I'll give it a try and report back.
<Raito_Bezarius>
except for builds.sr.ht which requires to think more about it
<pinpox>
When it works, I'll try to optimize
<pinpox>
I'd be happy if at least the account thing and git works
<Raito_Bezarius>
:)
<pinpox>
Btw. Are there systemd files from sourcehut itself that I can just "translate" to my configuration.nix?
<pinpox>
I couldn't find them in the sourchut sourcecode repo
<{^_^}>
[nixpkgs] @siraben opened pull request #101649 → treewide: remove periods from end of package descriptions → https://git.io/JTryZ
<pinpox>
( ˘ ³˘)♥
<pinpox>
Great. I think I can figure it out from there
<Raito_Bezarius>
:)
meh` has quit [Ping timeout: 260 seconds]
<pinpox>
Shouldn't be gunicorn a dependency of that package?>
meh` has joined #nixos
<Raito_Bezarius>
well, you can replace gunicorn by whatever WSGI runner you want
<Raito_Bezarius>
uwsgi, etc.
<Spirit__>
Anyone know how to fix the "Could not save properties. You do not have sufficient acces to write to /home/testuser/.config/autostart/anyapplication.desktop" added through systemsettings5? I've tried chmod and chowning the shit outta it, but can't get it to work.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pinpox>
I see. Didn't know what gunicorn even is, not a python dev myself
<pinpox>
guess I'll just use that one if debian does
<pinpox>
Oh second thinking.. maybe I should use nginx as I'm already using it
zupo has joined #nixos
<justanotheruser>
whats the canonical way to get DBUS_SESSION_BUS_ADDRESS in a systemd services script?
jayok has quit [Ping timeout: 240 seconds]
fendse has joined #nixos
whald has quit [Quit: Leaving]
<Spirit__>
Anyone know why a fresh install leaves you without write access to /home/testuser/.config/autostart contents? Even when you give yourself write permission to it, and the areas the files within point to?
<sphalerite>
Spirit__: they're symlinks into the nix store, which can't be modified. I'm not sure exactly what the right solution here is, but it may be copying the desktop file instead of symlinking it
philr has quit [Ping timeout: 264 seconds]
<sphalerite>
Spirit__: that said, that may make it break on a future GC…
jabster28 has quit [Client Quit]
servox has quit [Ping timeout: 246 seconds]
<pumpy>
anyone using xrdp/xfreerdp and know how to auth using a local key file? all xrdp would have to do is check ~/.ssh/authorized_keys from the /u:
<Spirit__>
sphalerite, thanks I'll try that. Though it would be nice to modify the kde package responsible for autostart in systemsettings5
<{^_^}>
[nixpkgs] @bhipple merged pull request #101649 → treewide: remove periods from end of package descriptions (part 2) → https://git.io/JTryZ
<pumpy>
is there a short linux command that'll take the first x of a string? what i wanna do is generate a hash from the contents of a file but limit the length to around 8 characters
<tilpner>
That'd be head -c8
corpix has joined #nixos
<{^_^}>
[nixpkgs] @jevankovich opened pull request #101652 → nixos/samba: fix race between network-online and winbindd → https://git.io/JTr7h
<pumpy>
tilpner any way to get same calculation from a string too?
<pumpy>
doesn't head just get content from the file? i can already cat it. what i need is the linux hashing command to generate around 8 chars from a string or file
<__monty__>
pumpy: You can pipe the string to head.
<Raito_Bezarius>
pinpox: NGINX does not provide what you need to run WSGI
zakame has quit [Remote host closed the connection]
<Ke>
you can just pipe stuff to head like cat file | head is similar to head file
<pumpy>
why's head relevant?
<__monty__>
Because you want the first 8 characters.
<{^_^}>
[nixpkgs] @bhipple pushed commit from @Yumasi to master « boxfort: unstable-2019-09-19 -> unstable-2019-10-09 »: https://git.io/JTrF8
<MichaelRaskin>
bqv: does nyxt on master work for you? I launched it, it seems to be able to load something, but I am not even sure how to search in page, so yeah
<bqv>
MichaelRaskin: I've only just woken up, was about to have a check, but if it launches without errors I can't imagine any issues
<MichaelRaskin>
Well, everything always complains about something!
<bqv>
Fwiw, try ctrl+space for menu, or ctrl+l for url
<MichaelRaskin>
It looks like warnings, of course
<MichaelRaskin>
Also, even without wrapping it launches
<bqv>
MichaelRaskin: can canfirm, it works as expected. The gtk warnings aren't too relevant, I see them often
<MichaelRaskin>
I also got some JS ones in some situations
<MichaelRaskin>
Does sound work? That should be relevant to wrapping
<bqv>
Yep
<MichaelRaskin>
Great
<infinisil>
Idea: Let's have /lib64/ld-linux-x86-64.so.2 on NixOS, but have it just be a stub that errors with "Binary <path> is not patched to work on NixOS, do ... to fix it"
<infinisil>
This would be much better than the weird "File not found" error you get otherwise
<MichaelRaskin>
Let's see how much of Quicklisp top 100 we are still missing…
<omasanori[m]>
infinisil: interesting. I had imagined similar sandbox but for file paths so executing host /bin/sh would be detected.
m4ts has joined #nixos
<pumpy>
supersandro2000++
<{^_^}>
supersandro2000's karma got increased to 2
<supersandro2000>
Would it be okay to have some template in python-modules to generate 48 modules?
m4tsa_ has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
I would probably inherit from import or something…
<supersandro2000>
I want to upstream it and each python package should have its own default.nix
<MichaelRaskin>
I think if template is upstreamable at all, it has to be in its own file
<supersandro2000>
it is that already. I plan to let it live next to the update.sh to easily regenerate the default.nix for all python packages
<supersandro2000>
I don't really want to introduce a new function just to build those packages
<supersandro2000>
and I can't abstract them away and make them only available to the final package because some other packages only depend on a subset and not all
<supersandro2000>
and importing 50 packages if you only need 3 is also not nice
<MichaelRaskin>
Sounds good
<supersandro2000>
that was my plan.
<supersandro2000>
currently trying esh but I am open to anything
<supersandro2000>
changing the description or something shouldn't be a pain
m4tsa_ has joined #nixos
<omasanori[m]>
so, by refactoring Maxima's derivatives, I have reduced their closure size by 15~23% with no functional changes. I will make a PR next week or such
<__monty__>
pumpy: My md5 has a -q quiet option to only print the checksum. Check man md5 for something similar?
m4ts has quit [Ping timeout: 264 seconds]
m4ts has joined #nixos
<pumpy>
__monty__++
<{^_^}>
__monty__'s karma got increased to 21
<pumpy>
i missed that ty!
<omasanori[m]>
derivation, not derivative
m4tsa_ has quit [Ping timeout: 272 seconds]
nilsirl[m] has quit [Quit: Idle for 30+ days]
abbec has quit [Quit: Idle for 30+ days]
juan[m] has quit [Quit: Idle for 30+ days]
ialhamad[m] has quit [Quit: Idle for 30+ days]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTrjS
rajivr has quit [Quit: Connection closed for inactivity]
zakame has joined #nixos
<supersandro2000>
Is there a way I can replace every nix-shell with cached-nix-shell?
<MichaelRaskin>
lorry?
<supersandro2000>
looking into that
<supersandro2000>
but I am more after something like: I ran this random script and it is slow
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Zopieux opened pull request #101669 → nxdomain: init at 1.0.0 → https://git.io/JToIS
dbmikus has joined #nixos
corpix has joined #nixos
<pinpox>
I've set up postgresql in my configuratin.nix and granted access to a user for some DBs. When running "psql" as that user I get an error though: "psql: FATAL: role "sourcehut" does not exist"
<pinpox>
Would anyone take a look at the nix snipped?
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @jonafato to release-20.09 « keepassxc: 2.6.1 -> 2.6.2 »: https://git.io/JToLM
sangoma has joined #nixos
zakame has joined #nixos
<{^_^}>
[nixpkgs] @Zopieux opened pull request #101672 → python3Packages.pycmarkgfm: init at v1.0.1 → https://git.io/JToLA
<pinpox>
nevermind, I think I got it
<{^_^}>
[nixpkgs] @rnhmjoj pushed to release-20.03 « arx-libertatis: remove old override »: https://git.io/JTotL
<cole-h>
How did you get it? :)
<zopieux>
hi supersandro2000, quick question: are you automatically leaving PR comments such as "successfully builds on Darwin" or do you do that manually when you identify macOS testing missing?
<supersandro2000>
Leaving them automatically would be pointless. I build some PRs on OSX and just report if that worked or not.
<supersandro2000>
AFAIK most tools only test linux amd64
<zopieux>
ok thanks for the quick comments!
<supersandro2000>
if there is a better way to do so please let me know
<MichaelRaskin>
A set of users which is roughly committers can trigger ofborg builds on Darwin too
<zopieux>
I was actually wondering how to prevent overriding the entire checkPhase, thanks for the pytestCheckHook pointer
<MichaelRaskin>
Automatically conditional on an automatic builds could still be useful!
<MichaelRaskin>
But risky to operate
<supersandro2000>
MichaelRaskin: but they are not always triggered and I hope it is useful feedback for the author
alp has quit [Ping timeout: 272 seconds]
<supersandro2000>
I don't have the compute power to do that for every PR
<MichaelRaskin>
Yeah, might need manual intervention
<supersandro2000>
zopieux: no problemo
<supersandro2000>
also builds on osx
<evanjs>
Sooooo nodePackages generate script is failing to resolve some deps, presumably due to version strings having "beta" or etc in them (not sure, on mobile atm) -- anybody have an idea if there's another reason this isn't resolving? https://www.npmjs.com/package/vue-loader-v16
<gianarb1>
Ciao! I am new to nix and I am experimenting with Go and OpenCV, I posted this question few days ago but in the meantime I didn't find a good fix, https://tmpfiles.org/dl/91322/opencvtest.zip can somebody have a look? I made an example here
<supersandro2000>
Can you upload that in plain text?
<gianarb1>
Sure supersandro2000 , there are a couple of files so let me create a gh repo
<supersandro2000>
gianarb1: but what is your question? didn't catch it the last days
<gianarb1>
I am able to run this example using `brew` on mac os, but I get the error in the readme when I try with nix
<gianarb1>
so probably the brew formula does something different compared with the nix derivation but I am not sure how to fix it
<supersandro2000>
gianarb1: did you check that you are using the same version of opencv? maybe brew is using 3
<evanjs>
Mic92: any idea why generate.sh/node2nix is failing on vue-loader-v16/if it's even supposed to work on beta versions and etc?
<supersandro2000>
gianarb1: I think there is some version mismatch but I don't know more. I would compare the version between brew and see if there is a major or minor update which breaks things
<gianarb1>
yep! brew installs 4.5.0 drakonis , so probably that's what it is, should I open a PR to update opencv from 4.3.0 to 4.5.0 or is it not required? :)
<drakonis>
its only available for that particular system mind you
<zopieux>
is there a way to find the relevant derivation 'identifier' for, say, a give systemd service in a nixos configuration tree? Ideally I'd like to avoid nix-build'ing the entire -A system, and would rather build just a given 'config.systemd.services.<foo>' to see if it contains what I expect
<zopieux>
but I cannot find the relevant name to pass to nix-build
<grfn>
is there some way to get the behavior of `nix-instantiate --eval` while also building any derivations that result in store paths?
<pinpox>
How can I run a python app installed declaratively so that it find's other modules/dependencies?
<pinpox>
I'm trying gunicorn app.py -b 127.0.0.1:5000 and get "No module named flask"
<grfn>
so eg right now if I run `nix-instantiate --eval --strict --json -E '{hello = (import <nixpkgs> {}).hello;}'` I get `{"hello":"/nix/store/w9yy7v61ipb5rx6i35zq1mvc2iqfmps1-hello-2.10"}` but that store path isn't actually built
<grfn>
is there a way to guarantee that it is?
<matthewcroughan_>
drakonis: Can you provide me with an explanation for what flakes are for?
<zopieux>
pinpox, did you include pythonPackages.flask in the env?
<matthewcroughan_>
The wiki says flakes "Flakes allow you to specify your code's dependencies"
<pinpox>
zopieux: no, I thought that should be a dependecie that gets installed automtically
<matthewcroughan_>
This is very clearly not all that flakes are, they are more .
<matthewcroughan_>
So, what more are they?
<grfn>
flaky
gianarb1 has quit [Ping timeout: 244 seconds]
<grfn>
<.<
<matthewcroughan_>
-_-
<zopieux>
pinpox, I don't know what gunicorn app you're talking about, but it should pass flask as propagatedBuildInputs, otherwise it's a buggy derivation
<zopieux>
then your sourcehut pythonPackage derivation must include flask as a propagatedBuildInput
<zopieux>
the systemd config is part of the *nixos module*, not the package
<pinpox>
zopieux: I'm using the official package just to install it and wanted to write a service definition in my nixos configuration file. Is that wrong?
<Unode>
supersandro2000: for the samtools error I suspect we need to merge htslib first.
<supersandro2000>
Unode: 👍 that is still building locally. Maybe add that to the PR so others know
<Unode>
supersandro2000: added. Thanks! I didn't see the failure before since I had htslib updated on my git tree.
<Unode>
will likely include both in future PRs as they should be kept in sync.
<bqv>
matthewcroughan_: for the record, i don't like nixos-rebuild either, which is why i quite intentionally make sure i don't use it. i can explain the gist of what it does, if you like
<bqv>
otherwise, it's been an hour, i'm sufficiently inebriated, what do you need to know
<matthewcroughan_>
I'm taking the tour of go at the moment.
<matthewcroughan_>
Can you tell me what my issue is?
<matthewcroughan_>
I created the same stupid solution twice? Top is my solution, bottom is actual solution, middle is output.
<bqv>
looks like it should work, to me
<bqv>
in both cases
<matthewcroughan_>
yes, they both produce the same exact output.
<Unode>
matthewcroughan_: don't see a problem either the solutions are equivalent
<bqv>
what's the problem?
<matthewcroughan_>
The problem is that I created something that is stupid.
<bqv>
we cannot help you with that :)
<Unode>
I don't see what the issue is there either :)
<matthewcroughan_>
"Hello " instead of "Hello"
<matthewcroughan_>
Removing a var, instead of adding + " "
<Unode>
well... still works. Wouldn't call it stupid
<matthewcroughan_>
bqv: My desire is to build my system, my laptop, on itself.
<matthewcroughan_>
The only nixos system I have today is my laptop here.
<cole-h>
"If it's stupid but it works, it isn't stupid."
<matthewcroughan_>
/etc/nixos is my directory of choice. Everything I do with my system will be in there, that's my limitation for now.
<bqv>
cole-h: can you apply that to javascript?
<MichaelRaskin>
It doesn't work?
<MichaelRaskin>
I mean, next release of Chromium will break it . Always does
Somelauw has joined #nixos
<bqv>
matthewcroughan_: flakes don't depend on a source directory
<matthewcroughan_>
I know. I'm just wondering what command I should run in place of nixos-rebuild
<bqv>
do you have a flake to test with
<Somelauw>
Is anyone using nixGLIntel. I'm having trouble getting sound to work with nixGLIntel+qutebrowser and I'm wondering if this might be because of nixGLIntel
<cole-h>
nixos-rebuild works with flakes, so why would you want to replace it?
<bqv>
if you do, and you've enabled the things you need to in nix.conf, you should be able to run `nix build --flake '/path/to/flake#nixosConfigurations.yourhostname.config.system.build.toplevel'
<cole-h>
^ That works too
<bqv>
that will use nix to build the "system derivation"
<cole-h>
I don't think you need the `--flake` part, though :thinking:
<bqv>
and will put the result in .. well, 'result', in your current directory
dbmikus has joined #nixos
<energizer>
can i build nixos for raspi on a desktop machine? https://bpa.st/XIIA
<evalexpr>
but he answered the exact question you asked. I don't see an issue with the answer - you asked why specifically you can use a+b+c if they aren't defined - nothing to do with what the function does
<energizer>
clever: so the idea is: download that pre-built image, dd it onto the sd card, boot the raspi from it, somehow get my expression onto the raspi, nixos-rebuild using that expression on the raspi. yes?
<{^_^}>
[nixos-homepage] @garbas pushed to fix-627 « Removing the number in Nix download section »: https://git.io/JTolm
<energizer>
clever: nix-build '<nixpkgs/nixos/release.nix>' -A sd_image_raspberrypi4.aarch64-linux error: a 'aarch64-linux' with features {} is required to build '/nix/store/qg8icljpfqsxdchcqry31rvk681nfa8v-append-initrd-secrets.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
<{^_^}>
[nixos-homepage] @garbas opened pull request #631 → Removing the number in Nix download section → https://git.io/JTolG
<energizer>
20.03
<clever>
energizer: you need to install nix on a pi4, with a 64bit kernel, and add it as a build machine
<clever>
raspbian can be used for that
<energizer>
oh
gianarb1 has joined #nixos
<energizer>
why isn't that thing already built?
<clever>
not sure
<energizer>
do you have that file?
slack1256 has quit [Remote host closed the connection]
<ornxka>
i heard people saying it was broken so i was wondering if anybody was on it currently and had it all working
__monty__ has quit [Quit: leaving]
<ornxka>
<samueldr> the issue, IIRC, is that at that point in time, a new jobset (for a new release) failed to build *everything*, which mailed *everyone* <- well surely if ever there was a problem that required everyone's attention, that would be it
<samueldr>
the condition was specific that it was _the first eval_
<samueldr>
yeah, I was just looking at the e-mails and my recollection is wrong
<MichaelRaskin>
It just tried to understand what conditions lead to the whatever builds were failing
<MichaelRaskin>
I am not sure what exactly was the history it tried to handle, but basically it decided that more or less everyone had got _some_ changes in since whatever it declare the reference point
<MichaelRaskin>
And for every failing build every recent (months) contributor got an email
<MichaelRaskin>
Apparently
<samueldr>
until it was stopped :)
<samueldr>
either gmail is lying (possible) or I got exactly one page worth (50)
<MichaelRaskin>
I think it managed to push out a large share of its queue. Definitely double-digit percentage, maybe a third if not half
<samueldr>
yep
<MichaelRaskin>
You might have got one page worth because GMail decided to instadrop the rest
<multun>
kind of, it describes how to get the inputs, and how to transform the inputs to get the outputs. the outputs are packages, aka compiled projects
fendor has quit [Remote host closed the connection]
<dstzd>
are we sure 20.09 is happening or will it be 20.10?
aaabbbbbbbbbb has quit [Ping timeout: 240 seconds]
<rawtaz>
ah. was just wondering why it'd be a no-go on 20.9 and instead 20.19 would be the thing. i now realize it's about the month number though? but then again september is passed a long time ago, so how does that add up?
<multun>
it's the month when the release process was started :)
<multun>
it's be a huge pain to rename the release if a new month starts and the release process didn't end yet
<rawtaz>
makes sense
lord| has joined #nixos
<jkt>
I'm on unstable, and after an update and reboot I'm getting a ton of messages like this, libGL error: MESA-LOADER: failed to open radeonsi (search paths /run/opengl-driver/lib/dri)
<jkt>
also, I started getting "cmake: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_fatal_printf, version GLIBC_PRIVATE", but that was apparently a version mismatch between a nix-shell environment and the rest of the system
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JToE2