<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhsiw
iqubic has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
boothead has quit [Ping timeout: 256 seconds]
<iqubic>
So I've heard that using a ZVOL for swap is a bad idea.
<iqubic>
Can some help me change my set-up into something better? Currently I'm using a zvol for swap.
<duairc>
iqubic: I've heard that too, I'm also running my swap on a ZVOL
<nDuff>
If creating the space requires shrinking space used by ZFS, that's tricky.
<iqubic>
I'm not sure how to check if it does or not.
<nDuff>
...so, what do your partition tables look like?
<iqubic>
nDuff: I dual boot Windows 10 and NixOS.
<iqubic>
That means my partition table is a bit weird.
<duairc>
My understanding is that bad things happen when ZFS runs out of memory, and if ZFS needs more memory and the only place to get it is the swap, which is itself managed by ZFS, then basically you get a kind of loop
<nDuff>
That's good -- if you can spare some space from the Win10 side, it's probably going to be a little easier to shrink there. Well, depending on the filesystems in use.
<duairc>
But from my experience, if my system starts swapping it's quicker to reboot it anyway, I only have swap so I can hibernate, so I don't really care if everything goes to shit if I run out of RAM
<nDuff>
(unfortunately, btw, I'm actually due to be heading home pretty soon, so I don't have much time to troubleshoot/plan right now).
<duairc>
I put in on a ZVOL because I'm using ZFS's encryption for my root and I want my swap to be encrypted too, and it would be annoying to have to decrypt two things on boot
<nDuff>
duairc, ...so, the thing about encrypted swap is you can just generate a new random key every time
<nDuff>
there's no reason to preserve a single key / enter a password / etc
<iqubic>
I have a partition which is NTFS and is set-up to be a sort of shared memory space between the OSes. I can read and write to this partition from both Windows 10 and Nixos.
<nDuff>
since the data is inherently single-use, unless you're running a laptop and use swap for suspend/restore.
<duairc>
nDuff: But what if you're resuming from hibernation?
<duairc>
nDuff: That's the only reason I even have a swap
<nDuff>
duairc, ...ahh. See, I live in datacenters, so hibernation is not a done thing.
<clever>
duairc: zfs doesnt support hibernation
<iqubic>
What I think I'll do is quickly boot into windows, and shrink that shared partition so I have enough free space to make a *REAL* swap partition.
<iqubic>
How would I go about removing this zvol thing that I am currently using for swap?
<clever>
iqubic: zfs destroy poolname/volumename
<iqubic>
I assume that I'd first need to unmount the partition.
<clever>
yeah
nDuff has quit [Quit: zzz]
<iqubic>
So how do I unmount a zvol?
<clever>
same as any other block device
<duairc>
clever: I didn't believe you so I just tried it out (hibernating), and my system just hung for five minutes, never mind resuming
<iqubic>
So, how do I get the name of the pool I want to destroy?
<clever>
iqubic: you want to destroy just the zvol, not the whole pool
<clever>
`zfs list`
<clever>
oh, and `zfs list -t volume` i think
<iqubic>
right. Because the rest of my filesystem is still ZFS.
<iqubic>
umount latitude-tank/swap
<iqubic>
umount: latitude-tank/swap: no mountpoint specified.
<iqubic>
err... WHAT?!?!
<clever>
and swap isnt mounted, you want swapoff
<iqubic>
right.
<iqubic>
and then I can safely destroy it with zfs destroy?
<clever>
yeah
thc202 has quit [Ping timeout: 250 seconds]
<clever>
but youll also want to remove it from the nixos config and rebuild/switch
<clever>
or nixos will get upset when its missing next time you boot
<iqubic>
right.
<iqubic>
Of course.
pie__ has quit [Ping timeout: 252 seconds]
freeman42x[nix] has quit [Ping timeout: 252 seconds]
<iqubic>
swapoff: latitude-tank/swap: swapoff failed: no such file or directory
<iqubic>
What the heck?
<clever>
iqubic: cat /proc/swaps
<duairc>
What is /var/empty? I'm trying to make some derivations and I keep getting broken builds that are looking for things there... seems to happen with builds that use CMake in particular
<clever>
iqubic: latitude-tank/swap is only understood by zfs, the block device is at a different but similar path
<iqubic>
it's at /dev/zd0
<clever>
iqubic: also, if you disable the swap in the nixos config, nixos will swapoff automatically when you switch
<iqubic>
Well, turns out I was doing something rather stupid and didn't realize it at all.
<iqubic>
I have zfs snapshots set up on all my zfs partitions.
simukis has quit [Quit: simukis]
<iqubic>
Which appearently included my swap partition, as that was under zfs too.
<clever>
lol
<iqubic>
:facepalm:
<clever>
yeah, snapshots on swap are not a good idea
<iqubic>
I know.
<clever>
of note, `zfs destroy pool/dataset@snap1%snap10` will delete all snapshots between snap1 and snap10, inclusive
<clever>
that helps with bulk deleting of snapshots
<clever>
zfs list -t volume,filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression
<clever>
this will list every zvol and filesystem, and the `USEDSNAP` tells you how much the snapshots within it are eating
<clever>
and this will list every snapshot on amd/home
<iqubic>
I just went with `zfs destroy pool/dataset -r` to nuke the entire thing I had allotted to SWAP.
<clever>
duairc: the cmake files are probably trying to mess with /usr then
<zfnmxt>
I noticed that if I use ssdm instead of startx, my xorg.conf file disappears. Where does it go?
<clever>
iqubic: that also works
<duairc>
clever: So I need to patch them to use $out/ before this thing gets there?
<clever>
zfnmxt: ssdm uses an absolute path to xorg.conf, in the ssdm config file
<clever>
duairc: yeah
<clever>
or override the default, so it never tries to use /var/empty (which it thinks is /usr)
<iqubic>
so, I'm going to restart my machine, and switch to my windows operating system (I dual boot) free up some space for a *REAL* swap partition, and then come back here.
<zfnmxt>
clever: Ah, okay. Thanks :)
<iqubic>
How much free space do I want for this swap partition?
<clever>
iqubic: depends on how much ram you have and how obsessesed with tabs you are, lol
<clever>
iqubic: ive got 32gig of ram, 64gig of swap, and regularly have over 1000 tabs open
<iqubic>
I don't know how much ram I have.
<zfnmxt>
64GB swap O.O
<clever>
iqubic: `free -g`
<iqubic>
And do I want to make sure that the free space is at the end of my SDD?
<iqubic>
*SSD
<clever>
iqubic: the free space will always be at the end of whatever partition your shrinking
lord| has quit [Ping timeout: 250 seconds]
<zfnmxt>
Why does the NixOS manual make a swap partition instead of a swap file?
<zfnmxt>
Is there any benefit to swap partitions? Seems like swap files are far more convenient.
<iqubic>
I know. But is it fine if I'm not shrinking the last partition on my SSD?
<clever>
zfnmxt: swap files dont work on zfs, and swap files usually have worse performance
<clever>
iqubic: for an ssd, it doesnt really matter where on the disk a partition is
<iqubic>
swap partitions don't really work on ZFS anyways.
<iqubic>
I have 8G RAM.
<clever>
zfs doesnt really have partitions
<clever>
zvols behave fairly differently
<iqubic>
How big should I make the free space that will become my swap?
<clever>
iqubic: depends heavily on how you use the machine and how much you go over 8gig
<iqubic>
clever: I should really learn how to use zfs effectively.
<iqubic>
Thanks.
<iqubic>
I'm going to go free up some space now. When I come back I'll be needing some help getting a swap partition created.
<iqubic>
bye for now.
<clever>
iqubic: just run gparted on linux end
<iqubic>
clever: I'm really not sure how Windows will handle this.
<iqubic>
I have this NTFS partition that I can read and write to from both windows10 and Nixos. I want to shrink that.
<clever>
windows should be able to shrink it just fine
<iqubic>
I know.
Lingjian has joined #nixos
<iqubic>
But if I want to access Windows, I need to reboot my machine, as I dual boot.
<clever>
dont see any problem there
<iqubic>
You were saying I should run gparted from linux.
<clever>
after you shrink the ntfs
<iqubic>
Ah. I didn't understand that.
<clever>
"When I come back I'll be needing some help getting a swap partition created."
<iqubic>
I'll be back soon.
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
romanofskiWork has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
<iqubic>
So I'm back.
<iqubic>
I'm now confused as heck.
<iqubic>
I can't tell where my free space ended up.
<ottidmes>
clever: and since the whole disk will be formatted by the new filesystems, I do not think wipefs is necessary too, but you probabaly have it for some reason and it should not hurt
<iqubic>
is there a way to tell which partitions on a harddrive contain free space?
pie_ has joined #nixos
<qyliss>
df -h ?
<ottidmes>
iqubic: for free space inspection I like ncdu, but that is not saying something about partitions
<iqubic>
ottidmes: I should have an 8Gig section of my SSD that is not yet partitioned.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhsXJ
<iqubic>
I'm trying to figure out if that actually exists, and where it is.
romanofskiWork has joined #nixos
<iqubic>
ottidmes: How does ncdu work?
<iqubic>
clever: Can you help me out here?
<ottidmes>
iqubic: it loads all metadata needed to determine the sizes and then you can navigate with arrow keys, it works really well (it is a command line GUI via curses)
ddellacosta has joined #nixos
<iqubic>
yeah, but It's not telling me if I have any free unallocated space anywhere.
<clever>
iqubic: ndcu wont show unpartitioned space, for that, you want gparted
<iqubic>
I should I have 8GB of unallocated space somewhere on my SSD, because I just created that with Windows/
<clever>
ncdu can only show filesystem stuff, zvols and unpartitioned wont be seen
<ottidmes>
yeah, I did not know your exact goal, ncdu is great to find places where you can free some space, I just managed to remove a few gigabytes of stuff, but it won't help with unallocated space insights, no
gagbo has quit [Ping timeout: 246 seconds]
<iqubic>
ottidimes: I dual boot Windows 10 and Nixos. I just went into Windows10 and shrunk a Windows partition. I should now have a section of my SSD with 8GB that hasn't been partitioned yet.
<iqubic>
I'm trying to see if I can get Nixos to show that to me.
<iqubic>
Well. GParted isn't being helpful at all.
<siraben>
iqubic: what partition are you trying to find?
<siraben>
Huh that's odd
<jasongrossman>
I find gparted reliably fails to find two of the three partitions on my main drive. Go figure.
<jasongrossman>
I suppose I should put in a bug report.
<jasongrossman>
Anyway, use something other than gparted when it can't find your partitions!
<iqubic>
siraben: I dual boot windows10 and Nixos. I just now went into Windows 10 and shrank a partition there. There should now be an 8GB block of free, unallocatted spac between sda5 and sda6. I'm trying to get nixos to show me that space.
<clever>
iqubic: its clearly visible in the gparted output
init_6 has joined #nixos
<clever>
iqubic: take the start sector of sda6, and the end sector of sda5
<iqubic>
What do you mean?
<clever>
> 16777217 * 512 / 1024 / 1024
<clever>
8192.00048828125
<{^_^}>
8192
<iqubic>
that's fdisk.
<clever>
and then just do some math
<iqubic>
I gave you the output of fdisk.
<clever>
it comes out to 8192mb of gap between the end of sda5, and the start of sda6
<{^_^}>
zfsonlinux/zfs#7071 (by jhyeon, 50 weeks ago, open): Suspend to disk does not work with zfs/spl 0.7.5
fresheyeball has quit [Quit: WeeChat 2.2]
<iqubic>
So what benefits do I get if I choose to encrypt my swap partition?
<clever>
if the rootfs isnt encrypted, not much
sary has joined #nixos
<iqubic>
Great. I'm not going to encrypt my swap partition.
<iqubic>
So how shall I go about making this swap partition?
<ottidmes>
so suspend to disk even fails when using ZFS with a dedicated partition for the swap?
<clever>
2019-01-06 21:51:30 < clever> so it should be as simple as `fdisk /dev/sda` and then `n` and hitting enter at nearly everything
<clever>
ottidmes: yeah, something about zfs not properly handling the new kernel seeing the "uncleanly shutdown" fs, before the old kernel has its state restored
<alex_giusi_tiri>
Hi. I have a question that's not entirely related to nixos: I am trying to run some android `fastboot` commands, but it cannot detect my device. Would nixos already have the fastboot (odin mode) drivers included? Another solution to try would be to change the udev rules for android, but I am not sure how to edit files in /etc/udev/rules.d/. What would you recommend? :-)
<alex_giusi_tiri>
what do you mean? the command name?
<hyper_ch2>
no, I used to get ADB by adding androidenv.platformTools to the system packages... but that package doesn't exist anymore
<hyper_ch2>
error: attribute 'platformTools' missing, at /etc/nixos/configuration.nix....
<alex_giusi_tiri>
oh, i just installed android-studio
<alex_giusi_tiri>
I pretty sure that that did it
<hyper_ch2>
let me try that :)
<alex_giusi_tiri>
I also installed some mtp and mtpfs packages
<alex_giusi_tiri>
ok, thanks
<alex_giusi_tiri>
but that's a/some few hundred megs there
<alex_giusi_tiri>
a few/some*
<alex_giusi_tiri>
if i remember correctly
<alex_giusi_tiri>
to download, that is
shpx has joined #nixos
<iqubic>
clever: I have no idea if this is a coincidence or not, but ever since I changed my swap partition, firefox has decided that it wants to load YouTube really really slowly.
<hyper_ch2>
don't need mtp :)
<alex_giusi_tiri>
hyper_ch2: yeah, i was pretty sure that it was provided by android studio, but i thought i should still mention it
<teto>
I am trying to override alot src attribute. I've done so in my overlay. nix repl shows the good version for alot.version but if I do nix-build alot than I get another version number :/
<ivan>
how do I actually blacklist `nvidia` so that vfio can grab a card first? `blacklistedKernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" ]` isn't doing much
<ivan>
maybe I should edit the module to remove its boot.kernelModules
m15k has joined #nixos
<elvishjerricco>
`output '/nix/store/...-stdenv-linux' is not allowed to refer to the following paths:` uh
<elvishjerricco>
that's annoying
<elvishjerricco>
I have custom cross stages and I'm using a bunch of custom tools
<silver_hook>
It seems to do with display-manager, but I can’t figure out why. I’ve just moved it from a standalone line into the services.xserver block
orivej has quit [Ping timeout: 258 seconds]
<ivan>
silver_hook: libinput.enable = true is missing a semicolon. unrelated?
<ottidmes>
I want to use a specific Haskell package dependency, megaparsec of at least version 7, but Nix keeps downloading version 6.5, any way to get the later versions? I tried a later GHC version, I tried using my nixos-unstable checkout, neither worked
<drager>
If I want to install something that's not present in nixpkgs? For example the "lightdm-webkit2-greeter" Do I need to follow this to do that? https://nixos.org/nixpkgs/manual/#chap-quick-start
<silver_hook>
ivan: Unrelated, as this somehow disappeared in the pastebin, it exists in the file.
<wedens>
drager: you can create a derivation locally
<Guanin>
Hi, I'm in the process of getting a proprietary toolchain (vivado) running on NixOS. Sadly, it sometimes writes and executes shell scripts, where it hardcodes the path /bin/touch. Does someone have a nice way to handle it? or should I just go the easy route and cram everything into a virtual machine with an officially supported linux?
<drager>
wedens: But hmm, if I write a module like that. How do I build and point to git repo? Or how's that supposed to work?
<etu>
Guanin: Nix has FHS wrappers
<wedens>
drager: which repo?
<drager>
The "lightdm-webkit2-greeter" in this case
<wedens>
Guanin: you can always patch it if it's feasible
<etu>
Guanin: For example steam is executed in such a way since it downloads binaries and executes them. And libc and other libs will be in the wrong place.
<wedens>
drager: well, it's just a derivation. and you can use the derivation in a module
<Guanin>
etu, I guess I have to dig into the FHS wrapper deeper then. Only managed to get something else running as a shell.nix with it, so far
<wedens>
drager: that's exactly what PR that I've linked does. it defines a derivation ( pkgs/applications/display-managers/lightdm-web-greeter/default.nix) and a module ( nixos/modules/services/x11/display-managers/lightdm-greeters/web.nix)
<Guanin>
wedens, right now I hotpatch the scripts with find and sed executed every 0.1s (yay, race conditions...). At least I got it "working" that way, but it is annoying
<Guanin>
But thanks, I'll really have to learn how to package with the FHS wrapper, then
<drager>
wedens: Ah, there is dependencies and git urls and stuff. Thanks. I'm very new to nixos so that's why I wondered
<wedens>
drager: that might not be the easiest thing to implement for a beginner, but you'll definitely learn a lot :)
<drager>
wedens: Alright :D Will try and see at least
griff_ has joined #nixos
<silver_hook>
ottidmes: Would that issue with the missing test for xserver=enable fall under NixPgks or some other repository?
<srhb>
silver_hook: nixpkgs is the right repo. :)
<silver_hook>
srhb: Thanks
Synthetica has quit [Quit: Connection closed for inactivity]
<Myrl-saki>
Nixos assumes an "in-tree" build. Is this intentional?
<Myrl-saki>
If you move nixos to its own directory, everything starts failing.
reinhardt has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus pushed to master « urxvt: Allow switching out package »: https://git.io/fhGIz
<sphalerite>
`nix-store -qR $(nix-store -q --deriver /run/current-system) | xargs nix-store -r` in case anyone feels the need to download the sources for the closure of their system
<sphalerite>
Myrl-saki: yes
craige[m] has joined #nixos
<{^_^}>
[nixpkgs] @basvandijk merged pull request #53399 → apache-httpd/wordpress: copy plugins and themes instead of symlinking → https://git.io/fhOqo
<Myrl-saki>
sphalerite: Also, I don't need to decrypt the file.
<Myrl-saki>
Basically, I encrypt it using Nix, but decrypt it using traditional tools.
<{^_^}>
[nixpkgs] @FPtje opened pull request #53561 → nixos/apache-httpd/wordpress: copy plugins and themes instead of syml… → https://git.io/fhGL1
<sphalerite>
Myrl-saki: oh, in that case I'd probably export the public key with gpg, then use gpg within the build to import the key and encrypt something for it
<infinisil>
I didn't know Nix can encrypt files!
griff_ has quit [Quit: griff_]
__monty__ has joined #nixos
<gchristensen>
probably shouldn't encrypt inside a nix-build, since the decrypted sources are also in the store
<gchristensen>
unless the thing you're encrypting is generated as part of the build, but even then: any user can look at any in-progress nix build, there is no privacy here
<Mic92>
how can a user look at the in-progress build?
periklis has quit [Remote host closed the connection]
fusion809 has joined #nixos
<gchristensen>
ah, jk :) the build dir is root/root and drwx------
<gchristensen>
although since the inputs are known (they're all in the store) and the computation is known, the encryption is not very useful and the secrets are probably not very secret
<{^_^}>
[nixpkgs] @basvandijk merged pull request #53561 → nixos/apache-httpd/wordpress: copy plugins and themes instead of syml… → https://git.io/fhGL1
<{^_^}>
[nixpkgs] @basvandijk pushed 2 commits to release-18.09: https://git.io/fhGtc
<Myrl-saki>
gchristensen: I have no problem with that.
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon2 is now known as Mateon1
<Myrl-saki>
sphalerite: Good point, but damn, I need symmetric encryption.
<Myrl-saki>
sphalerite: That's actually a very nice way of doing stuff.
<gchristensen>
what is your use case?
<Myrl-saki>
gchristensen: I'm making an encrypted livecd.
<Myrl-saki>
gchristensen: And I need a way to pass in the LUKS key without having the key in /nix/store..
<sphalerite>
Myrl-saki: generate a random symmetric key and encrypt that asymmetrically, putting that in the output? :D
<sphalerite>
it won't be deterministic, but I think it should work?
<Myrl-saki>
Yeah, determinism is something I'd rather not have anyway.
<gchristensen>
Myrl-saki: mindif I ask another level of, what for?
ma9e_ has joined #nixos
griff_ has joined #nixos
<Myrl-saki>
gchristensen: The LiveCD I'm making works somewhat as a thin client, and the fastest way to not leak credentials is to just encrypt everything.
<gchristensen>
ah, cool
<Myrl-saki>
sphalerite: Hm.
<Myrl-saki>
sphalerite: I'm somewhat confused
<Myrl-saki>
sphalerite: I need to pass something to luksFormat, and it should be human-writeable.
<sphalerite>
Myrl-saki: then use diceware to generate it ;)
Dedalo has joined #nixos
<Myrl-saki>
sphalerite: Right, but I'm interested in doing it in Nix.
<Myrl-saki>
Oh, hm.
<Myrl-saki>
I guess it's possible to use GPG with it.
<Dedalo>
I'm having troubles to configure Polybar. I'm using i3. I have copied the polybar/config from the arco distro, and I have created a startup script. Then I have modified the configuration.nix adding polybar and I have modified the i3 connfiguration to use the script previously created, but the bar doesn't appear. Anyone can share his configuration.nix or home-manager conf for i3 and polybar? I'm sure someone of
<spacekookie>
sphalerite: they're all bash from the nix store
Guanin__ is now known as Guanin
<spacekookie>
I assume it has something to do with my bash environment or maybe the completions but I'm really not sure what exactly
gagbo_work has joined #nixos
<Guanin>
Dedalo, but I'm using xmonad, not i3
<{^_^}>
[nixpkgs] @KireevArtur opened pull request #53564 → Adding Russian dictionary for hunspell → https://git.io/fhGsh
<gagbo_work>
Hello, is it possible to tell in /etc/nixos/configuration.nix the system to clone a repo in the home directory of a user ?
<sphalerite>
spacekookie: could you try moving your ~/.bashrc away temporarily so it doesn't take effect?
<spacekookie>
sphalerite: I don't have one
<spacekookie>
I use fish as my shell
<sphalerite>
gagbo_work: you could use a oneshot systemd service that checks if it already exists, then clones it if not.
<sphalerite>
spacekookie: try with /etc/bashrc or /etc/bash.bashrc then
<Dedalo>
thx Guanin I take a look
<spacekookie>
sphalerite: Actually just running it again, it spawns hundreds of `/nix/store/can00lfiynqkbsdkkmgp6qg8p8w92cxa-bash-4.4-p23/bin/bash -e /home/spacekookie/.nix-profile/bin/manpath`
<spacekookie>
Can try
detran has quit [Ping timeout: 240 seconds]
simukis has quit [Quit: simukis]
simukis has joined #nixos
<spacekookie>
Oh wow yea okay moving /etc/bashrc fixed it
simukis has quit [Remote host closed the connection]
<sphalerite>
you can try moving it back and putting set -x at the beginning if you want to work out why it happens
<__monty__>
frigate_freedom: Since it's *your* PR amending the commit and force-pushing may be acceptable.
<etu>
frigate_freedom: a "git reset --hard HEAD^" drops the latest commit and then a "git push --force" will drop that commit from your remote and also from the PR.
mr_noobs has joined #nixos
<gagbo_work>
ma9e_, but then it means I need to find a way to fetch the home.nix from the internet too
dsx has quit [Quit: dsx]
<Guanin>
gagbo_work, that can be done with fetchgit/fetchtar/fetchFromGitHub, too
<gagbo_work>
hmmm, I really need to read more about this stuff
<mr_noobs>
Hi there! I'm trying to find a way to install FreshRSS declaratively on nixos, but with the webserver and stuff it seems a bit complicated (to me at least)
<__monty__>
gagbo_work: Both the nix and the nixpkgs manuals are worth a read.
<gagbo_work>
I´ve read a few sections already, but not everything yet
<mr_noobs>
Ans I saw that they offer a docker image also, so I was wondering, how well does docker mix with nixos? Probably would use docker-compose to have something declarative as well that I can take with me on a github repo
<srhb>
cyris212: Did you grab scotty via Nix?
orivej has joined #nixos
<mr_noobs>
Is there any recommended way to work with containers?
sir_guy_carleton has joined #nixos
<spacekookie>
sphalerite: turns out `manpath` is forkbombing me x)
<teehemkay>
hi everyone! I have a multi-user nix install on macos 10.13.6. Issuing a `nix-channel --update` command doesn't seem to update <nixpckgs>. Is that actually the case?
mkoenig_ has quit [Ping timeout: 268 seconds]
<frigate_freedom>
__monty__: , etu: , it didn't help
<__monty__>
frigate_freedom: What's wrong still?
<frigate_freedom>
I did git reset --hard HEAD^ and git push --force but nothing was changed
_lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
<__monty__>
Your PR definitely changed.
<frigate_freedom>
Yesterday opened commit for ksh and it was merged. Today I opend PR for dictionary, but ksh commits were here too. I wanted to remove these commits 'coz they are already merged via GitHub website and that caused this situation
justanotheruser has quit [Ping timeout: 250 seconds]
<frigate_freedom>
__monty__: oh, yes, now it does not suggest remove all-packages.nix
<etu>
frigate_freedom: But the PR doesn't remove all-packages anymore
<etu>
yeah, refresh the page and look again
<frigate_freedom>
is having part of old commit in new PR is ok?
<srhb>
frigate_freedom: Generally you can squash it all down into one commit for small changes.
<__monty__>
frigate_freedom: It *is* because merging the same thing twice is fine. But in this case I'd just rebase your dictionaries commit on top of nixpkgs master.
<jboy>
can anyone help me translate this into xrandrHeads format for my system configuration? xrandr --output HDMI1 --primary --above LVDS1
lsyoyom has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #53566 → gringo: Switch to the default SCons version → https://git.io/fhGni
<srhb>
jboy: output and primary map directly to attrs in the attrset in the list, the relative geometry can be encoded via monitorConfig, see man xorg.conf and search for "Above"
<jboy>
srhb: thanks for the pointer
<cyris212>
srhb: Sorry i forgot to include the nix-shell line.
<srhb>
cyris212: I suspect the reason you're not seeing a problem when building it is because your module is not named Main though..
<cyris212>
srhb: I do however specify the main method through "ghc -main-is Task.Web.main Task/Web.hs -o t"
<srhb>
Ah, I see.
<cyris212>
Learning haskell and nix at the same time probably was not my smartest move :-)
<srhb>
cyris212: You're in for a ride for sure, but it does have great value compared to other approaches.
<cyris212>
srhb: "18.09.1834.9d608a6f592"
alex_giusi_tiri has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
<srhb>
cyris212: Still can't reproduce. At this point I'd suspect pollution in ~/.ghc or something. It'd try nuking any x86_* dirs contained therein
<wedens>
`nix-build '<nixpkgs>' -A emacs --verbose` hangs after a bunch of `evaluating file ....` lines. emacs is defined in an overlay. what may be the problem?
<cyris212>
srhb: will try, thanks for your help
ckauhaus has joined #nixos
dermetfan has joined #nixos
<srhb>
cyris212: I don't think there's usually any pollution from env vars in ghci, but you should also try adding --pure to your invocation.
ddellacosta has quit [Ping timeout: 250 seconds]
erictapen has quit [Quit: leaving]
<duairc>
A couple of derivations I'm working on both want to install a file ./share/icons/hicolor/icon-theme.cache, so if I try to install them both, there's a conflict. Should the icon-theme.cache file even be in the Nix output at all?
<wedens>
hm. and if I type `pkgs.emacs` in repl, it hangs printing "querying info about missing paths". but the same emacs derivation installs just fine
endformationage has joined #nixos
<srhb>
ghostyy: builtins.readFile
<ghostyy>
ahh great
frigate_freedom has left #nixos [#nixos]
<siers>
Is it possible to find out how much android-studio closure weighs? It is taking a while to download, so I'm curious.
reinhardt has quit [Quit: Leaving]
<sphalerite>
siers: if you use `nix build` you get a fancy progress meter
<sphalerite>
siers: aaah, if it's in the binary cache you can do nix path-info --store https://cache.nixos.org -S nixpkgs.android-studio
<wedens>
ok. now my entire system is frozen after I tried evaluating pkgs.emacs from repl :/
<siers>
sphalerite, that's nice!
<the-kenny>
Meta: Is the not-registered mode (+rf) forwarding to #nixos-unregistered still necessary? It's extremely annoying as I run IRC from home which suffers a few disconnects during the day.
<siers>
the office doesn't have optical fibre, it's not worthe the wait :P (my flat does though)
<sphalerite>
the-kenny: any reason not to register your nick?
<gchristensen>
the-kenny: let's find out
<the-kenny>
sphalerite: the-kenny is, the alternative which is used when the old connection is still open isn't :)
<gchristensen>
that is an easy fix! :P
<the-kenny>
sphalerite: To be honest I'm just too lazy to either figure out what scripts I need to auto-reclaim my nick, but #nixos is the only channel where this is an issue :)
<sphalerite>
the-kenny: you can use SASL to auth before you're actually in and regardless of the nick you're using
<wedens>
https://paste.ee/p/exofT this overlay freezes the system when I try to evaluate emacs from repl or use nix-build, but it works fine when used in systemPackages. this overlay doesn't have such problem https://paste.ee/p/DAHo6
<wedens>
I'm trying to pin nixpkgs specifically for emacs
<wedens>
sphalerite: makes sense. thanks! I wonder if I had the simillar kind of problem with overlays-compat which I decided to remove and just symlink overlays to ~/.config/nixpkgs
knupfer has joined #nixos
equivrel has left #nixos ["ERC (IRC client for Emacs 26.1)"]
Dedalo has quit [Quit: WeeChat 2.3]
equivrel has joined #nixos
Dedalo has joined #nixos
schopp0r has quit [Remote host closed the connection]
griff_ has joined #nixos
<gchristensen>
clever: do you have that evil persisting scoped import gist thing?
<{^_^}>
nixops#665 (by grahamc, 1 year ago, open): Support multiple versions of nixpkgs in one network
<wedens>
is there something wrong with recursion in overlays (via self) when using overlays-compat thing from https://nixos.wiki/wiki/Overlays page. I've stopped using it and decided to just symlink overlays to ~/.config/nixpkgs/overlays.nix, but I'm still curious to know what was wrong
<wedens>
https://paste.ee/p/cXt0z that's what resulted in infinite recursion with overlays-compat. I've tried moving `pinned` inside `let`, but it didn't help
<samueldr>
wedens: generally unless you know you want to refer to the overlay's own dependency, I think it's generally expected you would use super
<samueldr>
I don't know if the overlays-compat trick affects that in any way, I wouldn't exepect it
<samueldr>
the only thing it does is set NIX_PATH to use the same overlays `nixpkgs.overlays` is configured to use
<equivrel>
Hi, this is probably a very basic question: how do I override the version of a package listed in a package's buildInputs? I'm trying to override the derivation for the package mu (https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/mu/default.nix) to use the latest master, but it turns out that it now requires gmime3 instead of gmime2. I can see that nixpkgs provides both gmime2 and gmime3
<wedens>
samueldr: they'are defined in the same overlay, so yes, it's a reference to overlay's own dependency. what's interesting is that the problem disappeared when I removed overlays-compat and `nixpkgs.overlays = import ./overlays.nix`, `ln -s /etc/nixos/overlays.nix ~/.config/nixpkgs/overlays.nix`. I also did the same import for home-manager
<wedens>
or a note that it should be [] when pinning is done in overlay
equivrel has quit [Remote host closed the connection]
equivrel has joined #nixos
_lawlesseel has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
tzemanovic has quit [Read error: No route to host]
sigmundv_ has quit [Ping timeout: 244 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<wedens>
ffs. I've returned everything back to "unminified" configuration with overlays-compat and now I get "infinite recursion encountered, at undefined position" again. with `overlays = []` in all pinned nixpkgs
<AK>
is there some fast mirror to download minimal install media?
<wedens>
it persists if I remove any mentions of packages defined in the overlay
humanoyd has joined #nixos
humanoyd is now known as Guest11330
<duairc>
I'm making a derivation for a package that uses meson, and it can't find one of its dependencies. But when I build it manually in a nix-shell with all the buildInputs, it does find it. How can I debug what's happening here?
griff_ has quit [Quit: griff_]
<wedens>
what's the difference between doing `nixpkgs.overlays = [ import ./overlays.nix]` where overlays.nix is `self: super: { /* ... */ }` and `nixpkgs.overlays = import ./overlays.nix` where overlays.nix is `[(self: super: { /* ... */ })]`? it seems to make a huge difference
<{^_^}>
[nixpkgs] @kisonecat opened pull request #53580 → libsvg: init at 0.1.4 → https://git.io/fhGar
<dmj`>
gchristensen: ping
<dmj`>
How do I unescape literal quotes in nix to pass args to a bash script (specifically a configure flag with multiple linking options)
<exarkun1>
wedens: `nixpkgs.overlays = [ import ./overlays.nix ]`doesn't parse how you think it does, I expect
ddellacosta has quit [Remote host closed the connection]
Guest49383 has quit [Ping timeout: 245 seconds]
s2mitrov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jomik>
How would I go about creating a minimal nix-shell for use with direnv? Currently it seems to polute my environment with a lot of things I don't need.. :(
<LnL>
the simplest thing you can do is echo 'use nix -p curl' > .envrc
freeman42x has joined #nixos
fusion809 has quit [Remote host closed the connection]
<infinisil>
LnL: I think jomik means a minimal amount of env vars, which isn't really possible
<jomik>
Yeah, for some reason the nix shell messes up my emacs daemon :(
<LnL>
well they all are, depending on what you're doing
<Myrl-saki>
Sweet jesus, why is initrd in nixos-system?
<gchristensen>
why not, Myrl-saki?
perique has joined #nixos
<Myrl-saki>
Err, clarification. I literally don't know why.
<Myrl-saki>
(And at the same time, I don't know why not.)
<Myrl-saki>
I mean, I don't know what would happen if it would be removed.
<gchristensen>
sweet jesus indicates you have a real opinion here
<infinisil>
Do you know what initrd is?
<Myrl-saki>
Just that I'm working on stage 1 stuff right now, and it's a bit frustrating that I have to recompile squashfs all over again for the cdrom.
<Myrl-saki>
infinisil: initrd is the stage 1 root file system, right?
<Myrl-saki>
gchristensen: Yeah, my mistake. It was more of frustration than having an educated opinion.
<infinisil>
I'm not an expert myself, but I think that's right
<infinisil>
And I don't think there's a way around having this
<freusque>
yeah I wish there were cross-shell completion standards
lawlesseel has joined #nixos
<freusque>
+ " \"$@\"" l.o.l.
lawlesseel has quit [Remote host closed the connection]
_lawlesseel has quit [Remote host closed the connection]
<freusque>
that's a big configuration repo.
<m15k>
Someone has an idea howto configure nixos container to have a virtual ethernet interface bridged to the host ones. Currently the hosts interface is populated into container.
lawlesseel has joined #nixos
phaebz has joined #nixos
<infinisil>
freusque: Hehe yeah, it's a tiny bit messy at places
<infinisil>
freusque: Oh actually, I could install these bin aliases as both binaries and shell aliases, then I'd have completion in the shell and can still call them outside the shell
<freusque>
nice idea actually
griff_ has joined #nixos
freeman42x has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
jomik has joined #nixos
detran has joined #nixos
zukaboo has joined #nixos
periklis has joined #nixos
<Myrl-saki>
Yay. Finally got it working!
<jomik>
Hey guys, I recall having to run some command to refresh desktop entries in KDE/Plasma 5. I forgot which it is and can't seem to google it.. :(
<__monty__>
johnw: Fairly general. What's hnix's goal? And, is hnix's goal implementing a typed nix?
<gchristensen>
samueldr: that is totally doable
<samueldr>
sure, since it apparently is already done
<johnw>
hnix wants to make it easy for Haskell authors to contribute tooling to the Nix ecosystem. It also makes it easier to debug evaluation failures in Nix expression (I used it for this reason just a couple days ago). Typed nix is not on the agenda, but nothing is off of it either. :)
<samueldr>
though looks like something might not be right :/
<Myrl-saki>
Why does fileSystems."/nix/store" in iso-image.nix not have neededForBoot, and why does it work?
<semilattice>
so I don't think enabling will matter
vk3wtf has joined #nixos
<semilattice>
okay thanks for the massive amount of help
<simpson>
semilattice: Actually, one more thing. Maybe try avoiding 3DES, as that particular cipher can be *very* slow but is usually available for compatibility.
<freusque>
pbb fyy overriding XDG_CACHE_HOME works, too.
<simpson>
My SSH sessions seem to usually use ChaCha20, which is supposedly nice in terms of speed. I haven't benchmarked though.
<semilattice>
Yeah, I'm just looking at arcfour and blowfish, but chacha is apparently fast and safe just trying to get a speed comparison
<Myrl-saki>
Also. I git grepped, and it doesn't seem to be in the git tree at all.
<Myrl-saki>
Er, crap. I'm stupid. I just found it.
<semilattice>
and based on various sources, it seems either chacha or aes are pretty close to blowfish in speed, depending on whether you have hardware acceleration for aes
<{^_^}>
[nix] @edolstra merged pull request #2607 → Remove some bashisms from configure.ac → https://git.io/fhLYB
<Myrl-saki>
semilattice: You'd probably only want fast encryption for fast connections.
<Myrl-saki>
semilattice: Throughput-wise, fast encryption and slow encryption would be the same on a slow connection.
<semilattice>
That makes sense, yeah I was just looking at optimizing the connection speed
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #53605 → mingw: use current package set for headers → https://git.io/fhG9V
freeman42x[nix] has quit [Ping timeout: 252 seconds]
trevthedev has joined #nixos
<trevthedev>
hi all
<gchristensen>
hi dev trev
<trevthedev>
im trying to get unity3d on nixos (stable), but after taking 751123 years to unpack and all that, i get an error about rpath refrencing /build or something
<johnw>
hi, I want to run Mac build jobs from a NixOS Hydra server. It seems that release-lib.nix has some facility for making this happen. Are there any good instructions anywhere on how to do this?
strobelight has quit [Ping timeout: 268 seconds]
<trevthedev>
this might work, set sandbox off for now(tm)
<trevthedev>
will have to install unity3d 2017.x via unstable later
<clever>
Myrl-saki: this allows you to set fileSystems."/".iscsi = { enable = true; host = "..."; lun = "..."; };
<Myrl-saki>
clever: Oh yeah, after some time, I think my decision is to just use a named pipe or a port on the qemu system. Is this disgusting or nah?
<clever>
and then it magically connects to iscsi at bootup
detran has quit [Ping timeout: 252 seconds]
<Myrl-saki>
clever: This is w.r.t. impure inputs.
<Myrl-saki>
impure/interactive/something
MarcWeber has quit [Remote host closed the connection]
<clever>
Myrl-saki: if you just want to set the luks password, given that the nix store has the original version of everything and no security really exists, just accept that the password is going to be semi visible
philippD has joined #nixos
<clever>
Myrl-saki: and choose a password that only unlocks the luks and nothing else
<clever>
if somebody can see the store the ISO was made from and read it, they can already see the inputs anyways
<Myrl-saki>
True.
<gchristensen>
+1
<clever>
related, nix-serve, and the defaults in hydra, expose the entire host store to the world (but listing isnt enabled)
<clever>
so, if i was to paste the output of `ls -l /run/current-system` to this channel, you could then download my entire machine, right of my hydra
<clever>
including the secrets hydra uses to access the github api
<Myrl-saki>
Hm, I guess I should identify my attack vectors from the start, huh.
npmccallum has quit [Ping timeout: 244 seconds]
<gchristensen>
always
<clever>
so whatever machine is handling those secrets, must not act as a binary cache
justanotheruser has joined #nixos
knupfer has quit [Quit: knupfer]
eadwu has quit [Ping timeout: 250 seconds]
semilattice_ has joined #nixos
semilattice has quit [Ping timeout: 272 seconds]
iqubic has joined #nixos
dermetfan has quit [Ping timeout: 244 seconds]
fendor has quit [Read error: Connection reset by peer]
<appleclusters>
I'm following this https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134 for a LUKS-encrypted root, but I want to use zfs instead of ext4. I can't find anywhere in the wiki that advises how to do this properly, I'm assumign it has something to do with "zfs create ..." but are there any special options I should be wary of?