abathur has quit [Read error: Connection reset by peer]
<bqv[m]>
if it doesn't do anything, why do you need it?
exfalso_ has quit [Ping timeout: 255 seconds]
abathur has joined #nixos
<clever>
lovesegfault: buildEnv
<clever>
lovesegfault: what exactly are you trying to do?
blaggacao has quit [Ping timeout: 258 seconds]
<lovesegfault>
clever: I have a shell.nix, and I want an attr in my `default.nix` that just has all the buildInputs in my shell.nix but doesn't actually do anything with them
<lovesegfault>
i.e. I want a hack to `nix-build shell.nix`
<lovesegfault>
infinisil: I am very confused by that file :P
<lovesegfault>
what's happening there?
<lovesegfault>
Are you just overriding the builder?
CMCDragonkai_ has joined #nixos
<CMCDragonkai_>
hi
<CMCDragonkai_>
just wondering
<CMCDragonkai_>
what would happen if you import 2 modules
<CMCDragonkai_>
that both have the same name and same options?
<infinisil>
lovesegfault: Basically: Creates a derivation that when built results in a result that depends on all build dependencies
<CMCDragonkai_>
does the later one override the first one?
<lovesegfault>
CMCDragonkai_: I think they get merged
<infinisil>
lovesegfault: `env` contains the environment, therefore all strings of the dependencies. By writing that to $out it makes those dependencies runtime dependencies of the result
<lovesegfault>
and if there are inconsistencies it complains
<CMCDragonkai_>
but i actually want to use my own module
<CMCDragonkai_>
like there's an existing module in nixos..., if i import my module which has the same options/config
<CMCDragonkai_>
will there be errors
<lovesegfault>
infinisil: why does it reference nix/config.nix?
<infinisil>
lovesegfault: And the whole orig business is to be able to set derivation attributes without removing original dependencies
<infinisil>
nix/config.nix contains a very basic shell you can use as a derivation builder
erasmas has joined #nixos
<infinisil>
So no need for a bash or so
<infinisil>
Which could contain many more dependencies itself
<infinisil>
(and which nixpkgs version should it be gotten from)
<lovesegfault>
I don't want to rely on NIX_PATH being set
m0rphism has quit [Ping timeout: 265 seconds]
<infinisil>
That's not reliant on NIX_PATH
<lovesegfault>
Oh, nice
<infinisil>
nix/config.nix is kind of like a builtin NIX_PATH value
<lovesegfault>
Nice
<lovesegfault>
infinisil: it works!
m0rphism1 has quit [Ping timeout: 268 seconds]
blaggacao has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #81844 → gcc: place cross-compiled target libraries in lib output → https://git.io/JvVdV
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to staging: https://git.io/JvVhP
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #58606 → [WIP] gcc: put target-specific libs in lib output → https://git.io/fjk2t
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvVh1
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #81781 → gcc: Move target libraries to `lib` output when building a cross compiler → https://git.io/JvV3m
ottidmes has quit [Quit: WeeChat 2.7.1]
kvda has joined #nixos
growpotkin has joined #nixos
<lovesegfault>
When you build a nixos system you get an outlink with an `activate` bin in the root, as well as `bin/switch-to-configuration. What's the difference?
<lovesegfault>
cc. clever
kvda has quit [Client Quit]
<bqv[m]>
ok, anyone here familiar with the yarn2nix tool?
<bqv[m]>
the package i'm trying to build has a github dependency
<bqv[m]>
that's what's causing the hash mismatch
<bqv[m]>
can i specify that one manually?
<bqv[m]>
as part of mkYarnPackage?
flodeskum has quit [Ping timeout: 260 seconds]
bhipple has quit [Ping timeout: 258 seconds]
<clever>
lovesegfault: switch-to-configuration takes most of the args nixos-rebuild takes, including test, switch, boot
kvda has joined #nixos
<clever>
lovesegfault: so you can run `switch-to-configuration boot` to make it the default at next boot
<clever>
lovesegfault: test/switch, will update several symlinks, restart systemd services, and run activate
<lovesegfault>
Ah, I see
<clever>
lovesegfault: and activate does misc stuff that has to be done on boot or switch
<lovesegfault>
so I want switch-to-configuration
zeta_0 has joined #nixos
<lovesegfault>
Also: if I switch-to-configuration with a pinned nixpkgs used to build the system, will that be reflected in the system's NIX_PATH?
<clever>
lovesegfault: nope
<lovesegfault>
goddammit
<clever>
lovesegfault: $NIX_PATH will respect the pre-existing channels, by default
<lovesegfault>
clever: does all this pinning work make using NixOps easier?
<clever>
lovesegfault: nixops itself still uses <nixpkgs> to get the nixos that is going to eval your config
<zeta_0>
i don't understand the error, elm.json has the correct elm version but for some reason it says that i am already using version 0.19.0, i don't even have elm installed, i only have elm2nix installed, this is strange?
<lovesegfault>
clever: ;-;
<clever>
# nixops modify -d house deployments/house.nix -I nixpkgs=https://github.com/nixos/nixpkgs/archive/dae9cf6106d.tar.gz
butterthebuddha has joined #nixos
<lovesegfault>
cc. gchristensen who is doing the god's work with nixops
<clever>
lovesegfault: but, if you run this, nixops will remember that `-I nixpkgs=foo` flag
<zeta_0>
i already looked through all of the files and only elm.json contains the file version
<clever>
lovesegfault: and it will internally respect that, for every `nixops deploy`
vidbina has joined #nixos
<lovesegfault>
clever: why does it matter which nixos is being used to eval the config?
abathur has quit [Read error: Connection reset by peer]
flodeskum has quit [Remote host closed the connection]
<lovesegfault>
I'd expect this to work, but I get error: attribute 'patch' missing, at /nix/store/09vyl7xk43ag15mg3fdriqndisgnmx0v-source/pkgs/os-specific/linux/kernel/manual-config.nix:95:17
selfsymmetric-mu has quit [Remote host closed the connection]
<lovesegfault>
Which leads me to believe my fetchpatch application is incorrect
<lovesegfault>
cc. infinisil
nwops has joined #nixos
<qyliss>
kernelPatches isn't like patches in mkDerivation
<{^_^}>
{ name = "bridge-stp-helper"; patch = /var/lib/nixbot/nixpkgs/master/repo/pkgs/os-specific/linux/kernel/bridge-stp-helper.patch; }
<clever>
lovesegfault: kernelPatches must be a list of these sets
<lovesegfault>
I see
* lovesegfault
tries
<{^_^}>
[nixpkgs] @volth opened pull request #81864 → firefox: mark as broken on 32-bit buildPlatform → https://git.io/JvVjP
erasmas has joined #nixos
kvda has joined #nixos
reallymemorable has joined #nixos
<lovesegfault>
clever++ qyliss++
<{^_^}>
clever's karma got increased to 339, qyliss's karma got increased to 35
shafox has joined #nixos
erasmas has quit [Ping timeout: 256 seconds]
<fresheyeball>
is there a way to propogate nulless in nix?
<fresheyeball>
let me explain with a small example
<fresheyeball>
foo = { x ? "x" }: x + "y";
<infinisil>
> lib.mapNullable (x: x + 1) null
<{^_^}>
null
<infinisil>
> lib.mapNullable (x: x + 1) 10
<{^_^}>
11
<fresheyeball>
bar = { x ? "x" }: foo { inherit x; } + "z";
<fresheyeball>
this does what I am asking
<fresheyeball>
but it means I can't define the default for x only in foo
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<fresheyeball>
is there a way I can do that
<fresheyeball>
bar = { x }: foo { inherit x; } + "x"; where x is optional to bar?
<fresheyeball>
if this was haskell I would be passing a Maybe down
<infinisil>
> f = { x ? "x" }@args: { ${if args ? x then "x" else null} = x; }
<{^_^}>
f defined
<infinisil>
> :p f { x = 10; }
<{^_^}>
{ x = 10; }
<infinisil>
> :p f { }
<{^_^}>
{ }
<infinisil>
A bit ugly, but that works
<fresheyeball>
infinisil: can you show the example with bar and foo?
<fresheyeball>
I am having trouble mapping this technique
<infinisil>
bar = { x ? "x" }@args: foo { ${if args ? x then "x" else null} = x; } + "z"
<fresheyeball>
ok!
<fresheyeball>
I see how it works
<fresheyeball>
what about this then
<fresheyeball>
I didn't know you could use ? that way
<fresheyeball>
nix repl shows you are dead on
<fresheyeball>
bar = { x ? null }: foo { ${if x == null then null else "x"} = x; } + "z"
<fresheyeball>
??
h0m1 has quit [Ping timeout: 240 seconds]
<infinisil>
That behaves differently depending on whether you pass `{ x = null; }` or `{ }`
<fresheyeball>
infinisil: how so?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
> f = { x ? null }: { ${if x == null then null else "x"} = x; }
<{^_^}>
f defined
<infinisil>
> f {}
<{^_^}>
{ }
<infinisil>
> f { x = null; }
<{^_^}>
{ }
<infinisil>
Um
<infinisil>
I meant
<fresheyeball>
I not crazy?
<infinisil>
It doesn't propagate x = null
<infinisil>
It just removes it
<fresheyeball>
right, because of the if statement
h0m1 has joined #nixos
<fresheyeball>
I am going to play with this
<infinisil>
> g = { x ? null }@args: { ${if args ? x then "x" else null} = x; }
<fresheyeball>
thanks!
<{^_^}>
g defined
<fresheyeball>
infinisil++
<infinisil>
> g {}
<{^_^}>
infinisil's karma got increased to 226
<{^_^}>
{ }
<infinisil>
> g { x = null; }
<{^_^}>
{ x = null; }
<infinisil>
:)
kvda has joined #nixos
<fresheyeball>
ok so yeah, x == null vs args ? x
<fresheyeball>
are different
kapil_ has joined #nixos
<bqv[m]>
can i ask again, how do i override a dependency in yarn2nix, cause it's got a hash mismatch with a github-based one
<tomberek>
does nixFlakes change uri parsing in some way? i'm noticing some builtins.fetchGit is trying to parse the url as if it was a flake, not a git repo
<tomberek>
i'm using something like "url = ssh://git@gitlab.com/some/repo.git;"
<tomberek>
i get an error "fetching Git repository 'ssh:///some/repo.git'ssh: Could not resolve hostname : Name or service not known". Seems like confusion in parsing.
salty_spaghetti has joined #nixos
zeta_0 has joined #nixos
<salty_spaghetti>
Anyone know how to access the internet from within a NixOS test?
<cole-h>
Pretty sure internet is disabled inside NixOS tests
<cole-h>
Because it introduces un-reproducability
<cole-h>
or something
<tomberek>
salty_spaghetti: usually that's discouraged, but look at __noChroot = true;. When in a derivation, it's build is not sandboxed (also need to allow this in your nix.conf
<zeta_0>
am i going to need to use the unstable version of elm2nix in order for elm 0.19.1 to be supported? right now i have to go to elm.json and change 0.19.1 to 0.19.0
<tomberek>
looks like a newer nixFlakes fixes the parsing bug
fresheyeball has quit [Quit: WeeChat 2.6]
nwops has quit [Quit: nwops]
<clever>
salty_spaghetti: why does your test need internet?
<bqv[m]>
should i just wait until flakes are ready instead of trying to fix this yarn expression?
ghasshee has joined #nixos
nwops has joined #nixos
<lovesegfault>
cole-h: it runs in a sandbox with no network to preserve r11y
<cole-h>
(isn't it r13y?)
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<lovesegfault>
yes, that one :P
<cole-h>
:^) So yeah
<lovesegfault>
brb, trying my new r13y'able system config
<lovesegfault>
thanks clever, infinisil, colemickens for all the help and direction
<clever>
lovesegfault: :D
nwops has joined #nixos
<lovesegfault>
jtojnar: I have bad news for you
<lovesegfault>
jtojnar: (process:2390): GLib-GIO-ERROR **: 19:27:29.480: Settings schema 'org.gnome.desktop.wm.preferences' is not installed
<lovesegfault>
look who's back
<lovesegfault>
💀
<lovesegfault>
clever: do I need the niv source when using niv?
<lovesegfault>
like, my niv comes from the pinned nixpkgs
<lovesegfault>
so what's the point
vidbina has quit [Ping timeout: 260 seconds]
<infinisil>
Nix probably has a Nix library too, not just the executable
<clever>
lovesegfault: you can just install nixpkgs.niv i believe
<lovesegfault>
clever: yeah, I have that in my `shell.nix`
<lovesegfault>
going to nuke niv
<lovesegfault>
done, and everything works still
<cole-h>
lovesegfault: Pretty sure that's just there for "sane defaults" (same with its nixpkgs source)
<cole-h>
So yeah, it's safe to remove from the sources
<lovesegfault>
:)
<lovesegfault>
I am so happy that I got this working
<cole-h>
You should write a blog post about it now ;)
<cole-h>
Inspire others to up their r13y game
<lovesegfault>
A blog post is not a bad idea, it'd have to be more than one I think
<lovesegfault>
1. the shellHack
<lovesegfault>
2. Nivification
<clever>
cole-h: i had turned on repeat in my nix.conf, while developing some software
<clever>
cole-h: then i discovered several bugs in nixos itself, that blocks nixos-rebuild
<lovesegfault>
clever: What's repeat?
<cole-h>
^
<cole-h>
Does it "repeat" builds to ensure r13y?
<clever>
if you set `repeat = 1` in nix.conf, or build with `--option repeat 1` then nix will repeat every build 1 extra time
nwops_ has joined #nixos
<clever>
and if the 2 builds didnt produce identical outputs, the build fails
<lovesegfault>
O.o
<cole-h>
"How many times to repeat builds to check whether they are deterministic." Yep
salty_spaghetti has quit [Ping timeout: 260 seconds]
<cole-h>
clever: You fixed them (or at least reported), right? ;-)
<clever>
cole-h: i reported one issue, but had to turn repeat back off to even use the system
<lovesegfault>
c.f. r13y.com/
nwops has quit [Ping timeout: 268 seconds]
nwops_ is now known as nwops
<lovesegfault>
is it down?
<lovesegfault>
oh, no, just slow
<cole-h>
Yeah it was up for me like 10 seconds ago haha
<clever>
cole-h: i thought i reported it, but i dont see it on github
<infinisil>
lovesegfault: What shellHack?
<cole-h>
You'll have to wait until the blog post to find out ;)
<lovesegfault>
infinisil: the one you came up with!
<cole-h>
(the one you attribute to gchristensen)
<mlatus>
What may cause compiling kernel result in a sub-make error 2 without any error messages? I'm trying to compile the kernel on Dell inspiron 7590 with impureUseNativeOptimizations applied
<infinisil>
Ahh that one!
<clever>
cole-h: it was a bug with mime info, and only occurs if you have multiple things in your systemPackages
<clever>
mlatus: if your using anything more then `-j1` it may print the error, and then keep going and build more things
<cole-h>
Speaking of mime, lovesegfault did you ever file that bug against wl-clipboard? Or were you just happy to get waybar working again that you just let it be
<lovesegfault>
cole-h: I forgot, I decided to tackle r13y next
spacefrogg has joined #nixos
<mlatus>
clever: looks like I should scroll up a lot, does nix keep build log for failed builds?
<colemickens>
* It's the only thing that is effectively not pinned and I don't feel like writing a manual update / pin for it, though it's not that hard.
<clever>
mlatus: each cache advertises its own priority, and nix will sort them by that
<lovesegfault>
colemickens: I do not use firefox nightly
<lovesegfault>
I use beta
<clever>
lovesegfault: it can, just use the "none" type (same as my router and nas) but with the ip of 127.0.0.1
<lovesegfault>
clever: got it, I might tackle NixOps next since gchristensen gave it some love
<mlatus>
clever: no settings in the client side? what if two substituers have same priority?
<clever>
mlatus: then your down to luck, do both caches actually have the same thing, or does only one have what you want?
<mlatus>
I want to use a mirror of the official cache which I can access more easily in my region, but it is sometimes not up to date so I want to also keep the official cache (re @mlatus_irc_bot: <clever>
<mlatus>
=================
<mlatus>
mlatus: then your down to luck, do both caches actually have the same thing, or does only one have what you want?)
gila has quit [Ping timeout: 265 seconds]
<mlatus>
clever: I want to use a mirror of the official cache which I can access more easily in my region, but it is sometimes not up to date so I want to also keep the official cache
<NemesisD>
i'd like to store nix configuration for all my systems in a git repo. so far this works pretty well in that i symlink the leaf directories in place, but then i can't import files with relative dirs that way. any suggestions?
<clever>
NemesisD: instead of using a symlink, make a configuration.nix with only { imports = [ /path/to/leaf.nix ]; }
<mlatus>
clever: oh perfect, thanks a lot
<cole-h>
lovesegfault: When you do pursue NixOps, I'd be interested to hear what you do
<NemesisD>
clever: what exactly does `imports` do?
<clever>
lovesegfault: `nixops deploy -d rpi` will build the rpi firmware, cross-build the entire nixos, deploy it to the pi, and update the custom firmware in /boot/
<lovesegfault>
cole-h: probably tonight or tomorrow
<clever>
NemesisD: it gives nixos a list of modules, that all have the same format as configuration.nix
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
NemesisD: i always make a tree of modules, start at a leaf like laptop.nix or desktop.nix, then work my way up the branches, both of those do imports = [ ./gui-system.nix ]; for example, which then does imports = [ ./core.nix ];
<clever>
then non-gui systems, skip gui-system.nix and go directly to core.nix
<NemesisD>
clever: that's cool! is this generally applicable to nix projects or something particular to the nixos system configuration. like could i do this in home-manager?
<clever>
NemesisD: but you can also start branching again after the trunk (like roots), and have certain role-specific stuff, like media-center.nix, that is only in imports on one machine, but nicely isolates the functions
<clever>
NemesisD: anything that is using the module system, which would be nixos and home-manager mainly
<clever>
NemesisD: this configures everything needed to run plex automatically on boot, and by keeping it to its own file, i can easily remove media-center.nix from imports to turn it off, or add it to more systems in the future
<NemesisD>
clever: thanks! this is starting to make sense. this is gonna help a lot. i started with a media server a few weeks ago and i'm moving all my systems to nixos. it's really hard the first time and then pretty easy the second time
<lovesegfault>
clever: that's amazing
waleee-cl has quit [Quit: Connection closed for inactivity]
<clever>
lovesegfault: there are 2 key parts to making nixops do that
<clever>
lovesegfault: in nixos.nix: nixpkgs.crossSystem.system = "armv7l-linux"; configures nixops to cross-compile to arm
<lovesegfault>
with my new config you can boot a VM of my machine and reproduce the issue!
<clever>
cole-h: you can also use this
<clever>
cole-h: nix repl uses .type to detect if it should pretty-print things
<jtojnar>
lovesegfault could you please open an issue so I do not forget about it
<cole-h>
clever++ Perfect! Now if only there was a way to apply `nixfmt` to the resulting output :P
<{^_^}>
clever's karma got increased to 340
<lovesegfault>
jtojnar: on it
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erasmas has quit [Ping timeout: 255 seconds]
<mlatus>
clever: would you mind giving some hints about how to setup cachecache? Tried to understand the code but I have little experience with Hasekll..
<bqv[m]>
heyheyhey, another hour, another ask, anyone know how to override a dependency in mkYarnPackage?
<{^_^}>
[nixpkgs] @FRidh merged pull request #80266 → gnupg: apply patch to allow import of key updates without user ids → https://git.io/Jv8ZW
<{^_^}>
[nixpkgs] @FRidh pushed commit from @Valodim to staging « gnupg: apply patch to allow import of key updates without user ids »: https://git.io/JvwUw
<jackdk>
I am trying to write a nix expression to automatically call pypi2nix for me. pypi2nix calls `nix-shell` when it starts, and if I add nix to `buildInputs` I get `error: creating directory '/nix/var': Permission denied`. Is there a way to run subshells inside a nix build?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to staging « libevdev: 1.8.0 -> 1.9.0 »: https://git.io/JvwTe
<jackdk>
bqv[m]: not I, but last time I tried the appimage stuff it worked pretty nicely
<bqv[m]>
It is. Its just not as nice as having a nice pure package built from source, but I've spent hours fiddling and nobody has any answers and I'm tired
<etu>
Uhm, gentoo follows the classical FHS and looks very much like most distros
<fling>
eew
<etu>
While NixOS doesn't. But NixOS is extremely flexible and powerful because of this.
<fling>
I'm using gentoo on hardware because I can go without blobs and patch anything easily
<etu>
Like, we don't have package conflicts, version conflicts or circular dependencies ever
<fling>
I also write my own ebuilds for stuff like lxd
<etu>
And you'd be surprised how many people in NixOS that has a gentoo background, I count myself to that group
<etu>
If you compare NixOS to gentoo you can say that NixOS is source-based with a binary cache. If you modify a package you get to compile it yourself. Otherwise it's probably in the cache.
<geosmin>
i've got a few questions about nixos, i'd like to check my assumptions
Jackneill has joined #nixos
<geosmin>
i've heard some interesting things about the config restoring a 1:1 version of someone's setup on a new computer
philr has joined #nixos
<geosmin>
how much exactly does 1:1 cover? presumably data isn't included of course, but what about dotfiles, configs, etc.
lovesegfault has quit [Ping timeout: 272 seconds]
lovesegfault has joined #nixos
<manveru>
geosmin: my nixos config includes almost all of that
lsix has joined #nixos
<manveru>
you can use the home-manager modules for everything in your ~
ris has quit [Ping timeout: 268 seconds]
<geosmin>
how static is this stuff? will a config that's 1-5 years old work for a new deployment?
<manveru>
been only using it for 2 years, but yes
noudle has joined #nixos
<manveru>
it of course depends on how much the app you're using changes its config formats and such
<manveru>
that's why the nixos modules are nice, since you write the config in nix, and that generates the final file, and can adjust to format changes a little bit more gracefully
<geosmin>
yeah, definitely interesting thanks
erasmas has joined #nixos
<geosmin>
anyone using sway? last time i checked getting it up and running seemed pretty iffy
<manveru>
other things, like KDE or Gnome i think might be a lot harder to manager that way though
kenran has joined #nixos
erasmas has quit [Ping timeout: 258 seconds]
vishnusuresh has joined #nixos
kenran has quit [Ping timeout: 265 seconds]
vishnusuresh has quit [Remote host closed the connection]
vishnusuresh has joined #nixos
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #81877 → shellcheck: add manpage and docs → https://git.io/Jvwmi
<Shoubit>
Is there a better way to upgrade the single dependency of a package without `.override` or doing something like import <nixpkgs/pkgs/applications/editors/neovim/wrapper.nix> { inherit (pkgs) lib stdenv makeWrapper vimUtils bundlerEnv ruby nodejs nodePackages pythonPackages; python3Packages = mySikPy3Pkgs; }
<{^_^}>
[nixpkgs] @Mic92 closed pull request #75870 → pulumi from 1.4.0 > 1.7.1 and update associated plugins → https://git.io/Je5Ih
justanotheruser has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-homepage] @garbas merged pull request #329 → Update packages-explorer to use relative paths. → https://git.io/Jv2yE
<{^_^}>
[nixos-homepage] @garbas pushed commit from @egasimus to master « Update packages-explorer to use relative paths. (#329) »: https://git.io/JvwnZ
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
<garbas>
Shoubit: that is exactly what `.override` function does except that you don't have to know where is the code for the package you are overriding
<Shoubit>
tilpner_, my bad, I meant overlays. To be more specific, how do I override python3's withPackages to provide my own set?
<Shoubit>
Neovim uses `python3.withPackages` in its buildCommand. The buildCommand is quite large so ideally I'd avoid having to override that. I just want to upgrade a single package of the python3.withPackages set.
<garbas>
Shoubit: i thought this case is covered in the manual. have you already looked there? i can totally understand if you havent found the place where this is documented.
tertl3 has quit [Quit: Connection closed for inactivity]
locallycompact has joined #nixos
JonReed has quit [Remote host closed the connection]
sgrunert has quit [Remote host closed the connection]
kenran has quit [Ping timeout: 258 seconds]
werner291 has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
p01ar has joined #nixos
Izorkin_ has joined #nixos
unacceptable has joined #nixos
janneke_ has joined #nixos
emilsp has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
janneke_ is now known as janneke
plp_ has joined #nixos
Izorkin has quit [Ping timeout: 265 seconds]
Izorkin_ is now known as Izorkin
monsieurp has joined #nixos
chloekek has quit [Ping timeout: 265 seconds]
maurer has quit [Ping timeout: 265 seconds]
Enzime has joined #nixos
pie_[bnc] has joined #nixos
pie_[bnc] has quit [Changing host]
pie_[bnc] has joined #nixos
benedikt93 has joined #nixos
Blessjah has joined #nixos
cmgn has joined #nixos
smove has joined #nixos
m1cr0m4n has joined #nixos
jeschli has joined #nixos
_e has joined #nixos
joehh1 has joined #nixos
chloekek has joined #nixos
kraem has joined #nixos
th0rex has quit [Quit: Leaving]
n1x_ has joined #nixos
jperras has joined #nixos
pingiun has joined #nixos
jeaye has joined #nixos
Freneticks has joined #nixos
maurer has joined #nixos
hl has joined #nixos
hl has joined #nixos
hl has quit [Changing host]
cransom has joined #nixos
erasmas has joined #nixos
<Poscat[m]>
Why is nix, a configuration language, uses lazy evaluation?
<Poscat[m]>
*does
<Poscat[m]>
IMO lazily evaluated languages are more prone to space leaks.
phreedom has quit [Ping timeout: 240 seconds]
erasmas has quit [Ping timeout: 268 seconds]
Communi4810 has joined #nixos
<balsoft>
Because it's useful for package management
<balsoft>
You don't want to evaluate packages you don't need
kenran has joined #nixos
<gchristensen>
Nix's evaluation model is so short there isn't time for a space leak to matter much
phreedom has joined #nixos
xantoz has joined #nixos
ramses_ has joined #nixos
xantoz has quit [Client Quit]
<obadz>
balsoft: eager evaluation doesn't mean that you evaluate the whole code base :)
xantoz has joined #nixos
<ramses_>
Hey guys, quick question, if I want to share a type (something like types.strMatching "...") between multiple modules in my nixos config, how can I do that? How can I make like a type available to multiple modules? Should I make my own lib-like module which exports these definitions and that I can then import in my modules?
<ramses_>
I want to give the same type to multiple options defined in separate modules, without repeating e.g. the regex
<obadz>
ramses_: put it in a variable which you import?
<balsoft>
obadz: at the same time, it requires a lot more thinking to not do that. With lazy evaluation, it's pretty much OOTB
evils has quit [Read error: Connection reset by peer]
evils has joined #nixos
<balsoft>
ramses_: It might make sense to create a new type for that if it's generic enough
<ramses_>
obadz: like a lib module containing these definitions? Would it just be a module looking like "{ lib, ... }: { f1 = <...>; f2 = <...>; }" which I then import?
<ramses_>
I think I tried this but then f1, f2, need to be defined options
<obadz>
ramses_: don't think it needs to be a module? but I'm not an expert.
<ramses_>
Ah, or it could just be an attrset that I assign to a var like "my_lib = import my_lib.nix;"
* pie_[bnc]
points to all the university studying he should be doig
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @alexbakker to release-20.03 « uwsgi: use pyhome instead of pythonpath for uwsgi vassals »: https://git.io/JvwBq
<pie_[bnc]>
i hope this patch applies cleanly to shiboken for 5.12 because then i can avoid it...
<pie_[bnc]>
this is all for a different yak shave
siiky has quit [Quit: leaving]
kleisli has joined #nixos
abathur has joined #nixos
siiky has joined #nixos
dkijancz has joined #nixos
dkijancz has quit [Client Quit]
<{^_^}>
[nixpkgs] @peti pushed 887 commits to haskell-updates: https://git.io/JvwB3
abathur has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-03-06T12:35:04Z »: https://git.io/JvwBC
abathur has joined #nixos
evanjs has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @clkamp opened pull request #81895 → http2tcp: init at 0.4postgit20190303 → https://git.io/JvwBj
Makaveli7 has quit [Quit: WeeChat 2.7.1]
<arianvp>
is there a way to make nix say _what_ path it is dumping when you get warning: dumping very large path (> 256 MiB); this may run out of memory
<turion>
garbas: It just feels like overkill. All I want is some simple executable.
<turion>
In any other distro I can just do `pip install csvdiff`
<turion>
How can simple things like that still be so hard after years of using nixos...
<garbas>
turion: then install pip with nix-env or nix-shell and run that command. i'm not sure what your goal is. saying "i just want some simple executable" can mean many things
philr has quit [Ping timeout: 265 seconds]
<turion>
garbas: What could it mean?
rardiol has quit [Ping timeout: 240 seconds]
<garbas>
do you want to package it with nix or it is just something you use for the next 5min?
<turion>
The latter
<turion>
The former I'd have hoped can be automated by crawling PyPi somehow, the same way stackage is crawled for Haskell packages
<garbas>
then install virtualenv+pip and use it like in any other distro
<turion>
Ok
<garbas>
crawling pypi is not possible (too long discussion to go into it)
<garbas>
and stackage is manually curated set of haskel packages. if that would exist in python we would already have it in nixpkgs
<turion>
Ok that's sad, and I also don't mean to go into that discussion
<garbas>
it is a sad discussion indeed :)
<turion>
Then the next question is how would I install pip and virtualenv correctly
<garbas>
but if you are not doing python development on a daily basis you can appreciate how better your tools are :P
<arcnmx>
lovesegfault: hm?
<garbas>
nix-shell -p pythonPackages.virtualenv
<garbas>
turion: i believe pip comes with virtualenv already
<turion>
Yes
<turion>
garbas: Neat, thanks :) that nearly works:
<turion>
[...] ModuleNotFoundError: No module named 'setuptools'
<turion>
$ pip install csvdiff
<turion>
So next try is $ nix-shell -p pythonPackages.virtualenv pythonPackages.setuptools
<turion>
Ok, now it's getting rich. $ pip install csvdiff
<turion>
[...] ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/nix/store/aw85aijllnc5spk2fqbivygrhx6x7411-python3-3.7.6/lib/python3.7/site-packages/Click-7.0.dist-info'
cinimod_ has joined #nixos
<clever>
turion: `pip install` wont work on nixos, you must tell nix-shell what you want
<garbas>
sorry i thought you are more familiar with python ecosystem and how tools there work
<clever>
turion: in this case, you probably want python.withPackages
<garbas>
you need to:
<garbas>
$ virtualenv env
<garbas>
$ ./env/bin/pip install csvdiff
<garbas>
then the binarry you are looking for is in ./env/bin
<turion>
garbas, clever: I used to do Python dev in olden days, before nixos, poetry, conda and so on. Pip was already new hot stuff to me back then ;)
drakonis has quit [Ping timeout: 272 seconds]
<garbas>
and +1 for adding setuptools.
<turion>
clever: That package (csvdiff) isn't in nixpkgs unfortunately
<clever>
turion: then you need to write a default.nix for it
<turion>
garbas: Ahh ok, that makes a lot of sense. Now I'm already at:
<turion>
ValueError: ZIP does not support timestamps before 1980
<turion>
Yay, seems like UNIX epoch is always there when you need it
<turion>
clever: Yeah :/ maybe. I was looking for something simple. Approximately as simple as in any other distro.
<turion>
clever: I was hoping pypi2nix would create a suitable default.nix for me, but nope
<turion>
garbas: Ah no, if I use virtualenv properly, I don't need to add setuptools. You were right in the first place.
drakonis has joined #nixos
kenran has quit [Ping timeout: 255 seconds]
aveltras has joined #nixos
<turion>
garbas: I'm reverting what I said before. This is highly confusing. I'm doing the following:
<coderobe>
trying to get nixops running on a system without nix runtime, attempting to use https://github.com/matthewbauer/nix-bundle but i'm getting really weird execvp errors - now trying the nix2appimage from in there. does anyone have a clue why that might be broken? also cc clever, i think you may have looked at this in the past ;)
<tilpner_>
abbe: You set a thing your derivation outputs are not allowed to reference, and the build fails if they do
<abbe>
in what way are they not allowed to reference ?
<abbe>
like they are not allowed to contain the string of the reference in one of the files ?
<abbe>
e.g. I'm getting this error when building Python 3.7
<abbe>
output '/nix/store/6m7fbc1g4hj1zfpqwpix9prdasgn56zd-python3-3.7.6' is not allowed to refer to the following paths: /nix/store/b2dk08srh1i8qnr5rizadmr1pa77n2b1-openssl-1.1.1d-dev
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
opthomasprime has left #nixos [#nixos]
<tilpner_>
Yes, it scans for the store path (or hash, not entirely sure)
<abbe>
openssl-1.1.1d-dev has no .so files, only header files, or pkgconfig files
<clever>
softinio[m]: roots channels have priority, so what does `sudo -i` then `nix-channel --list` report?
VanCoding has joined #nixos
turion has quit [Quit: Leaving.]
<sixx>
sooo, I'm wanting to deploy a web server on a remote machine. there's nix-copy-clojure for installing software. can setting up a service work the same way? also thinking about a nix-container maybe.
<clever>
sixx: sounds like you want nixops
<o1lo01ol1o>
sixx: nixops plus nix-copy-closure with your derivation setup as a systemd service
<o1lo01ol1o>
(terrform / cloudformation is more scalable if you work with a team, though.)
<clever>
o1lo01ol1o: though baremetal nixops can team-scale without much management of the state
<o1lo01ol1o>
clever: what do you mean by baremetal? I like nixops but there's a couple points where it's not so great. Teams are one, certain AWS configurations are another (ie, vpns on RDS instances)
<sixx>
ok I should read up on nixops, and also making a service in nix. the latter seems to be something you do in your configuration.nix, not just an expression in the nix store. I guess nixops is oriented towards setting up services.
<clever>
o1lo01ol1o: using nixops against a machine that nixops didnt provision
<o1lo01ol1o>
ah, right
<clever>
sixx: nixops is mainly for deploying a configuration.nix to a remote box, and optionally creating hardware in the cloud
<softinio[m]>
clever: I get nothing back when I do that. Note that I am using nix on MacBook with nix-Darwin
<clever>
sixx: when doing it with the none backend (as shown here), you need to take care that all of the config for fileSystems."/" is present in the file, or it will loose the ability to boot
<fresheyeball>
thanks, I didn't know about ref, and got confused between fetch gits
<LnL>
the naming is also rather subtile :)
<coderobe>
trying to get nixops running on a system without nix runtime, attempting to use https://github.com/matthewbauer/nix-bundle but i'm getting really weird execvp errors - now trying the nix2appimage from in there. does anyone have a clue why that might be broken? also cc clever, i think you may have looked at this in the past ;)
ZamaneKz[m] has joined #nixos
kenran has joined #nixos
<clever>
coderobe: why are you unable to use nix on the host?
<coderobe>
i just dont want to set up nix on a particular host
<coderobe>
... also having nix-bundle work in general would be kinda nice..
<clever>
coderobe: getting nix itself to work in nix-bundle is tricky
<coderobe>
clever: yeah but also the hello world example from the nix-bundle readme fails in the same way
<coderobe>
which, presumably, does not make extensive use of nix :p
<clever>
coderobe: if you use strace to run the bundle, what errors does execve give?
GodZalo has joined #nixos
infinisil has joined #nixos
rootatarch has quit [Quit: WeeChat 2.7.1]
GodZalo has quit [Ping timeout: 268 seconds]
nwops has quit [Quit: nwops]
<coderobe>
clever: >execvp(/nix/store/4w99qz14nsahk0s798a5rw5l7qk1zwwf-hello-2.10/bin/hello): No such file or directory
civodul has joined #nixos
<clever>
coderobe: does that path exist within the bundle?
<simpson>
That's curious. Maybe the kernel doesn't allow user namespacing?
<coderobe>
clever: hm, doesn't actually seem like it
<coderobe>
though i have no clue
<coderobe>
does it work for you?
<coderobe>
simpson: are user namespaces enabled by default on nixos?
<colemickens>
Did anyone move from NM to ConnMan? I'm so happy with IWD that I'm thinking of giving it a shot.
<simpson>
coderobe: I think so. But I don't know about the system that you're running on. I can't reproduce your problems; nix-bundle WFM on my NixOS laptop.
<coderobe>
i'm trying it on a rather empty nixos stable 19.09
<Shell>
well, it doesn't work on my nixos laptop either o.O
<Shell>
so, weird.
knupfer has joined #nixos
<coderobe>
simpson: are you running the git master HEAD or the one in nixpkgs?
<coderobe>
fwiw neither work for me, but there may be differences
linarcx has joined #nixos
<simpson>
From nixpkgs.
cosimone has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
<coderobe>
simpson: and what nix channel are you on?
* coderobe
trying to reproduce..
kenran has quit [Ping timeout: 265 seconds]
<cole-h>
Anybody using sway from the nixpkgs-wayland overlay: does your `sway --version` come with a git rev, or does it just say 1.4?
shibboleth has joined #nixos
<colemickens>
It will just say 1.4 :/
<simpson>
coderobe: I'm on commit a1d487872378e1ea5b0be68c1b2ef4b8cb5558c4 from Jan 11. I did $(nix-shell -p nix-bundle --run 'nix-bundle hello /bin/hello') and it produced a working ./hello.
<colemickens>
They used to take the sway version as a meson variable and when they dropped that I was too annoyed to go back to patching the version cole-h.
<colemickens>
But they probably don't appreciate that if they get bug reports from nixpkgs-wayland users... if you open an Issue I'll fix it eventually (patches welcome of course)
<emily>
they didn't have the version in the file at all previously
<emily>
i'd like to think upstream would be amenable to adding it back in for overrides but who knows
<cole-h>
Just gotta use fetchgit with leaveDotGit: sway version 1.4-c0811fc (Jan 1 1970, branch 'fetchgit')
<cole-h>
:P
<colemickens>
It may have been at at time when they didn't want packaging and/or it ought to not be an issue for normal releases that get packaged, so I took it as a nixpkgs-carry-able patch. Slash didn't feel like the social capital to try to push.
<colemickens>
I'd prefer to get the version from Nix (since we know the rev) rather than add/invoke git again.
<colemickens>
maybe something like `preConfigure = '' sed -i 's/version: '(/d+)'/version: ${rev}/g' ''; `
<colemickens>
next time you have to send the PR though ;)
<cole-h>
:D
<cole-h>
I'll send a PR to your PR
<colemickens>
also, thank you
<cole-h>
What started out as a sanity check ended up as something useful :D Happy to help
<colemickens>
hm can we date munge in nix? might not be worth the effort
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
nwops has quit [Quit: nwops]
fragamus has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Client Quit]
<cole-h>
colemickens: Yep. Haven't updated recently, so mine is still `sway version 1.4-f2a60d2d (Feb 24 2020, branch 'master')`, but that looks to match.
<cole-h>
(Weirdest thing is that `git rev-parse --short HEAD` gives me 7 characters, while the sway binary displays 8 characters...)
<cole-h>
It's a part of coreutils. Dunno if that's always pulled in or not
<colemickens>
idk, apparently coreutils is available by default
<cole-h>
Then we should be g2g
<colemickens>
I'm on nixos and it builds in the sandbox, so it should be fine.
<cole-h>
colemickens++
<{^_^}>
colemickens's karma got increased to 12
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JvwoM
gilligan_ has quit [Quit: Leaving]
<cole-h>
Woot! Beautiful :) Now I'll know that the overlay works properly :P
<cole-h>
s/I'll/I
<colemickens>
sway version 1.4-1ccbbb25 (Mar 04 2020, branch 'xwayland_hidpi')
gilligan_ has joined #nixos
gilligan_ has quit [Remote host closed the connection]
<Kaligule>
Hello, I would like to install nixos on a T430S Thinkpad from a stick for the first time. I am no stranger to the commandline, but I am to filesystems and hardware so I tried to follow this guide (which is more detailed than the manual): https://alexherbo2.github.io/blog/nixos/install-guide/ Unfortunatelly, when I tried to create new partitions
<Kaligule>
with Gparted the only filesystems that where shown as available where "minix" and "linux-swap". both fat32 and ext4 were greyed out. This holds me back from trying out nixos for now. Can someone help me find out what the problem is, please?
opthomasprime has quit [Remote host closed the connection]
nwops has quit [Quit: nwops]
<{^_^}>
[nixpkgs] @colemickens opened pull request #81917 → firefox: wrapper: add libva to libs → https://git.io/JvwK4
<Shell>
clever: so it turns out that the issue with nix-bundle master from earlier is... at some point, a bug in Nix re exportReferencesGraph was fixed. nix-bundle depends on this bug not being fixed. I now have a very hacky version of nix-bundle that works again. :p
<colemickens>
Kaligule: generally you will need to delete partitions first
M-Gregoire495 has joined #nixos
<colemickens>
Kaligule: if you've previously had an OS on there, etc.
<colemickens>
Kaligule: this is of course, destructive, you should backup any data before proceeding, etc.
M-Gregoire495 has quit [Remote host closed the connection]
claudiii has joined #nixos
<{^_^}>
[cabal2nix] @peti pushed to master « git-annex: enable the s3 flag again now that 'aws' compiles »: https://git.io/JvwK0
flodeskum has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: enable all 'aws' builds »: https://git.io/JvwKg
jojojojojo has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 260 seconds]
flodesku_ has joined #nixos
<Kaligule>
colemickens: Interesting. I have an old Fedora installation there and no data to loose. I tried to clean the partitions with "wipefs" but it didnt work so I skiped that part.
<Kaligule>
now that I think about it, perhaps that wasn't clever.
<colemickens>
I dont' think wipefs actually changes anything in the part table though
<colemickens>
That guide does not list the steps I'd expect to see where I'd normally remove existing partitions.
<colemickens>
(from the brief glance I took)
vidbina has joined #nixos
flodeskum has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvwK6
<Kaligule>
colemickens: Ohh, so how _would_ I remove those? The manual from nixos uses a bunch of crazy commands that scare me, so I thought using Gparted would be a good idea.
<colemickens>
barring a very strange circumstance, and assuming you don't care about the data, what is there to be afraid of?
<colemickens>
worst case, you start over and hopefully learn where/what went wrong :)
<colemickens>
I don't hvae gparted installed and don't know, but generally in those tools you'll select a partition and then an action, or an action and then a partition.
<Shell>
is there any way I can work out what Nix version a certain release of NixOS shipped with? not finding its derivation in nixpkgs...
<colemickens>
I'd recommend you poke at it and see if you can figure out how to remove them inside gparted first and if not we can Google it or check the manpages or I can install it :)
<Kaligule>
colemickens: Thats right. I just learned not to type anything into the terminal as root if I don't understand it.
<{^_^}>
[nixpkgs] @jonringer opened pull request #81918 → pulumi: use autoPatchelfHook → https://git.io/JvwKM
<Shell>
oh, finally found it in pkgs/tools/package-management/nix
<Kaligule>
I will try to be more couragous. Thank you for now, kind stranger.
<clever>
Shell: ahh
chagra has quit [Quit: WeeChat 2.7.1]
cole-h has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nixpkgs] @xzfc opened pull request #81919 → cached-nix-shell: init at 0.1.1 → https://git.io/JvwK7
<{^_^}>
[nixpkgs] @primeos pushed 2 commits to release-19.09: https://git.io/Jvw6n
<alexfmpe[m]>
my /root/.cache/nix/binary-cache-v6.sqlite seems slightly broken, is it safe to delete?
<Kaligule>
colemickens: So after not getting it done in GParted (probably because I know too little about how filesystems and disks work) I decided that using the commands from the manual couldn't be too bad as long as I type them in myself. That way I would at least get an idea of what is happening. I don't know why but all the problems I had with Gparted
<Kaligule>
just didn't appear. I thank you as much as I can and will now continue in my quest to install nixos. Have a wonderfull evening/morning/night.
<alexfmpe[m]>
getting this for some derivations, but not for others :
<alexfmpe[m]>
error: executing SQLite query 'select present, namePart, url, compression, fileHash, fileSize, narHash, narSize, refs, deriver, sigs, ca from NARs where cache = ? and hashPart = ? and ((present = 0 and timestamp > ?) or (present = 1 and timestamp > ?))': database disk image is malformed (in '/root/.cache/nix/binary-cache-v6.sqlite')
<clever>
alexfmpe[m]: you can just `rm /root/.cache/nix/binary-cache-v6.sqlite*`
<colemickens>
Kaligule: happy to hear it. good luck on your nixos journey, we'll be here.
<clever>
alexfmpe[m]: that file is re-created any time its missing
<clever>
alexfmpe[m]: and because of how disposable the file is, nix disabled all atomic logic in sqlite to make it perform better, which opens the risk of it becoming corrupt
<alexfmpe[m]>
indeed, my derivations are now unborked and the binary-cache file got recreated
<alexfmpe[m]>
thanks, this was driving me nuts
<{^_^}>
[nixpkgs] @mjlbach opened pull request #81922 → Enable nvidia-optical-flow-sdk when building opencv4 wih cuda → https://git.io/Jvw6g
Neo-- has quit [Ping timeout: 240 seconds]
<clever>
alexfmpe[m]: i ran into the exact same problem on an rpi, many years ago
janneke has quit [Quit: janneke quits Mes'sing]
janneke has joined #nixos
vidbina has joined #nixos
jojojojojo has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 31 commits to haskell-updates: https://git.io/Jvw6X
<icey_>
can hydra be triggered on-demand? Or asked differently. Can I ask another machine to materialize a `nixos-rebuild` for me? (Slow laptop is not cool for compiling some larger packages)
<clever>
icey_: add a build machine
<{^_^}>
[nixpkgs] @peti pushed 29 commits to haskell-updates: https://git.io/Jvw6S
cosimone has joined #nixos
<icey_>
oh right, I forgot. It's supported out of the box, right?
<clever>
icey_: that is also what hydra itself uses, to know where to send the jobs
<icey_>
neat
<icey_>
I'm trying to find some way of making gentoo behave on my laptop, but it really feels like nixos is somewhere between one and two decades ahead
<icey_>
this being a good example
<icey_>
basically I'm trying to understand why one would run gentoo and failing so far ;-(
<{^_^}>
[nixpkgs] @peti pushed 12 commits to haskell-updates: https://git.io/Jvw6A
<icey_>
nixos seems so polished in comparison
<clever>
:D
<clever>
and that is why i now use nixos on every new install
<icey_>
yup :D
<icey_>
i spent several days getting zfs to work on the laptop
fresheyeball has quit [Quit: WeeChat 2.6]
<icey_>
chromium, alacritty and xmonad took 20+ hours to build
<icey_>
once I got too fed up, I took my nixos config...
<clever>
icey_: with nixos, its trivial to do a zfs root, and chrome is in the binary cache
<benley>
holycrap why do you need to build chromium from source?
<icey_>
about 30 minutes to set up the datasets
<icey_>
another 30 minutes to apply all my config
<benley>
oh that was on gentoo wasn't it
<clever>
benley: gentoo lacks binary caches
<icey_>
and the machine is fully done again
<qyliss>
Chrome is in the binary cache? Isn't it non-free?
<colemickens>
I'd rather spend time maintaining (my) nixpkgs than re-installing debian|arch|windosw and doing first-time-setup for 1-2 hours.
<benley>
gotcha :-)
<clever>
qyliss: chromium is in the cache, thats the open source build
<qyliss>
oh, right.
<icey_>
well, I just did a vanilla install by the handbook
<icey_>
so it didn't use binary caches
<colemickens>
google-chrome-dev is too though, must be redistributable?
<icey_>
at any rate, there was one! package that had to be built
<qyliss>
That shouldn't be in the binary cache
<icey_>
virtualbox for whatever reason wasn't cached
<qyliss>
colemickens: sure you're not just using Google's binary?
<icey_>
the rest of the system was just downloaded
<colemickens>
oh, maybe I just don't notice if it just downloads/unzips. or rather my CI job might be pushing it to cachix anyway
<colemickens>
qyliss: yeah, I think it's a nixpkgs pkgs that just downloads google's bin, somehow I thought it was cached in cache.nixos.org but I was wrong.
iclanzan has joined #nixos
vidbina has quit [Ping timeout: 255 seconds]
<icey_>
the one thing i'm not sure is if I should be running unstable or 20.03 for the main system
<icey_>
bleeding edge is not the same in nixos than any other distro, really :P
<colemickens>
The NixOS wiki page is meant to help with that. ^^ yeah.
<fionera>
Ah wait didnt worked last time i tried
<fionera>
one sec
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @peti pushed 11 commits to haskell-updates: https://git.io/JvwiZ
<selfsymmetric-pa>
I figured out my cognitive dissonance around overlays. I never use them. And I think it's because for a single configuration, overlays can always be flattened into a single `overrideAttrs`, which is more denotational.
<Kaligule>
Bye, and thanks for everything
Kaligule has quit [Remote host closed the connection]
<selfsymmetric-pa>
If I were maintaining a collection of flavors for a team, then I would find a use for overlays, but yeah.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvwiW
<{^_^}>
[nixpkgs] @peti pushed 10 commits to haskell-updates: https://git.io/JvwiR
<selfsymmetric-pa>
`overrideAttrs` semantically says "install steam, but with libva". Overlays say: "if steam is installed somewhere else in the configuration, install it with libva".
<selfsymmetric-pa>
The former is cleaner for a single user.
<cole-h>
I prefer overlays tbh. It looks cleaner. But I do get that it can make it more confusing, because you don't know which package you're using -- the overlayed or the original
pepesza has joined #nixos
<selfsymmetric-pa>
cole-h: Precisely the issue. Overlays are more _general_ but I don't need any of their usecases.
<selfsymmetric-pa>
I struggled for a while to understand why the community used overlays everywhere. It felt like I had missed some memo. It feels good to have reached a personal conclusion there.
<selfsymmetric-pa>
I don't have globals in my configuration. No nix-path stuff. Instead, pinned channels and no overlays. Every expression is evaluated according to the expressions in its definition.
<selfsymmetric-pa>
y'know, denotationally
abathur has quit [*.net *.split]
v88m has quit [*.net *.split]
plp_ has quit [*.net *.split]
p01ar has quit [*.net *.split]
jD91mZM2 has quit [*.net *.split]
exfalso has quit [*.net *.split]
fendor has quit [*.net *.split]
infty has quit [*.net *.split]
MoreTea has quit [*.net *.split]
jonge has quit [*.net *.split]
ent has quit [*.net *.split]
codezero has quit [*.net *.split]
ivegotasthma has quit [*.net *.split]
<selfsymmetric-pa>
Downside: lack of mixin configuration flavors. But I am only one user, so that is fine.
<cole-h>
,tell fionera Try removing the last `{}` -- `(import (builtins.fetchTarball { url = ".."; }))`
<MichaelRaskin>
Just because a mere NixOS USB drive with SSH has a pretty low potential for unplanned !!FUN!!, and auto-installer USB drive is just asking for it
<Cadey>
except i don't know what the DHCP address of the machine is and the router is beyond worthless
<selfsymmetric-pa>
That's far too reasonable. I'm too tickled by the first scenario: the one where you plug in your USB, pray for twenty minutes, and then log into a running NixOS machine.
<selfsymmetric-pa>
Sounds like you have a fun workplace haha
<Cadey>
does the nixos live disk include a ssh server enabled?
<Cadey>
oh
<Cadey>
if it was a workplace
<Cadey>
this would be too insane for that
<colemickens>
the solution is definitely ssh listening behind a tor hidden service with a known public key
<Cadey>
this is for my homelab
<MichaelRaskin>
Cadey: nmap!
<GodZalo>
Has anyone tried nixos on a rock pi 4a?
<Cadey>
yeah but does the default usb image include sshd?
<selfsymmetric-pa>
Cadey++
<{^_^}>
Cadey's karma got increased to 1
<colemickens>
It includes it but it's disabled by default. You'll have to build install media one way or the other.
<MichaelRaskin>
Not sure, but you can just create a USB drive via normal installation
<selfsymmetric-pa>
`services.openssh.enable` is false by default.
xkapastel has quit [Quit: Connection closed for inactivity]
<Cadey>
MichaelRaskin: that would work great if i had a monitor
<clever>
Cadey: after the iso boots, i think you just `passwd`, give it a root pw twice, then `systemctl start sshd.service` and it should work
<colemickens>
It's not insane, it's what I did for my rpi4 :)
<colemickens>
One tip, if it doesn't work, remove your KB and only plug it in after boot. On my RPI4, it fails to finish a udev boot step if the kb is plugged in at boot.
kloenk has quit [Ping timeout: 272 seconds]
<bqv[m]>
words cannot describe how much i regret opening this nixpkgs PR
<evanjs>
ohhhh it populates some variables with commands using git. So I just need to substituteInPlace them or something
fenedor has joined #nixos
<colemickens>
I appreciate it! bqv, if its what I think it is.
<colemickens>
Though I'm disappointed in myself for using it.
<clever>
Cadey: you would need to boot a linux vm on the mac to be able to modify a nixos image
<Cadey>
yes but how do i get the base configuration.nix file so i can edit it in emacs?
<argc>
Can anyone offer some assistance in debugging a NixOS VM test failure to correctly `copyFileFromHost`? The file exists and is world-readable, but the startup script complains about "No such file or directory."
<clever>
Cadey: run `nixos-generate-config --root /mnt` in a nixos vm
<evanjs>
clever: is that common or at least accepted in nixpkgs? I see it in eg nur and etc
<clever>
evanjs: not very
justanotheruser has joined #nixos
<colemickens>
clever why can't we take the tricks from the sd card image creator to make a nixos installer image for regular machines too?
<colemickens>
IIRC the sd card image doesn't require a VM boot to create
<clever>
colemickens: but it does require a linux build machine
<clever>
colemickens: and if your on darwin, you need a vm to get linux builds
<cole-h>
bqv[m]: Welcome to open source :P Sometimes your changes are so easy they don't even get discussed before being pushed. Then other times, there are lots of minor issues that need to be back-and-forth'd upon.
drakonis has quit [Ping timeout: 240 seconds]
gila has quit [Ping timeout: 265 seconds]
<bqv[m]>
i love the focus on code, much better than the money driven drivel you see in industry, but when it means tiny things get overblown it can be a total headache
<bqv[m]>
at this point i just want that PR to be over one way or another :p
alexherbo2 has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gila has joined #nixos
<bqv[m]>
presumably nixFlakes will relieve some of this PR load, anyway?
reallymemorable has joined #nixos
knupfer has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @lsix opened pull request #81932 → notable: update license to unfree → https://git.io/JvwMu
<zeta_0>
how do i upgrade from elm 0.19.0 to 0.19.1 using nix? i am getting this weird elm version error? It requires 0.19.1, but you are using 0.19.0 right now.
gila has joined #nixos
cinimod_ has quit [Quit: Connection closed for inactivity]
<zeta_0>
bqv[m]: i'm running the current nixos stable 19.09, and i ran: nix-channel --update, but i am still getting that same error when following these instructions? https://github.com/cachix/elm2nix
flodesku_ has quit [Ping timeout: 255 seconds]
<bqv[m]>
stable doesn't have 0.19.1 yet. you could add unstable as a channel and add it manually, if that doesn't get messy
<zeta_0>
bqv[m]: the only thing that i have installed is the elm2nix tool in home.nix(like the instructions said)
gila has quit [Ping timeout: 256 seconds]
<zeta_0>
bqv[m]: so i need to install the unstable version of elm2nix?
drakonis has joined #nixos
<bqv[m]>
no you need the unstable version of nixpkgs, which has the elm2nix you want
<zeta_0>
bqv[m]: oh i already added the unstable channel in my home.nix so i think i just need to add unstable.elm2nix to my home.packages section
<bqv[m]>
fair enough
<bqv[m]>
genesis: hi :p
cosimone has quit [Quit: Quit.]
gila has quit [Ping timeout: 240 seconds]
<zeta_0>
bqv[m]: thanks for the help, i am going to your nix-shell command 1st to see if it fixes the error
<bqv[m]>
👌
rardiol has joined #nixos
<genesis>
bqv[m] : with 67 comments on a small discord/slack binary, i find you're patient , they will check until the latest character to doubt it's well chosen
<genesis>
the time we missed with such process.
drakonis has quit [Ping timeout: 256 seconds]
<genesis>
there is always better, software process is constent improvement, so consideration missed in that.
<bqv[m]>
i respect the ethos, i'm just getting tired of waking up every morning thinking "is it done?"
gila has joined #nixos
<genesis>
being old and ill, i'm more and more tired of that, let's people use the current derivation, improve if they want
<bqv[m]>
but hey, 11th time's the charm :D
<genesis>
we wont break anything with that.
drakonis has joined #nixos
<bqv[m]>
i found a neat trick to add PRs to my nix config's nixpkgs declaratively so i've been doing that the last month or so
<bqv[m]>
i'm actually using appimage-run directly in another derivation i wrote for "electronmail" because i'm far too exhausted to debug why mkYarnPackage chokes on it
<bqv[m]>
that... will not be PR'd, because it is awful
<bqv[m]>
but it's also easy
<genesis>
the idea is you first start your derivation work using appimage-run, then you can enable some feature, escapeapprun, extractinfofromdesktop ,
<genesis>
yarn is really a messed for nixos
<genesis>
i try yarn2nix and so, nightmmare yes, for such thing appimage is better than nothing
<genesis>
some people are too pure to understand, we better spend time on other topic
<bqv[m]>
haha
justanotheruser has quit [Read error: Connection reset by peer]
gila has quit [Ping timeout: 265 seconds]
flodesku_ has joined #nixos
werner291 has quit [Quit: werner291]
o1lo01ol1o has joined #nixos
iclanzan has joined #nixos
flodeskum has quit [Ping timeout: 255 seconds]
gila has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @JeffLabonte opened pull request #81937 → Backport protonvpn cli ng 2.2.0 to 2.2.2 → https://git.io/JvwDz
<{^_^}>
[nixpkgs] @Infinisil opened pull request #81938 → du-dust: Change derivation name from dust to du-dust → https://git.io/JvwDM
linarcx has quit [Ping timeout: 258 seconds]
<bqv[m]>
i just had the idea to try node2nix on it instead and amazingly even that chokes