<dminuoso>
Is there an idiom to test ones argument type and abort if it doesn't match the expected type? Or do people just write brittle nix, hoping things will work out?
<dminuoso>
Mmm. Does nix not come with function composition out of the box?
zacts has quit [Ping timeout: 276 seconds]
<teto>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
Emiller88 has joined #nixos
<teto>
l22: ^ is that what you are looking for ?
domogled has quit [Quit: domogled]
rsoeldner_ has quit [Ping timeout: 276 seconds]
<mdash>
dminuoso: you know, i've never had that come up
<mdash>
dminuoso: there's composeExtensions, but that's kinda specific
<mdash>
'compose = f: g: x: f (g x)' isn't that big a deal to define yourself I guess
abathur has joined #nixos
rsoeldner_ has joined #nixos
zacts has joined #nixos
CrazyMind102 has quit [Ping timeout: 245 seconds]
CrazyMind102 has joined #nixos
rsoeldner_ has quit [Ping timeout: 246 seconds]
rsoeldner_ has joined #nixos
tertl3 has joined #nixos
rsoeldner_ has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
simpson has joined #nixos
<simpson>
,locate bin ocamlformat
<{^_^}>
Found in packages: ocamlformat
zacts has quit [Quit: WeeChat 2.4]
rsoeldner_ has quit [Ping timeout: 246 seconds]
rsoeldner_ has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
CrazyMind102 has quit [Read error: Connection reset by peer]
CrazyMind102 has joined #nixos
rsoeldner_ has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
CrazyMind102 has quit [Ping timeout: 240 seconds]
CrazyMind102 has joined #nixos
rsoeldner_ has quit [Ping timeout: 276 seconds]
Zer0xp_ has quit [Ping timeout: 240 seconds]
Zer0xp has quit [Ping timeout: 276 seconds]
cdepillabout has joined #nixos
<l22>
@teto: I was looking for the minimum I need to do to actually make my own derivation that would replace only the hash
<l22>
but I figured it out. thanks though anyway!
rajivr___ has joined #nixos
l22 has quit [Quit: Lost terminal]
c0c0 has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
<{^_^}>
[nixpkgs] @teto pushed commit from @nocoolnametom to master « toot: 0.22.0 -> 0.24.0 »: https://git.io/JeGpw
cdepillabout has quit [Ping timeout: 245 seconds]
wfranzini has quit [Remote host closed the connection]
pbb has quit [Ping timeout: 276 seconds]
<teto>
searching a package in https://hydra.nixos.org/ does not work for me, it takes ages and eventually times out (for instance I just searched for "urwid" sicne it seems to fail on unstable)
pbb has joined #nixos
cdepillabout has joined #nixos
freeman42x has joined #nixos
pbb_ has joined #nixos
<freeman42x>
I have a Surface Pro 6 with ~1 TB SSD. Can anyone tell me what am I looking at here? https://i.imgur.com/5gM2dqp.png
<freeman42x>
why are those things twice?
<freeman42x>
not sure how to partition it so that I can install NixOS on it
pbb has quit [Ping timeout: 276 seconds]
nikola_i has quit [Ping timeout: 264 seconds]
<ivan>
freeman42x: that is very odd, maybe some kind of caching layer?
<freeman42x>
ivan, no idea, I will ask on SE
<ivan>
you have an SSD and an HDD, not two SSDs, right
<ivan>
oh uh never mind I see
<ivan>
freeman42x: I guess you have two SSDs that are merged into one in some odd RAID setup
<freeman42x>
ivan, no, I just have an SSD, and the partition manager displays stuff twice
<freeman42x>
it is obvious that PhysicalDrive0 and PhysicalDrive1 together are the data in PhysicalDrive2
<freeman42x>
ivan, hmmm, that might be possible
<freeman42x>
all I know is that I got 1 TB total
c0c0 has joined #nixos
<ivan>
I guess NixOS will show you two NVMe devices
<freeman42x>
ivan, going to install some HW information program to see if there are 2 SSD like you said
<freeman42x>
but I think that all I need to do is partition the PhysicalDrive2 since that seems to be the real one
<ivan>
on Linux you can mdadm them into one device, or just have two partitions, or use btrfs/zfsonlinux (warning: don't)
<freeman42x>
ivan, no idea what you just said means
<ivan>
freeman42x: check Device Manager to see if you have two SSDs
<ivan>
almost certain you do
<freeman42x>
ivan, I just installed Speccy and checking that
<freeman42x>
zfnmxt, I see, you are probably right. But then why does Speccy not show 2 SSDs?
<zfnmxt>
freeman42x: Apparently WSS stands for "windows storage space" and it's some MS virtual disk stuff. Speccy is just showing you the virtual disk.
mrCyborg has quit [Remote host closed the connection]
<freeman42x>
zfnmxt, yeah, but why is Speccy not showing 2 SSDs?
mrCyborg has joined #nixos
<zfnmxt>
I dunno. Maybe Speccy doesn't know about WSS or something.
<zfnmxt>
You clearly have two SSDs, at any rate.
palo1 has joined #nixos
<ar>
freeman42x: is it ssd, or an nvme/
<ar>
freeman42x: because you can split nvmes into smaller devices
<freeman42x>
ar, it is an NVME SSD
<ar>
oh, but this thing looks like a… windows software raid made from two devices
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<ar>
freeman42x: you'd want to shrink the contents of "microsoft storage space device" and then shrink "Partition WSS" on both of the drives. but i probably wouldn't trust any tool to do that, and instead just do a backup → repartition → restore
<freeman42x>
I am pretty certain I should not touch at all: PhysicalDrive10 or PhysicalDrive1
<freeman42x>
all the changes should probably be made on PhysicalDrive2
<freeman42x>
ivan, I think all I have to do is just the usual: make space for Linux partitions by shrinking the Windows partitions and then install NixOS on them
<freeman42x>
forget the Microsoft Storage Space Devices, I do not think that matters based on what I said above
<ivan>
how is that going to work when you boot into NixOS and it sees two separate devices
<freeman42x>
ivan, I do not understand what the problem is\
<ivan>
I think you should think about how this works for a bit
levdub has joined #nixos
<freeman42x>
ivan, I did...
<zfnmxt>
the software that controls your raid/your raid config is only available under windows
<freeman42x>
why are you saying it won't work?
<freeman42x>
but we are not yet sure here are 2 SSDs... Speccy only showed 1\
<zfnmxt>
=/
<zfnmxt>
freeman42x: Just convince yourself. Start-up the NixOS installed and run `fdisk`.
<srhb>
freeman42x: Just like any other NixOS option.
<freeman42x>
dunno how...
<srhb>
Though nvidia needs unfree set as well.
<srhb>
freeman42x: Is this your first time on NixOS?
<graf_blutwurst>
ok so I forgot to reenable optimus/mshybrid in the bios before tinkering with bumblebee. after switching that this is the only error left "Sep 27 10:26:23 MrDataCrunchy systemd-udevd[495]: /nix/store/xn410jh4qfi9vxwgjshxmad0m1isyg25-udev-rules/84-nm-drivers.rules:10 Invalid value "/nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash -c '/nix/store/qv79j3glsdmfhdzwjwa5ys3s7k0kary5-ethtool-5.2/bin/ethtool -i $1 |
<graf_blutwurst>
/nix/store/5pwj1q9zbs89xv9wlmp554p4fixz9im4-gnused-4.7/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}" for PROGRAM (char 142: invalid substitution type), ignoring, but please fix it."
<freeman42x>
I am on a bootable USB, I do not have a configuration.nix yet
veske has joined #nixos
<freeman42x>
no
<srhb>
freeman42x: Ah, it's simpler to just not use the graphics then. Though the usb has a configuration.nix just like a regular system as well.
<freeman42x>
where is it located? do I just need to add services.xserver.videoDrivers = [ "nvidia" ]; to it?
<freeman42x>
and how do I activate it after making the change?
<srhb>
nixos-rebuild switch.
philr has joined #nixos
<srhb>
And it's in the same place as always, /etc/nixos/configuration.nix
<srhb>
The live USB is, in fact, just a regular NixOS system (almost)
o1lo01ol1o has quit [Ping timeout: 240 seconds]
asymptotically has quit [Remote host closed the connection]
bahamas has joined #nixos
<srhb>
(There's some shenanigans with how the store is created, but it's not really relevant from a user perspective)
asymptotically has joined #nixos
<srhb>
But again, it's simpler to just not use graphics until you've installed everything.
<freeman42x>
wow, just opened it, the configuration.nix is almost completely empty
<srhb>
freeman42x: Yes, it includes a module that has all the installer stuff though.
<freeman42x>
yeah, I seen
<freeman42x>
anyway
<freeman42x>
do I add: services.xserver.videoDrivers = [ "nvidia" ]; to it?
<freeman42x>
and nixos-rebuild switch ?
<srhb>
You can try that, sure.
<srhb>
You'll need to enable unfree too though.
o1lo01ol1o has joined #nixos
<bahamas>
hello. I want to make a vagrant box with nixos 19.03. are the commands that I should run to not leave anything unwanted around?
<graf_blutwurst>
you can also try bumblebee. there seem to be a couple new ways to deal with nvidia on nixos. https://nixos.wiki/wiki/Nvidia
<freeman42x>
so nixpkgs.config.allowUnfree = true;
<graf_blutwurst>
I'm quite curious how it's going to go for you freeman42x I'm having a couple issues right now on unstable with my laptop :/
<freeman42x>
getting a lot of unable to download cache warnings
<freeman42x>
does it need network access to install that?
<freeman42x>
yeah, it failed to build
<freeman42x>
and I do not know how to connect to WiFi via terminal
<alexarice[m]>
freeman42x: you will need network access to install stuff
<alexarice[m]>
freeman42x: my goto is tethering off an android phone if you have that option available to you
<alexarice[m]>
or you can try nmtui
<srhb>
freeman42x: It's in the manual as well, in the installation instructions.
<srhb>
(but yeah, nmtui is nicer :-))
LysergicDreams has quit [Ping timeout: 265 seconds]
<freeman42x>
I am trying with nmcli
<Shell>
freeman42x: if you use nmtui, you get a nice little ncurses interface. but otherwise, it's <nmcli c up "network ssid" --ask>.
<graf_blutwurst>
Welp this is awkrward. I get different error messages and don't know which one is the cause. So the nvidia driver ones are gone, there's one pertaining nm-drivers and there's the last one which says "Kernel panic - not syncing: DMA: Random memory could be DMA written" which I assume is the actual cause. but it's slightly on the information light side
psyanticy has joined #nixos
sigmundv_ has joined #nixos
freeman42x has quit [Ping timeout: 245 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @kamilchm opened pull request #69641 → qtile: FIX No module named 'pkg_resources' → https://git.io/JeZka
alex`` has joined #nixos
graf_blutwurst has joined #nixos
<graf_blutwurst>
huh. ok so it does seem to be a kernel version issue. I manually set the kernel version to latest to test this out and that seems to work. no bumblebee yet though
<clever>
exarkun: thats required to get bluetooth support in pulse
<alexarice[m]>
I also have that
<alexarice[m]>
what is strange is my headset connects most of the time
<alexarice[m]>
and then every so often it just doesn't and journalctl shows that error
<exarkun>
oh. intermittent.
<cihancan>
how is nixos is it more frun than gentoo?
<exarkun>
well, it's a bluetooth headset. you didn't expect it to work all the time, did you? :)
<cihancan>
hows stability
<inkbottle>
Looking for bluetoothctl command; installed bluez-tools; however do not have other completion than bluedevil...; both user and root; I can see package is present in /nix/store
<cihancan>
is package manager source based?
<clever>
inkbottle: i use blueman to manage bluetooth
<inkbottle>
ok
<exarkun>
cihancan: did you look at nixos.org at all?
<sphalerite>
inkbottle: on nixos? hardware.bluetooth.enable = true;
<cihancan>
i guess i dont remember the details
<inkbottle>
sphalerite: OK, try that
<alexarice[m]>
exarkun: would have thought bluetooth would be a solved problem by now
<exarkun>
alexarice[m]: it's a nice dream
<sphalerite>
alexarice[m]: bluetooth audio is a bit awful, and pulseaudio isn't very good at it either — there are two completely different profiles, A2DP (high-quality simplex audio) and HFP/HSP (low-quality audio with duplex support).
<sphalerite>
alexarice[m]: last I checked, the pulseaudio in nixpkgs only supports a2dp, and maybe the headset is being weird and failing to report its a2dp support sometimes.
<exarkun>
alexarice[m]: maybe the host chipset is buggy or has a buggy driver, maybe the device is buggy or has a buggy driver, maybe the device is briefly pairing with another host and provoking problems, maybe there's some RF interference at just the wrong time, maybe pulseaudio is screwing up
<alexarice[m]>
definitely willing to believe the headset is buggy as it has intermittent problems with everything
<exarkun>
I finally gave up on my bluetooth headset and plugged in a wire :(
<exarkun>
maybe usb5 will be wireless and have a chance of working, or something
<alexarice[m]>
my wireless mouse works without falt so it is possible
graf_blutwurst has quit [Remote host closed the connection]
<inkbottle>
exarkun: on my debian box, everything bluetooth is working like a charm; keyboard, headset; a2dp without any lagging; can move around, deconnect and reconnect seamlessly, when deconnecting at all
<exarkun>
inkbottle: okay, have alexarice[m] send their headset to you and we'll have an experiment!
rsoeldner_ has joined #nixos
<exarkun>
"works for me" proves, essentially, "works for me"
<clever>
exarkun: ive gotten bluetooth headsets to work using blueman on both my desktop (usb dongle) and laptop (builtin)
<alexarice[m]>
it can unpair and pair again
<alexarice[m]>
so it knows it's there
<clever>
exarkun: ive also been able to make the laptop impersonate a headset, and connect to the cellphone, so audio came out of the laptop
justanotheruser has quit [Ping timeout: 265 seconds]
alex`` has joined #nixos
endformationage has joined #nixos
chris1 has joined #nixos
<chris1>
does anyone know by chance how I can convince node2nix to generate transitive dependencies as well?
zacts has joined #nixos
averell has quit [Quit: .]
rsoeldner_ has quit [Ping timeout: 276 seconds]
justanotheruser has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
dansho has quit [Ping timeout: 240 seconds]
cihancan has left #nixos [#nixos]
xkapastel has joined #nixos
<inkbottle>
sphalerite: hardware.bluetooth.enable = true; and my keyboard w. trackpoint has been recognized w/o further hassle (Now when you *look* at a computer, it doesn't mean that the keyboard you have your hands on, is connected to it. That is a point that remains to be fixed)
nikola_i has quit [Ping timeout: 250 seconds]
<inkbottle>
exarkun: waiting for alexarice[m] headset
<exarkun>
:)
<alexarice[m]>
inkbottle: it's working now
<sphalerite>
inkbottle: yeah that's an annoying bug. Also window focus matching the window that you're looking at.
<alexarice[m]>
I'll be keeping it
chiefgoat has quit [Quit: ZNC 1.7.5-rc1 - https://znc.in]
Ariakenom has quit [Remote host closed the connection]
werner291 has joined #nixos
<werner291>
Quick question: what's the correct syntax to replace a package's source code with something from GitHub? Here's what I have so far: https://hastebin.com/jesipisusu.bash
<werner291>
This ends with error: error: anonymous function at /nix/store/4whw2853m03pdqj4sxy6skgqjcwva824-nixos-19.09beta434.d8c1b4e8f2f/nixos/pkgs/servers/matrix-synapse/default.nix:1:1 called with unexpected argument 'src', at /nix/store/4whw2853m03pdqj4sxy6skgqjcwva824-nixos-19.09beta434.d8c1b4e8f2f/nixos/lib/customisation.nix:69:12
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @wucke13 opened pull request #69646 → [WIP] Add autochanger support to bacula-sd & improving the module in general → https://git.io/JeZ3p
<inkbottle>
nix-env -i vs putting the packages in configuration.nix?
rsoeldner_ has joined #nixos
<inkbottle>
Baughn: OK, learning curve steep
zupo has joined #nixos
<Baughn>
Definitely.
<Baughn>
inkbottle: Don't use `nix-env -i` if you can avoid it. That's an opinion of mine, but it's easy to forget to update those, and it's not something you can easily put in a git repo.
<Baughn>
(i.e. *definitely* put your configuration.nix on github! Makes reinstalls so much faster.)
<Baughn>
For a single-user system, using systemPackages is perfectly fine. You can look into home-manager at your leisure; that can manage per-user package installs, and also takes care of dotfiles.
<exarkun>
for the infinite recursion one, I assume the explanation is that it is actually passing the ... fixed point ... nixpkgs.python27Packages.twisted, if that is the right terminology
<{^_^}>
[nixpkgs] @fpletz pushed 2 commits to release-19.09: https://git.io/JeZZb
<clever>
exarkun: use self.callPackage, not super.callPackage
<clever>
exarkun: oh wait, why does twisted need twisted??
<__monty__>
Well master's hash would change continuously. I don't want to have to manually update it. Though fixed output wouldn't work either cause it'd never get refetched.
<exarkun>
stack-to-nix generates that fetchTarball line
<exarkun>
that's not a fixed output derivation, is it?
<exarkun>
And it refetches whenever master changes
<exarkun>
would quite appreciate an explanation for how that works :)
<__monty__>
I thought you had to specify a hash for fetchTarball? Or is that the only fetch method that doesn't need one?
o1lo01ol1o has joined #nixos
<samueldr>
the builtin one can optionally use a sha256
<clever>
__monty__: the eval-time fetchers dont need a hash, but slow the eval down
tertl3 has quit [Quit: Connection closed for inactivity]
<__monty__>
Let's try avoiding the XY problem. There's a repo that has a default.nix to be used with nix-shell. I want to use this with lorri. So I need a shell.nix. I'd like the shell.nix to simply fetch latest master.
ris has joined #nixos
<clever>
__monty__: builtins.fetchGit or builtins.fetchTarball can do that
<__monty__>
Ah, so I can just `import (builtins.fetchTarball ...master.tar.gz) {};`?
<clever>
yep
<__monty__>
Any advantage to fetchGit?
<clever>
__monty__: if things are changing often, it can use `git fetch` to only fetch the diff
<clever>
__monty__: but if the history is long, it can be slower
<reilithion>
Why might my second monitor be flickering gray? And how can I go about debugging it?
<gchristensen>
clever: do you have an expression for building ipxe with a cert?
<clever>
gchristensen: yep, its in not-os
o1lo01ol_ has joined #nixos
<samueldr>
one reason could be in the physical realm, reilithion, check the cable and connectors
<clever>
gchristensen: dummy certs/keys are in the repo (for CI) along with a regen script, because they keep expiring (and breaking CI)
<gchristensen>
nice :D thank you!
<gchristensen>
hah
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<gchristensen>
thanks a lot!
<clever>
gchristensen: the embeded script is also of use, without that, ipxe will default to not needing signatures
<clever>
gchristensen: but with the script= on line 65, it will embed that into the binary, and always run that on bootup, so it wont dhcp, and wont run whatever dhcp tells it to
<clever>
67 locks requirements for signatures on, then 69/70 fetch a script/sig, and validate it, then execute it
<Baughn>
The problem being that it wants a number of packages that aren't part of Cinnamon in order to run, and looks in /etc/xdg for references to those.
<Baughn>
It won't launch without an /etc/xdg'wherever/nm-applet.desktop, for example.
<worldofpeace>
I think I can help you very well Baughn
<Baughn>
I'm probably too tired to be doing this right now. :P
<Baughn>
But there we go, screensaver compiles.
<worldofpeace>
It sounds like the session manager wants to launch xdg conditioned autostarts from a hardcoded path /etc/xdg, when it really should be looking in XDG_CONFIG_DIRS to respect the freedesktop spec better
<Baughn>
Nah, it is using XDG_CONFIG_DIRS.
<Baughn>
I just didn't realize I had to add nm-applet to systemPackages for that to work.
<worldofpeace>
you should probably use the nixos service for that Baughn
<Baughn>
The user might not want it running, though.
<worldofpeace>
it's slightly different, it's a systemd service. But it should still be fine.
<Baughn>
This isn't adding networkmanager. Just networkmanager-applet.
ilyagotfryd has quit [Remote host closed the connection]
<worldofpeace>
I'm pretty sure in cinnamon you need the nm-applet service running for it work. and the user can then disable the nixos service.
o1lo01ol1o has quit [Remote host closed the connection]
<worldofpeace>
That's probably in gtk3.dev, nixos doesn't split packages like that so it just needs gtk3
o1lo01ol1o has joined #nixos
<reilithion>
Specifically whichever monitor I use on the right flickers gray if it has anything to display. It's like it'll accept a draw update, but then immediately after the update, it goes back to being gray. Some applications flicker faster than others, and a shell flashes for every keystroke.
<worldofpeace>
(I'm always a bit worrysome about new DE's in nixpkgs, I think we have a lot and need more maintainers that desktops)
<Baughn>
Mm. That would probably be a better starting point.
<Baughn>
We have KDE5, which is buggy, and Gnome 3, which doesn't let me configure anything at all, and a couple of others which don't support HiDPI so I can't use them period.