<Nak>
Is there a standard way to add access to a nix-shell environent from a running emacs session?
<Nak>
So far I've been working around the limitations by srarting an emacs daemon from within the build environment and connecting to it after, but I feel like there has to a better way
<nicolas[m]1>
direnv?
<Nak>
nicolas[m]1: Wow, yeah that looks perfect, thanks!
Mateon1 has quit [Remote host closed the connection]
vikingman has quit [Remote host closed the connection]
RoboFlex12 has quit [Ping timeout: 246 seconds]
xd1le has quit [Ping timeout: 240 seconds]
CyberManifest has quit [Quit: Leaving...]
Mateon1 has joined #nixos
vikingman has joined #nixos
sigmundv_ has quit [Ping timeout: 260 seconds]
Nak has quit [Remote host closed the connection]
zecnate has joined #nixos
kleisli_ has joined #nixos
<zecnate>
I am trying to debug my expression with `pkgs.lib.debug.traceVal` but the output is: `trace: <PRIMOP>`.
<zecnate>
I expect a list full of sets. How can I expand that full list and display it?
<zecnate>
The set attr values are all strings, sets, or lists of the same.
<zecnate>
It should be a fairly straightforward transformation of an input JSON file I imported with importJSON, then called some `map` and `mapAttrsToList` on...
xd1le has joined #nixos
<zecnate>
Huh... I just tried changing `traceVal (… complicated expression …)` with `traceSeq (… complicated expression …) null` and now `nix-build` says "error: value is a list while a set was expected"
<zecnate>
-after still printed "trace: <PRIMOP>"
<gustavderdrache>
> builtins.isList
<{^_^}>
<PRIMOP>
<gustavderdrache>
when you see <PRIMOP> it means you've bumped into a function produced from internals in nix
<zecnate>
That error confuses me, unless `isList null` is true?
kreyren__ has joined #nixos
<zecnate>
gustavderdrache: good to know. Thanks.
<gustavderdrache>
> [].foo
<{^_^}>
value is a list while a set was expected, at (string):323:1
<zecnate>
Is this because I've used `map` or `mapAttrsToList` and the result is a lazy thunk instead of an instantiated list?
<gustavderdrache>
yeah
<gustavderdrache>
> map (x: x)
<{^_^}>
<PRIMOP-APP>
<gustavderdrache>
when nix complains about "list while a set was expected", usually it's because you're trying to access a property
Soazig has joined #nixos
<gustavderdrache>
> let f = { x }: x; in f []
<{^_^}>
value is a list while a set was expected, at (string):323:22
<gustavderdrache>
you can also see it here, where it's destructuring an input set
<zecnate>
So if the error said: "error: value is null while a set was expected" that would be consistent with my understanding of `traceSeq (…) null` if nix-build was trying to access members of the result.
<gustavderdrache>
> null.foo
<{^_^}>
value is null while a set was expected, at (string):323:1
<gustavderdrache>
what's happening is traceSeq is printing out a primop, and it's then applying that primop to null, which breaks
<zecnate>
The result of that traceSeq expr should be `null`, right? So it must be something else trying to access a list...
Soazig has quit [Remote host closed the connection]
<zecnate>
Huh? I thought `traceSeq a b` evaluates a deeply then prints it, then evaluates `b`. It doesn't apply a to b, does it?
<zecnate>
-just as in the second example of those docs.
<gustavderdrache>
nope, traceSeq is defined as x: y: trace (deepSeq x x) y
<gustavderdrache>
so x is, effectively, thrown out
<zecnate>
Right, so my x is a call to `map`. My `y` is null. So which code is attempting to access a list as a set?
<gustavderdrache>
whatever is using that y
<zecnate>
But y is `null`, so the error message I would expect is:
<gustavderdrache>
can you share your code in a paste or github gist?
<zecnate>
nix-repl> null.fooerror: value is null while a set was expected, at (string):1:1
<zecnate>
nix-repl> null.foo
<zecnate>
error: value is null while a set was expected, at (string):1:1
<siraben>
How do I get the sha256 for fetchFromGitHub without putting a dummy valuer?
<siraben>
value*
<zecnate>
Instead the output I see is:
<zecnate>
trace: <PRIMOP>
<zecnate>
error: value is a list while a set was expected, at …/zcashd-depends-fetcher.nix:9:5
<gustavderdrache>
what happens if you comment out your trace? - that is, just do /* traceSeq (...) */ null?
<gustavderdrache>
all your trace is saying is "i have a builtin function"
<zecnate>
-eh, just when I was pasting into codepad I realized I'm missing some parentheses...
<gustavderdrache>
that would do it
<zecnate>
hehe... doh. Sorry for the noise. Funny how just starting to share the code makes the issue jump out. A little social motivation.
<gustavderdrache>
i've heard that if you change how something is displayed, it makes you re-read it fresh
<gustavderdrache>
so maybe that was the issue here as well
<zecnate>
Is there a way to "pretty print" big nested structures with indentation? This is a large structure all packed into one line in the trace output.
<zecnate>
Oh, neat idea. Maybe I'll change my font or something next time.
<zecnate>
I had bad spacing.
<zecnate>
Speaking of which, time to hunt for a vim syntax plugin for nix expressions…
<gustavderdrache>
i'm not sure if there's a pretty printer like that, but there might very well be a community tool for it
Xal has joined #nixos
<Xal>
hello. is there some way to get a cross compiler from nixpkgs *without* also building a libc (it seems newlib builds by default)
<simpson>
Xal: Might be possible for certain arches like `pkgsCross.avr`, but I'm not sure how. Which target are you working with?
<Xal>
mips. the newlib build seems to be broken, but I don't need it. binutils and the gcc cross compiler work
jankloogi[m] is now known as JankLoogi
zecnate has quit [Remote host closed the connection]
<simpson>
Fun. Reading through where everything's defined, like lib/systems/examples, I am completely stumped as to how to do what you're thinking of. But it sounds like a reasonable desire.
berberman has quit [Remote host closed the connection]
berberman has joined #nixos
sjkelly1 has quit [Remote host closed the connection]
growpotk- has quit [Ping timeout: 265 seconds]
<cole-h>
infinisil: Do you know where `imports` is defined?
<{^_^}>
[nixos-homepage] @samueldr pushed 7 commits to feature/2020-r/last-mvps: https://git.io/JUB0S
<cole-h>
infinisil: Or maybe you know a better way of getting `system.build.isoImage` from `iso-image.nix` without any of the other stuff? `import "${pkgs.path}/nixos/modules/installer/cd-dvd/iso-image.nix" { inherit config lib pkgs; }` doesn't give me access to the `system.build.isoImage` from that file
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 244 seconds]
Supersonic112 is now known as Supersonic
palo has joined #nixos
<clever>
cole-h: you must import <nixpkgs/nixos> and put iso-image.nix into the imports of your configuration.nix
<clever>
cole-h: `import <nixpkgs/nixos> { configuration = ./configuration.nix; }` would let you change the path to it
<cole-h>
clever: I don't want to actually add iso-image.nix to my configuration, because it has a whole load of baggage with it
<cole-h>
I just want to be able to `nix build -f ..... config.system.build.isoImage` without needing to use `~/workspace/vcs/nixpkgs/nixos-unstable/nixos` in the `.....`
<clever>
cole-h: you could make a extra-configuration.nix, that has `imports = [ ./configuration.nix /path/to/iso-image.nix ];`
<clever>
cole-h: then it will only affect builds that use extra-configuration.nix
teevorian has joined #nixos
<teevorian>
If anyone from the nix 'marketing-team' is here: Thanks for the great new landing page! This is really so much better than before. Great work!
mariatsji has joined #nixos
<cole-h>
I wonder if lib.evalModules would help here
xelxebar has quit [Remote host closed the connection]
<clever>
cole-h: <nixpkgs/nixos> calls evalModules for you, and passes it the right args
<cole-h>
And is also impure because it relies on NIX_PATH; I'm trying to not rely on NIX_PATH at all.
<clever>
cole-h: now it also has the iso-image.nix in the imports
mariatsji has quit [Ping timeout: 244 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
domogled has quit [Quit: domogled]
<cole-h>
clever: OK, well, I guess making a module that sets `system.build.isoImage` to `(import "${channels.pkgs}/nixos" { }).config.system.build.isoImage` works :P
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
Guest32831 has quit [Ping timeout: 272 seconds]
Guest32831 has joined #nixos
Guest32831 has quit [Ping timeout: 272 seconds]
Guest32831 has joined #nixos
mariatsji has joined #nixos
<colemickens>
cole-h: are you trying to achieve the same end with an ISO that you did with the VM module last week (that we talked about and you PR'd)?
kreyren__ has quit [Remote host closed the connection]
kreyren has joined #nixos
<cole-h>
colemickens: Yep.
<cole-h>
Don't think the ISO is one that should be PR'd to the top-level flake, though. Can't tell you why I think that, though.
<colemickens>
fair enough, I was just curious, I've been mulling it over for something I'm working on that adds system.build.X attrs
<cole-h>
I'm more befuddled why `nixosSystem` doesn't have the `config.system.build.isoImage` attr to begin with
<cole-h>
nixosSystem is a thin wrapper around eval-config.nix, which is what nixos/default.nix uses to get its config attr...
<samueldr>
colemickens: using the new attrset thing so we can finally lib.mkForce a sub-attribute of system.build?
<samueldr>
(I am blanking on the actual change I have in mind)
<colemickens>
samueldr: o_o I'm not sure I grok that
<cole-h>
samueldr: What kind of profiles? installation-cd-minimal imports -cd-base, which imports profiles/{all-hardware,base,installation-device}.nix
<samueldr>
cole-h: look for sd image profiles too
<samueldr>
I don't know for sure if there are others like that
<colemickens>
cole-h: I'm building out nixos-azure that has an azureImage attribute. and just generally thinking "I'd like to make a <azure/kvm/whatever>" out of some existing config. idk. I'm actually pretty okay with it being fairly explicit and non-magical
<cole-h>
samueldr: Oh, I thought you meant I would need them, not that they exist :P
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
kleisli__ has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
waleee-cl has quit [Quit: Connection closed for inactivity]
kleisli_ has quit [Read error: Connection reset by peer]
zecnate has joined #nixos
<zecnate>
I've tried calling `symlinkJoin` with a list whose elements are `fetchurl` calls, but this fails with "/nix/store/5v2axmyp3aifk0cjhn144fz2djmj5sjy-crossbeam-channel-0.4.3.crate: Not a directory". From the docs I can't tell who needs a directory. Does `symlinkJoin` only work with directories?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zecnate>
Can I add arbitrary attributes to `mkDerivation` whose values are derivations in order to bind shell variables to the output dirs of those derivations?
<zecnate>
If I do that, will nix still know they are dependencies?
<zecnate>
What is the purpose of `buildInputs` in that case?
<zecnate>
Also, what happens if there's a name conflict between an arbitrary dependency attribute name and a "special" attribute name that derivations rely on?
<{^_^}>
[nixpkgs] @ehmry pushed commit from @jasoncarr0 to master « lesspass-cli: 9.0.0 -> 9.1.9 »: https://git.io/JUBag
<zecnate>
Oh, I bet `buildInputs` scans each output dir for a `bin` dir then adds that to the path. But in my case I need the literal out dir path available to my builder.
<c4droid>
Hi, I just installed nix on my macOS, and I installed nodejs, when I using npm install hexo-cli globally, shell cannot find hexo, did I have something wrong?
<NobbZ[m]>
[c4droid](https://matrix.to/#/@freenode_c4droid:matrix.org) I'm not proficient in npm, but gave you added the folder it uses for installing stuff to your `PATH`?
orivej has quit [Ping timeout: 260 seconds]
<c4droid>
NobbZ: No
<{^_^}>
[nixpkgs] @FRidh merged pull request #98024 → python36Packages.ipython: 7.17 -> 7.16.1 (downgrade on Python 3.6 for compatibility) → https://git.io/JU4XW
<{^_^}>
[nixpkgs] @FRidh pushed commit from @kini to master « python36Packages.ipython: 7.17 -> 7.16.1 (downgrade) »: https://git.io/JUBwq
<c4droid>
NobbZ: I just resetting the prefix, and reinstall the hexo, it worked.
<NobbZ[m]>
[c4droid](https://matrix.to/#/@freenode_c4droid:matrix.org) then you probably have to do that.
zecnate has quit [Remote host closed the connection]
supercoven has joined #nixos
cr4y1 has quit [Ping timeout: 272 seconds]
<Anton83>
I have a nix expression that uses some system packages successfully on my computer but not on my Amazon EC2 instance, do you know what the issue could be there?
<srhb>
Anton83: Probably need more details. Like, how are you pinning nixpkgs/other sources to the same revisions, is the hash the same, what's the failure you're encouting, etc.
knupfer has quit [Ping timeout: 260 seconds]
<Anton83>
@srhb I am pretty new to obelisk and nix so I am not sure what you mean
<Anton83>
I am pretty much using the default obelisk config
<Anton83>
Except that I am using the `overrides` attribute to inject some dependencies to my Haskell packages
<Anton83>
The failure is that the Haskell program can't access the external program on the server
<Anton83>
As in: a `readProcess` call returns an error about an executable that wasn't found
xd1le has quit [Read error: Connection reset by peer]
<srhb>
Anton83: During the build of the program?
<srhb>
Anton83: (and, how are you building it? nix-build?)
copy has quit [Ping timeout: 256 seconds]
xd1le has joined #nixos
copy has joined #nixos
<Anton83>
No, when it is deployed
<Anton83>
I am building it by `ob deploy push`, but I encounter the same issue when using `nix-build -A exe --no-out-link`
<Anton83>
Essentially it probably means that `ob run` uses a different configuration than the other ways of building obelisk
mrt_ has quit [Ping timeout: 240 seconds]
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #nixos
<Anton83>
I am sure though, that `ob run` is not just using my systems packages out of lazyness, because it only works on my local computer if I add the right dependencies to my default.nix
cr4y1__ has joined #nixos
tmaekawa has joined #nixos
<Anton83>
@srhb see above (forgot to tag you before)
<srhb>
Anton83: Is one of your machines building without sandbox enabled perhaps?
<{^_^}>
[nixpkgs] @avdv opened pull request #98083 → Fix tensorflow building against numpy 1.19.x → https://git.io/JUBoC
<Anton83>
@srhb Sandbox is enabled
<Anton83>
I actually just realized that on my local build with only one package is not working but the others are
mrte has joined #nixos
<Anton83>
@srhb So of three external dependencies, my program can connect to none on the server, one on a local build and all three when using `ob run`
<Anton83>
Which is strange
<Anton83>
Ah, two on a local build
<srhb>
Anton83: Nothing springs to mind. I'm assuming things are pinned correctly, I think that's an obelisk feature, but I don't know. Sorry :)
<Anton83>
@srhb Okay, thanks :)
rain1 has joined #nixos
<rain1>
how can I use pip install on nix?
Anton83 has quit [Remote host closed the connection]
kisaja[m] has joined #nixos
thc202 has joined #nixos
chris has joined #nixos
chris is now known as Guest17971
Guest17971 has quit [Client Quit]
Guest17971 has joined #nixos
Guest17971 is now known as Poumpaloumpa
cr4y1__ has quit [Ping timeout: 272 seconds]
cfricke has quit [Ping timeout: 260 seconds]
dermetfan has joined #nixos
cfricke has joined #nixos
cr4y1 has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
cr4y1 has joined #nixos
<{^_^}>
[nixpkgs] @turion opened pull request #98084 → agda.section.md: Fix header and enumeration → https://git.io/JUBKO
ffl^ has quit []
cr4y1 has quit [Read error: Connection reset by peer]
Fare has quit [Ping timeout: 244 seconds]
Poumpaloumpa has quit [Quit: Konversation terminated!]
cr4y1 has joined #nixos
cfricke has quit [Quit: WeeChat 2.9]
cr4y1 has quit [Read error: Connection reset by peer]
cr4y1 has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
arjen-jonathan has joined #nixos
knupfer has joined #nixos
Akshay[m]1 has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
alexherbo2[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
knupfer has quit [Read error: Connection reset by peer]
nij has joined #nixos
<nij>
I'm a bit confused.. I first hopped in nixos with hype, thinking that my system will be reproducible, in the sense that even all humans no longer exist, system can be reproducible once content of nixpkgs can be fetched. However, since I'm still dealing with other OSs, I find it troublesome to keep two kinds of configs. Thus, I started to ask nix to fetch configs from my old config files. Now most configurations are done in this way..
<nij>
but what's the difference than just using other OSs?
<{^_^}>
[nixpkgs] @turion opened pull request #98087 → Dev agda shellfor → https://git.io/JUBPq
nij has quit [Ping timeout: 258 seconds]
<ks2048[m]>
I'm facing an issue while trying to play video files (.mkv) using any player (tried mpv/smplayer/vlc), they get desynchronised immediately which is weird since videos on the web browser play rather well
nij has joined #nixos
leotaku has quit [Ping timeout: 272 seconds]
hiro98 has joined #nixos
<{^_^}>
[nixpkgs] @turion opened pull request #98088 → Bump VSCode version → https://git.io/JUBPo
<{^_^}>
[nixpkgs] @lsix opened pull request #98089 → pythonPackages.pyslurm: mark as broken → https://git.io/JUBPi
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
alexherbo2 has quit [Ping timeout: 260 seconds]
nij` has joined #nixos
nij has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
teevorian has quit [Remote host closed the connection]
<Ke>
does nixos periodically cleanup by tmpfiles.d or do I need to schedule systemd-tmpfiles --clean
<Ke>
I found no service by search tmpfiles
<NobbZ[m]>
At my system `systemd-tmpfiles-clean.timer` exists.
jfirejfioe has joined #nixos
alp_ has quit [Ping timeout: 272 seconds]
Darkmatter66 has joined #nixos
nij``` has quit [Quit: ERC (IRC client for Emacs 27.1)]
Darkmatter66_ has quit [Ping timeout: 256 seconds]
<jfirejfioe>
Hi all. First time installer here. Colleagues won't shut up about Nix so I thought, why not? I'm stuck on encrypted ZFS root: boot is via EFI, loads kernel just fine, but there is no prompt for the password. A progress bar just ....... until it offers me to reboot. Any ideas?
Christoffer has quit [Remote host closed the connection]
<etu>
jfirejfioe: Have you added boot.supportedFilesystems = [ "zfs" ]; ?
<etu>
jfirejfioe: To your configuration.nix
<jfirejfioe>
No keyfile. Passphrase from the beginning (zpool create ...)
oxa has quit [Quit: Leaving]
<jfirejfioe>
I have zfs supported, yes. The start-up messages make it clear that it's waiting to import the ZFS pool, so ZFS appears configured to that point. But obviously I should have been prompted for the passphrase before attemping to import the encrypted pool.
<jfirejfioe>
And it is all ZFS. No LUKS. (I didn't want to mix the two when ZFS already has this feature.)
<jfirejfioe>
The documentation for option `boot.zfs.requestEncryptionCredentials` references `keylocation=prompt`, but I have no idea where to set that considering it's not a.full.namespace.
alp_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
cosimone has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
mgsk has joined #nixos
<mgsk>
Hi, all. Trying to install mailspring from unstable (https://github.com/NixOS/nixpkgs/pull/85492) but whenever I launch mailspring it errors with a complaint about not being able to find libsecret or gnome-keyring. I've tried installing both of those manually, but no cigar. Does anyone here have mailspring installed successfully?
<symphorien[m]>
gnome-keyring is a service which must be enabled in configuration.nix
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUBMw
<{^_^}>
[nixpkgs] @bennofs opened pull request #98092 → traefik: fix dashboard by using source releases → https://git.io/JUBM6
orivej has quit [Ping timeout: 260 seconds]
flx has quit [Ping timeout: 246 seconds]
Swant_ has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
rprije has quit [Ping timeout: 260 seconds]
flx has joined #nixos
Swant has quit [Read error: Connection reset by peer]
Swant_ is now known as Swant
eoli3n_ has quit [Ping timeout: 240 seconds]
<damjan>
is this correct http://vpaste.net/dMtTL ? systemd binaries link to libsystemd from the same store, but to a libudev from another systemd store
<{^_^}>
[nixpkgs] @marius851000 opened pull request #98093 → portmod: init at 2.0_beta7 → https://git.io/JUBDy
<gchristensen>
ibus is the thing for getting an emoji keyboard right?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<tobiasBora>
Hello, I'm building a library, and some tests are failing, so I just want to change the test command, but everytime I run "nix-build -A mylib" to check if tests are passing, it recompiles the whole library. What is the correct way to "cache" the build and just run the tests?
rprije has joined #nixos
<symphorien[m]>
gchristensen: yes 🙂
orivej has joined #nixos
<gchristensen>
it doesn't seem to work ... maybe there are tricky things about using it with wayland + sway
<gchristensen>
looks pretty good, thanks etu! (though some looking to be done clipboard-adapter.sh: 3: exec: -a: not found)
sangoma has quit [Ping timeout: 272 seconds]
<jfirejfioe>
It looks like keylocation=prompt is an option to zpool when creating. It's not easy to change after the pool is created. I'll give it a try tomorrow and report back.
noogie has joined #nixos
<etu>
jfirejfioe: Yes, I usually use that option, good luck! :)
ManiacOfMadness` has quit []
jfirejfioe has quit [Quit: leaving]
ManiacOfMadness has joined #nixos
<hexo_>
hello, is there a way to force nix-build being offline?
<hexo_>
last time i did horrible mistake and took laptop to park, to work there
<hexo_>
i've hit a nix-build on a project
<gchristensen>
--no-net I think
<hexo_>
it just *had to* download unnecessary stuff
<hexo_>
manual page is silent about --no-net
<hexo_>
--fallback?
<hexo_>
epic name.
andreas303 has quit [Remote host closed the connection]
sangoma has joined #nixos
Rusty1 has joined #nixos
andreas303 has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
simonpe^^ has joined #nixos
<simonpe^^>
I'm trying to override nativeBuildInputs in shell.nix for my derivation created with mkDerivation in default.nix, I'm getting 'attribute nativeBuildInputs missing' and I don't understand why.
<q3k[m]>
simonpe^^: show us your code
<simonpe^^>
sec
<q3k[m]>
`d.overrideAttrs (oa: { nativeBuildInputs = [ ... ]; })` should work
gustavderdrache has joined #nixos
<pbogdan>
does the derivation you are overriding actually have nativeBuildInputs?
sangoma has joined #nixos
<pbogdan>
if not you may need `nativeBuildInputs = old.nativeBuildInputs or [] ++ [ ]`
<ldlework>
eyJhb: i'm not sure what's not to like about emacs specifically. it's frame, that can be split into N windows, each of which displays a buffer of text, every buffer is in a "major mode" which maps input events to arbitrary lisp functions which can in turn update the buffer or do anything else, like manipulate files, talk to apis, etc.
Jackneill has quit [Ping timeout: 258 seconds]
<ldlework>
you can use this simple system to build just about anything. text editors, IDEs, email clients, rss readers, container and vm managers, task and knowledge systems, etc
jr has joined #nixos
<ldlework>
vim's input philosophy is made real via evil-mode
<ldlework>
wam bam
<jr>
hi guyz
* dutchie
wonders if anyone has made an evil-mode-alike for kakoune
<eyJhb>
ldlework: damn. Didn't know I would like that till now.. Just trying to write my professor about a equation that seems to be off
<eyJhb>
Still saved ldlework ! :D As it looks quite nice
<ldlework>
can just open it in gimp i guess
<ldlework>
eyJhb: it has nix expressions in the repo fwi
<ldlework>
fyi rather
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
CMCDragonkai1 has joined #nixos
CMCDragonkai1 has quit [Client Quit]
Jackneill has joined #nixos
<{^_^}>
[nixpkgs] @galagora opened pull request #98096 → calibre: Update Qt libs to 5.15 → https://git.io/JUB7u
<eyJhb>
Yeah I saw that, makes it 10x better ldlework :p
<eyJhb>
Lets go to #-chat
jr has quit [Quit: leaving]
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
kleisli__ has quit [Ping timeout: 240 seconds]
sangoma has quit [Ping timeout: 272 seconds]
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
waleee-cl has joined #nixos
<simonpe^^>
I've had some problems when subscribing to the unstable channel that the cache disappears and I have to build everything from source, I'm fine with using the 20.09 repos but is that cache kept for longer than the unstable one?
<simonpe^^>
or actually I use niv to lock down the nixpkgs commit for my projects, but I don't want to build gcc over and over so idk what revision to lock down in order to avoid building everything from source
da39a3ee5e6b4b0d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikivi has joined #nixos
fendor has quit [Remote host closed the connection]
<beaky>
so i have my own nixpkgs clone in my users home directory is there a way to use that local nixpkgs from the systemwide nixos pkgs for certain packages (rather than having to nix-env -f that nixpkgs as the user)?
AlpineLlama has quit [Quit: No Ping reply in 180 seconds.]
<selfsymmetric-pa>
When I run nix-index, I get `Error: fetching the file listing for store path '/nix/store/7rvaglzhlx2q2dlnqi71nhj9z6n2jnay-reposurgeon-3.44.tar.xz' failed`
<selfsymmetric-pa>
That path doesn't exist, I don't have reposurgeon installed, and nix-store repair succeeds with no problems.
arjen-jonathan has quit [Ping timeout: 244 seconds]
boredom101 has quit [Remote host closed the connection]
veleiro has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jtojnar pushed to master « ufraw: mark broken »: https://git.io/JUBNt
mmk2410 has joined #nixos
fendor has joined #nixos
aveltras has joined #nixos
da39a3ee5e6b4b0d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor_ has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
gentauro has quit [Read error: Connection reset by peer]
da39a3ee5e6b4b0d has joined #nixos
gentauro has joined #nixos
mkg has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
da39a3ee5e6b4b0d has quit [Client Quit]
Guest31244 has quit [Changing host]
Guest31244 has joined #nixos
Guest31244 has joined #nixos
Guest31244 is now known as georgyo[m]
zupo has joined #nixos
georgyo[m] has quit [Quit: authenticating]
georgyo[m] has joined #nixos
cfricke has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
o1lo01ol1o has quit [Remote host closed the connection]
<mkg>
I've a new laptop and I'm redoing my configuration. I would like to switch all user stuff to home-manager leaving only the minimum in configuration.nix.
<mkg>
I have a small configuration.nix and am working on a home.nix per rycee's home-manager-template.
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUBAO
saschagrunert has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @hannesweisbach opened pull request #98105 → kicad: remove gettext from buildInputs, add to nativeBuildInputs → https://git.io/JUBA3
<mkg>
I would like to modularize my configuration by creating a mkg module with options such as mkg.gui.enable = true; mkg.gui.base = "X11" (or "Wayland") ; mkg.gui.wm = "i3" (or "sway"); etc. I don't know where to get started. A pointer to a repo to use as an example would be very helpful.
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
duckonomy_ is now known as duckonomy
<{^_^}>
[nixos-homepage] @garbas pushed to feature/2020-redesign-improve-landing-page-content « improve content on the landing page »: https://git.io/JUBAW
da39a3ee5e6b4b0d has joined #nixos
<{^_^}>
[nixpkgs] @drewrisinger opened pull request #98106 → mk-python-derivation: document pyproject format → https://git.io/JUBAB
<Reiser>
How do you guys handle rapidly updating software, I notice the current firefox version in nixpkgs is 70.0.1, and I'm assuming automatic firefox update kind of breaks the nix environment?
<mvnetbiz_>
rapidly update the whole nix environment lol
<mvnetbiz_>
if you want an exception for firefox you could use flatpak or something, but I dont know how well that works
<mvnetbiz_>
or if there is a better way
<Reiser>
Latest is 80, doesn't seem that rapid hahaha
<Reiser>
I see, hmm
<damjan>
or just add it from master?
knupfer has joined #nixos
<Reiser>
damjan: How do you work from master? (Brand new to NixOS, silly question probably)
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #98110 → pythonPackages.topydo: Don't fail build on tests → https://git.io/JUBh9
<regnat>
Orbstheorem: if by any chance you find an answer to that I'm interested ;)
<mvnetbiz_>
Reiser, firefox is 76.0.1 on nixos 19.09, and 80 on 20.03, what version are you on?
<Reiser>
Interesting, kind of surprised there are releases, I'd have thought given how everything uses only its own dependencies, you wouldn't need releases anymore
<Reiser>
mvnetbiz_, 19.09, I guess I'm out of date
<mvnetbiz_>
You probably are using channels, have you run nix-channel --update as root recently?
<damjan>
Reiser: build time dependencies need to happen in sync :)
<Reiser>
I only just installed, I was trying it out with the community ISO available on Vultr
<Reiser>
Thought it would be up to date, I'll update now and see how it goes
<Reiser>
damjan, wouldn't there be new derivations for build time dependencies too?
<{^_^}>
jtojnar/nixpkgs-hammering#1 (by jtojnar, 4 weeks ago, open): Implement the rest of the checks
cole-h has joined #nixos
endocrimes_ is now known as endocrimes
<NobbZ[m]>
[Reiser](https://matrix.to/#/@freenode_Reiser:matrix.org) 19.0x won't get any updates anymore, 20.03 will be EOL soon as well. Still, I'd update incrementally to the next releases channel, instead of doing a big jump, to make sure that deprecations in the config file get fixed while you move along
<Reiser>
NobbZ[m], I'm only trialing it at the moment, so a full sytem wipe will be fine, but I'll try and practice this to get used to it
<NobbZ[m]>
And whatever vultr is, they should probably provide an image of a version still supported
<Reiser>
Main thing now is I'm not sure I understand why there's a release cycle given how nixpkgs seems to work, trying to get a good mental model
<Reiser>
Ah I think It's a community ISO anyway so I don't think It's Vultr's fault
<{^_^}>
[nix] @maljub01 opened pull request #4023 → Fix the nix-daemon Mac OS SSL CA cert → https://git.io/JUBj8
<Reiser>
Nix wiki says it's hosted on Vultr though, so I had expected a later ISO still :)
cjpbirkbeck has joined #nixos
euandreh` has joined #nixos
<NobbZ[m]>
1. You gave a deprecation barrier for system configuration
<NobbZ[m]>
3. Deprecation barrier for things like postgres that makes upgrading its major version hard without proper preparation
<NobbZ[m]>
2. Tool won't look totally different because it got a major release, instead that major release will only be in the next release cycle of nixOS
<Reiser>
NobbZ[m], that makes sense. Just to confirm though, in THEORY, you could run a constant rolling release channel given everything is separated anyway. And get an Arch like bleeding edge experience right?
veleiro has joined #nixos
iMatejC has quit [Quit: WeeChat 2.9]
<NobbZ[m]>
That would be nixos-unstable.
<Reiser>
Oh, well there you go
<Reiser>
Thanks NobbZ[m], appreciate the answers/patience
<NobbZ[m]>
Still, it's probably still slower than arch. Simply due to processes
<Reiser>
Makes sense
iMatejC has joined #nixos
<Reiser>
I do have one final question, this VPS I'm trialing on has 1GB ram. Trying to do `nix-env -u` seems to OOM kill nix
<Reiser>
I'm guessing because It's loading the full package tree into RAM, is there a way around this or is the answer just: I need more than 1GB ram to run nix
<{^_^}>
[nixos-homepage] @garbas merged pull request #535 → improve content on the landing page → https://git.io/JUBAr
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to feature/2020-redesign: https://git.io/JUBjX
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to feature/2020-redesign-improve-landing-page-content: https://git.io/JUBj1
<NobbZ[m]>
What is -u doing? I am not using nix-env...
<Reiser>
Updating derivations in the user environment
<NobbZ[m]>
Though indeed, evaluating my system conf usually is roughly consuming 2 to 3 gig of ram
<mvnetbiz_>
Reiser, does your vps have /etc/nixos/configuration.nix in it? I am not familiar with what that image might come with
<mvnetbiz_>
I have a 1gb vps that I run nixos on fine, I have had to systemctl stop a service once I think to nixos-rebuild
<Reiser>
Yeah, rebooted and upgraded, now on `Linux nixos 5.4.64`
<Reiser>
I can see nix being killed by the OOM reaper, so It's definitely just not enough ram, I can just setup some swap I guess -- was just curious
cr4y1_ has quit [Read error: Connection reset by peer]
fendor__ has quit [Remote host closed the connection]
cr4y1_ has joined #nixos
<xensky>
when executing a nixos-rebuild my grub is getting a new generation listed but it's not rerunning os-prober; i need it to do that because i moved some EFI files. is there a way to trigger that?
<mvnetbiz_>
boot.loader.grub.useOSProber?
<mvnetbiz_>
oh
<xensky>
yeah that's active
<mvnetbiz_>
do nixos-rebuild boot --install-bootloader
kleisli_ has joined #nixos
<xensky>
thanks, gonna reboot and see if that worked
kleisli__ has quit [Ping timeout: 240 seconds]
<xensky>
didn't work.. it's still listing a deleted EFI entry and not detecting one i added
cr4y1_ has quit [Read error: Connection reset by peer]
cosimone has quit [Read error: Connection reset by peer]
<xensky>
i did; there was supposed to be one shared partition but fedora installed its own. i moved fedora to the shared partition where nixos and windows are
<xensky>
and it does detect window's EFI
cosimone has joined #nixos
<mvnetbiz_>
maybe it works based on efi boot entries, you could check what you have with efibootmgr
zupo has joined #nixos
<xensky>
doesn't seem to match up with that either. weird
<Reiser>
Is the default set of binaries in `/run/current-system/sw/bin` defined somewhere?
mananamenos has quit [Ping timeout: 256 seconds]
<mvnetbiz_>
I think it might come from environment.systemPackages, I'm not sure if from anywhere else
<cole-h>
Pretty sure it's just the contents of `environment.systemPackages`
<mvnetbiz_>
If you run `nixos-option environment.systemPackages`, it should at the bottom which modules add things to it
justanotheruser has quit [Ping timeout: 244 seconds]
jumper149 has joined #nixos
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #98118 → pythonPackages.cryptography_2_9: Allow to use version 2.9 with Python3 → https://git.io/JURvE
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
ris has joined #nixos
<{^_^}>
[nixpkgs] @chkno opened pull request #98119 → Use curl --fail in NixOS tests → https://git.io/JURvy
<{^_^}>
[nixpkgs] @AndersonTorres pushed 3 commits to master: https://git.io/JURfY
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
nij has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to master « Revert "qutebrowser: use qt515 (#97586)" »: https://git.io/JURfR
<nij>
I was pretty excited about nixos, but I'm a bit confused recently. Needing to work with other OSes anyways, I decide to keep my config files separately, and ask nix to fetch them or create symlinks.. but then my system is not reproducible :( if I do it this way, is there still a point for me to use nixos?
noogie has quit [Ping timeout: 272 seconds]
<xensky>
nij i'm in the same boat right now; i'm symlinking my config files but if you really want the reproducibility, put your config files in a git repo and have nix config pull them from there instead of from your local disk
noogie has joined #nixos
<nij>
In fact, I use symlinkings instead of fetching for another reason:
<nij>
some softwares (e.g. ranger) ask for writability to its config folder.
<nij>
If I use the fetching method, nix will make `~/.config/ranger` read-only.
<mvnetbiz_>
what are you doing this with? home-manager?
<nij>
Yes.
knupfer has quit [Remote host closed the connection]
<nij>
I have commented out. Oh dear.. should have used bpaste ;(
noogie has quit [Read error: Connection reset by peer]
noogie has joined #nixos
seku has joined #nixos
__monty__ has joined #nixos
mariatsji has joined #nixos
<mvnetbiz_>
intead of builtins.readFile try setting home.file.".config/ranger/rc.conf".source = "${tilde}/.config/ranger/rc.conf" ?
<nij>
Hmm! Lemme try it
cole-h_ has joined #nixos
<abathur>
I'm not sure this is quite your question, but I've been personally a little bearish on pulling all of my config into .nix files for things I use cross-platform; but I version my .nix files and my configs in the same dotfile repo (I manage it with yadm), so it is vaguely reproducible in the sense that they're versioned together
<nij>
abathur: is that too much different than using an ordinary OS?
<abathur>
in that sense, if it's in ~/, I don't have to symlink too much--since ~/ is the dotfile repo root
<abathur>
sure? all of my software is still provisioned via Nix, I get the atomic profile rebuild/rollback
cole-h has quit [Ping timeout: 258 seconds]
werner291 has joined #nixos
<abathur>
and I get to share most of that between macOS and NixOS
<abathur>
are you asking the more narrow question about why not just use Nix+OS? vs NixOS?
<nij>
For me, why I enter was b/c of reproducibility of my system. That means if all humans no longer exist, with nixpkgs I can reproduce my system.
<nij>
But I cannot see such reproducibility.. for example, the packages on my nixos still updates themselves. If I decide to roll back to older versions (say the state 2 years ago), new features in other packages won't be usable anyways.
<mvnetbiz_>
can ranger rc.conf import/include another file? maybe you make home-manager create a .config/ranger/rc-static.conf, and have rc.conf include that and then you can edit config through ranger and when you want to commit it you manually copy it over to the nix config?
<nij>
But in real life, we need to upgrade packages. So what's really the point of being able to roll back?
<xensky>
packages break sometimes
<nij>
mvnetbiz_: Things like that can work.. but that's going to introduce un-reproduciblity :(..
<mvnetbiz_>
I dont get it your problem in the first place was wanting to edit your settings in your ranger UI, but that is un-reproducible
<abathur>
I'm not sure how others experience it, but the utility of rollback is mainly short-run
meh` has quit [Ping timeout: 258 seconds]
noogie has quit [Read error: Connection reset by peer]
noogie has joined #nixos
<mvnetbiz_>
nij, or do you not care about using ranger settings editor, but it won't even run if it doesnt have write access?
kahiru has quit [Ping timeout: 265 seconds]
<nij>
mvnetbiz_: makes sense.. seems i must choose a side..
<abathur>
i.e., most of us are going to have old generations GCed anyways; we won't keep them all forever
kahiru has joined #nixos
<nij>
abathur: Ah it's for short-term.. why? I have been on archlinux for almost 2 years, I never had to roll-back.
<nij>
Maybe I'm not using arch radically enough yet.
noogie has quit [Read error: Connection reset by peer]
<NobbZ[m]>
I wished it would have been possible quite often when I was on arch...
<abathur>
I don't feel like I fully grasp where it's breaking down for you, but you may just be bumping up against the fact that a lot of software is built from the worldview of computer-as-a-big-gloop-of-state, and that there are some inherent limitations on what Nix and NixOS can accomplish around those boundaries
ixxie has joined #nixos
<nij>
abathur: maybe it's that I haven'd met a need to roll-back in short term. So I misunderstood that nixos can help me roll-back to say 2 years ago.
LnL has quit [Quit: exit 1]
<nij>
Thus I failed to get it. Now I feel better.
<nij>
NobbZ[m]: what happened to you on arch?
noogie has joined #nixos
<mvnetbiz_>
you could roll back to 2 years ago if you have all your nix expressions at that time
<mvnetbiz_>
I have completely stateless computing I run NixOS and it boots up into a terminal with vim open and a read-only buffer, and no way to get out of it. I don't get much done though
<nij>
mvnetbiz_: can I specify which version of, say, "vim" in configuration.nix? Will github/nixpkgs take away old packages?
<mvnetbiz_>
there is no concept of "taking away" really
<nij>
They won't ever remove older packages?
<mvnetbiz_>
You can remove vim from configuration.nix and it doesn't remove it but it builds a completely new environment without the old vim and with the new one
alp_ has joined #nixos
<abathur>
nij sure (and that's not to say some people aren't doing longer rollbacks--just that I haven't needed to do one beyond a few days); if I'm in the middle of a project and I update to try out the latest version of some software over the weekend but then come Monday find out my build workflow is broken, I can roll back to when I know it built and sort out the problem on my own time later
<mvnetbiz_>
but the old one is still in /nix/store somewhere, and the old environment is too
<NobbZ[m]>
@nij postgres updates, windows manager updates.
<abathur>
nij there are different concepts of "they" and "version" here
<mvnetbiz_>
nij, in nixpkgs old packages get removed or updated, but you can still get it by checking out an old version of nixpkgs in git and building it
<symphorien[m]>
nij: nixpkgs usually has only one version of vim, but you can easily use the version of an older nixpkgs if so you wish
<symphorien[m]>
this faq entry also work with older channels ^
<nij>
I see. I think my problem is that I never walked out from my comfort zone, thus I never had to rollback..
<abathur>
nij if you want really strong reproducibility at the system level, I think you'd historically either be using your own nixpkgs fork/repo or pinning to a specific nixpkgs commit rather than tracking a channel; on the bleeding edge and near future you'll be able to do this better with "flakes" I gather
noogie has quit [Read error: Connection reset by peer]
<nij>
If I were a developer who needs to install new packages often, I could have run into problem several times.
<abathur>
nij well; not really a problem per-se; I'm happy when nothing breaks :)
mariatsji has quit [Remote host closed the connection]
noogie has joined #nixos
<nij>
I entered nixos just b/c I thought a declarative and 100% reproducible system is sexy :P
<abathur>
for sure
<nij>
need to learn more before I reach that
<abathur>
it's a process
<{^_^}>
[nixpkgs] @FRidh merged pull request #98089 → pythonPackages.pyslurm: mark as broken → https://git.io/JUBPi
<{^_^}>
[nixpkgs] @FRidh pushed commit from @lsix to master « pythonPackages.pyslurm: mark as broken »: https://git.io/JURUY
<abathur>
in my limited time using them (early 2018) I think Nix/NixOS are slowly moving towards supporting a more general-computing use-case, but development work is definitely a common driver of interest in Nix
noogie has quit [Read error: Connection reset by peer]
noogie has joined #nixos
<mvnetbiz_>
Why shouldn't this give me { b = 5;}? `let a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: b ? n) a`
tsrt^ has joined #nixos
<mvnetbiz_>
keep attributes of a, of which b has also an attribute by the same name
kreyren_ has joined #nixos
<mvnetbiz_>
seems like a nix language bug unless theres something obcious i dont get
<mvnetbiz_>
> let a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: hasAttr n b) a
<{^_^}>
{ b = <CODE>; }
<mvnetbiz_>
> let a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: b ? ${n}) a
<{^_^}>
{ b = <CODE>; }
andreas303 has quit [Remote host closed the connection]
<exarkun>
why are lib and hasAttr in scope for {^_^}
<mvnetbiz_>
exarkun, I guess if you enclose the right operand in ${} it works
<exarkun>
let lib = (import <nixpkgs> { }).lib; a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: lib.hasAttr n b) a
<exarkun>
> let lib = (import <nixpkgs> { }).lib; a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: lib.hasAttr n b) a
<{^_^}>
{ b = <CODE>; }
<exarkun>
and what does <CODE> mean anyway
<symphorien[m]>
add :p at the beginning
<mvnetbiz_>
> :p let a = { a = 5; b = 5; }; b = { b = 1; }; in lib.filterAttrs (n: v: b ? ${n}) a
<symphorien[m]>
`<CODE>` means that nix is lazy, and that the value cannot be printed as it wasn't evaluated
<{^_^}>
{ b = 5; }
cole-h_ is now known as cole-h
andreas303 has joined #nixos
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa>
Is a 20.09 beta branch available yet?
<selfsymmetric-pa>
I'm tempted to try it out.
<mvnetbiz_>
I was doing something else the other day that needed ${} I forget what. I didnt even realize that works outside of strings, it must be some deeper feature of the parser
zupo has joined #nixos
SirFunk has joined #nixos
<exarkun>
symphorien[m]: thanks
SirFunk is now known as JeffU
<JeffU>
I'm trying to write a derivation for a shell script that has some required packages (like jq). How do I make those binaries available to the shell script?
<JeffU>
basically runtime dependencies
<symphorien[m]>
with wrapProgram --prefix PATH (from makeWrapper)
lsix has quit [Ping timeout: 244 seconds]
<ks2048[m]>
480p+ videos always get desynchronised on mpv/vlc while the web browser runs 1080p videos fine, is there any necessary config option to enable to fix this?
<maralorn>
But the issue does not seem to be related to my ssh-agent after all.
<maralorn>
It says can't verify Host Key, which seems to fail because it trys to write a known hosts file to /home/<my-user>/.ssh, which it obviously can't.
<maralorn>
This feels like a bug in fetchgit
cosimone has joined #nixos
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
<xensky>
ok so i realized i had systemd bootloader enabled instead of grub. not sure how to make the systemd one refresh so i just switched. but grub is failing to install with these errors:
<JeffU>
Oh, I think I've got it. Thanks
<xensky>
Installing for i386-pc platform (not sure if that's right?) || warning: File system 'fat' doesn't support embedding
JeffU has quit [Remote host closed the connection]
cyraxjoe has joined #nixos
jb55 has quit [Remote host closed the connection]
<NieDzejkob>
xensky: do you use EFI?
jb55 has joined #nixos
<xensky>
NieDzejkob: yes
<NieDzejkob>
then i386-pc is wrong
<NieDzejkob>
not sure how to correct it
<xensky>
i figured. i have efiSupport = true though
<NieDzejkob>
does nixos's grub machinery even support EFI?
<mvnetbiz_>
NieDzejkob, last time I dual booted, I think I just used the bios F12 menu to select different OSs
<mvnetbiz_>
might be different depending on the pc
supercoven has quit [Ping timeout: 272 seconds]
<mvnetbiz_>
it's a lot easier thantrying to manage different OS clobbering each otheres boot loaders
<samueldr>
by default it assumes you'll use the ESP as /boot
astro has joined #nixos
<xensky>
ok cool. gonna reboot then
<samueldr>
but it's not mandatory
<judson>
To get <unstable>, I have to have unstable=... in my NIX_PATH, right? There's no way to reference a named channel that way without NIX_PATH?
thc202 has quit [Ping timeout: 240 seconds]
<selfsymmetric-pa>
NieDzejkob++
<{^_^}>
NieDzejkob's karma got decreased to -1
<{^_^}>
Wait no, it got *increased* to 1
sputny has joined #nixos
mariatsji has quit [Ping timeout: 244 seconds]
Darkmatter66 has quit [Ping timeout: 264 seconds]
cr4y1_ has quit [Read error: Connection reset by peer]
<mvnetbiz_>
judson, you can have some place in your configuration that you do `let unstable =... in` and use fetchgit or something else to get it, but if you want to use channels thats how you do it
selfsymmetric-pa has quit [Read error: Connection reset by peer]
evils[m] has joined #nixos
<judson>
Right. Maybe that's the best thing then.
<judson>
Until flakes?
cr4y1_ has joined #nixos
<{^_^}>
[nixpkgs] @ajs124 opened pull request #98125 → sky: drop → https://git.io/JURIq
<mvnetbiz_>
I would like to use `nix eval` can i have a file like add1.nix containing `num: num + 1` and then I can run it on the command line like `nix eval -f add1.nix 10` somehow?
<clever>
mvnetbiz_: i think it would need to be `{ num }:` and then use `--arg num`
<NieDzejkob>
`{ num }:` deconstructs a dict, just `num:` is what I'd expect
<catern>
infinisil: nixos-container doesn't work on non-NixOS systems, which I think I've mentioned as a requirement several times
<Orbstheorem>
regnat: About clangd, adding `-xc++` to the `.clangd` file did the trick.
stree has joined #nixos
<catern>
maybe the important fact worth noting here is that both VMs and containers don't require any system-wide configuration to run; nixos-container relies on system-wide config and hence is NixOS-specific
<infinisil>
Does it not work on other systemd systems?
<catern>
run-nixos-vm however does not require any system-wide config, it just runs the qemu binary directly
<catern>
infinisil: no, none of its concepts are NixOS-independent
<catern>
I'm not sure it's quite clear what I'm talking about
<mvnetbiz_>
catern, I get what you mean
<not-rager>
containers can reuse the same kernel - theoretically a memory savings
<not-rager>
everything else is window dressing
<mvnetbiz_>
kvm-qemu can too somewhat )
<catern>
thanks, I guess I'll just look for something like run-nixos-vm but working for containers next to nixos/modules/virtualization/qemu-vm (which is where run-nixos-vm is written)
<infinisil>
I guess you don't want nixos-containers got it. But what part of it is NixOS-dependent?
qqqqqq has joined #nixos
<infinisil>
Looking at it I can't spot anything that wouldn't work on other systemd systems
<qqqqqq>
Proof that Jesus worshiped one God same as muslims do: - Jesus identifying the commandment: "The Lord our God is One Lord" (Mark 12:29) to be the most important of all As stated in (Mark 12:29): Jesus was asked "Which commandment is the most important of all?" Jesus replied, "This is the most important: Hear O Israel, the Lord our God is One Lord" (Mark 12:29) as in Quran: {Say He is God the one (Allah)} [Quran chapter 112].
<qqqqqq>
so the above qoute(mark12:29) is a clear evidence that Jesus was directing us towards monothiesm belief and to consider it as the very first of all commandments; also here is the firsts of the The Ten Commandments(to moses) which is similar to what he was directing us towards: [ 1 - I am the LORD your God who brought you out of the land of Egypt, out of the house of bondage. You shall have no other gods before Me.]
<mvnetbiz_>
it requires root though
eoli3n_ has quit [Ping timeout: 272 seconds]
<mvnetbiz_>
and it does all sorts of stuff like make files in /etc/containers,
<not-rager>
lol
<catern>
yeah fundamentally nixos-containers requires root and requires this imperative management binary (nixos-container), but none of that is fundamentally necessary to run a container
<catern>
a container can run like run-nixos-vm does, without accumulating any state or requiring root etc
<mvnetbiz_>
catern, I dont get where do you get that .vm attribute in (import <nixpkgs/nixos> {}>).vm
qqqqqq has quit [K-Lined]
RoboFlex13 has quit [Quit: Leaving]
<not-rager>
literally, the only difference is that with a VM, you define the whole software stack and with a container you share the kernel
<catern>
mvnetbiz_: that attribute just always exists - although maybe Nixpkgs has changed since I last used this script...
<not-rager>
there are some perf penalties for the added stuff for a VM, generally
<not-rager>
everything else is how various systems use containers or VMs
<infinisil>
So nixos-container works on all systemd systems, but you need to also be root
<not-rager>
ie: window dressing
<mvnetbiz_>
(nixos {}).vm does exist for me
<mvnetbiz_>
doesn't*
knupfer has joined #nixos
cybrian has quit [Quit: cya]
<catern>
mvnetbiz_: hmm I just tried it with that default.nix and it works for me on latest master of nixpkgs
<catern>
(and has been working for quite some time)
<xensky>
good news: that fixed grub. bad news: grub takes like five minutes to update every time i nixos-rebuild because it's complaining about a memory leak (it then succeeds). hm
lsix has quit [Client Quit]
<ajs124>
xensky: are you using lvm?
boredom101 has joined #nixos
cosimone has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @ajs124 pushed 2 commits to release-20.03: https://git.io/JURte
mmk2410 has quit [Quit: ERC (IRC client for Emacs 27.1)]
Fare has quit [Ping timeout: 244 seconds]
praduca has joined #nixos
<praduca>
Hi to everyone
<iwq>
do package init commits get merged into current stable or they have to wait for next stable?
<xensky>
ajs124: only on my fedora partition
<infinisil>
iwq: They're merged into master, so they're only in the next release
<iwq>
is there any date for the next release?
<infinisil>
Well the next release is in like 20 days, 20.09
<praduca>
I'm having some trouble with a netbook... It worked ok on nixos 19.09, but the video drivers doesn't come on 20.03 apparently... odd is that if i specify the kernel as 4.19, it wont work, but it work ok when using this kernel in 19.09
<mvnetbiz_>
clever, I can't get something like this to work nix eval --expr "{ a, b }: a + b" --arg a 1 --arg b 2
<praduca>
I'm missing something? Its a old n2600 netbook
<infinisil>
iwq: But if your package was merged after the feature freeze, it will have to wait for 21.03
<cole-h>
iwq: But branchoff already happened, so unless the package init happened before September 7th, it will have to wait for 21.03
<clever>
mvnetbiz_: --arg only applies when loading files from disk
<cole-h>
infinisil: lol
<infinisil>
cole-h: Oh nice I was searching for the date
<{^_^}>
#98133 (by catern, 44 seconds ago, open): Add .container derivation to nixos/default.nix building ./bin/run-nixos-container
<catern>
even if it already exists, I think it would be good to be surfaced in the same way as .vm
<xensky>
got one other problem i wanted to tackle today; having trouble getting xrandr settings to apply at startup. i tried setting via xrandrHeads and by running as displayManager.setupCommands but in both cases the x server fails to start (even though, it sounds like both should occur after x starts)
<{^_^}>
[nixos-org-configurations] @garbas pushed to remove-nixos-org « removing nixos-org folder since the website is moved to netlify »: https://git.io/JURt7
<{^_^}>
[nixos-homepage] @samueldr pushed 6 commits to feature/2020-r/last-mvps: https://git.io/JURtd
<{^_^}>
[nixos-org-configurations] @garbas opened pull request #122 → removing nixos-org folder since the website is moved to netlify → https://git.io/JURtF
<infinisil>
catern: Hm, what underlying technology would it use though?
<{^_^}>
[nixos-planet] @garbas pushed to master « Add @layus blog to the nixos planet. »: https://git.io/JURtp
<catern>
infinisil: I suggested bubblewrap in the issue
<infinisil>
Ah I should probably read the issue first, sorry :)
boredom101 has quit [Remote host closed the connection]
<infinisil>
Yeah I just wanted to point out OCI containers
bennofs has joined #nixos
<catern>
infinisil: yeah, thanks for the pointer :) there's definitely lots of system-wide container support in NixOS, and lots of suport for building container images
<mvnetbiz_>
building the image is probably not desired though or at least as small as possible to bootstrap and share the nix store
<catern>
but it would be cool (and illustrative of the underlying capabilities) to have a single derivation you can build that gives you a script which runs NixOS using a container as a subprocess
<catern>
mvnetbiz_: yeah, it would probably be like the qemu image
<catern>
which IIRC is a minimal bootstrap like that
<teto>
I would like to make one of the flake optional
seku has quit [Quit: Connection closed]
<{^_^}>
[nixpkgs] @collares opened pull request #98135 → signal-desktop: ringrtc depends on libpulseaudio → https://git.io/JURqS
<{^_^}>
[mobile-nixos] @Thra11 opened pull request #198 → initrd: handle systemd-udevd being a symlink to udevadm → https://git.io/JURqH
<ddellacosta>
so I'm in nix repl and I've loaded nixpkgs and I can do e.g. "${git}" and in general it works but for anything related to alsa it's failing, e.g. "${alsa-lib}" or "${alsa-utils}", anyone know why this would be?
cr4y1_ has quit [Read error: Connection reset by peer]
Preisschild has joined #nixos
<ddellacosta>
like, for stuff I've installed via nix-env -iA I should be clear
<mvnetbiz_>
It recursively remove attributes in a that are also in b and have the same value. I was thinking about comparing whole NixOS configurations, but I didnt think about how to handle high level types like derivations or options
<mvnetbiz_>
If anyone makes a better version let me know >:D
<jlv1>
V: that might work in my particular situation, but in general, that would only work if the package hasn't already been overlaid or modified in some other way. It feels like a cludge.
werner291 has quit [Quit: werner291]
<V>
it is a kludge
dermetfan has quit [Ping timeout: 240 seconds]
<clever>
zanc: i believe its a set of every channel in ~/.nix-defexpr/
<clever>
zanc: the same set your acting on when you `nix-env -iA nixpkgs.hello`
<V>
jlv1: In general I don't think it's really feasible to change stuff like that without either modifying upstream nixpkgs or copying parts of it
<V>
For example, the node packages
<not-rager>
asked before, didn't really see an answer or any engagement, so re-asking: is there something weird about nixos or bazelisk that make the two play so poorly together?
<{^_^}>
[mobile-nixos] @samueldr merged pull request #198 → initrd: handle systemd-udevd being a symlink to udevadm → https://git.io/JURqH
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JURYS
<jlv1>
V: I was thinking something like `qutebrowser = super.qutebrowser.override { inherit (super.qt515) *; };`, but I'm not sure how to "inherit everything from ...".
zupo has quit [Ping timeout: 272 seconds]
<clever>
jlv1: super.qt515.callPackage will pass things from qt515 in for you
<clever>
jlv1: then you just need the path to the default.nix
<V>
clever: yes, I suggested that
<V>
jlv1: it doesn't work like that. libsForQt515 *specifically* passes extra stuff into the derivation, the two aren't equivalent
<V>
unless you duplicate everything that libsForQt515 does, you can't do .override
<V>
and there's a bunch of other packages where it's not even possible to do .override or .overrideAttrs
gv has quit [Remote host closed the connection]
<jlv1>
So I guess it's not possible to use `super.qutebrowser` to change Qt version in an overlay? That feels like an oversight or missing feature.
<V>
Correct.
<V>
callPackage sucks, that is all :)
<V>
(as does all-packages.nix, and pretty much the entire way that is set up.)
<clever>
python and kernel modules have a solution to that mess
<clever>
just put all stuff in a dedicated file, and then callPackage it for every version at once!
fresheyeball has quit [Quit: WeeChat 2.7.1]
<simpson>
(I'm not yet convinced that callPackage is the problem, as opposed to the concept of overlays.)
<clever>
so you have python2Packages.foo and python3Packages.fo
<clever>
then you dont need overlays
<clever>
callPackage is also what lets python do that
<V>
ah, but then you have to manage compatibility matrices as well
<V>
And you have python2Packages containing packages which don't even work with python2
<V>
etc
<clever>
python has a broken = something; field on each package
<V>
Indeed
<clever>
that wont let you build stuff that is known-broken
<clever>
and it queries the version
<V>
Yes, I don't really like how that is
Synthetica has quit [Quit: Connection closed for inactivity]
gv has joined #nixos
<jlv1>
Did Qt 5.15 change how it supports Wayland or something? I'm getting `Could not find the Qt platform plugin "Wayland" in ""` when I try to run Qutebrowser with Qt 5.15
hexa- has quit [Quit: WeeChat 2.7.1]
<jlv1>
Or maybe some difference between nixpkgs Qt 5.15 and 5.14?