<clever>
pie_: once you find a ghc you dont like the look of, nix-store --query --roots it
<clever>
and if there are no roots, nix-store --delete it
<clever>
if there are roots, what you do will depend on where the roots are
Fare has joined #nixos
joebobjoe has joined #nixos
<pie_>
apparently i have 5 different libreoffices
<pie_>
but why???
<pie_>
same for pycharm
<clever>
pie_: run --query --roots on each, and pastebin all of the results
<pie_>
yup
Jason_Grossman has joined #nixos
<pie_>
oh you know what. i havent been running collect-garbage as sudo
<clever>
if ran with zero args, that doesnt matter
<clever>
and i prefer to avoid using -d, it can make it difficult to undo other mistakes later
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNugd
<pie_>
im probably have some system configs lying around, going by what this says
<pie_>
/nix/var/nix/profiles/system-97-link
<pie_>
something like sudo nix-collect-garbage --delete-older-than 5d would probably delete all my previous configs since i havent updated it in ages
hakujin4 has quit [Ping timeout: 265 seconds]
<clever>
pie_: i prefer to manually delete certain system generations, based on the results of --query --roots
<clever>
but you can also just let nix-collect-garbage --delete-older-than nuke em all
<pie_>
clever, i dont think i have anything useful in any previous generations, can i do something like "delete everytihgn except the last n generations
<pie_>
last i looked i think it only gave you the date option
<clever>
just last week, i had the need to do a rollback of several months to test something
<clever>
but i had GC'd everything :P
<pie_>
:p
<clever>
so i had to rebuild the old versions from nixpkgs
<clever>
surprisingly, it was trivial to downgrade from nixos-unstable to 18.03, and then even 17.09
<pie_>
well as long as everyhting is properly versioned and you version your configs...
Fare has quit [Ping timeout: 240 seconds]
<clever>
but that also confirmed, 17.09 was exibiting the same symptoms
<pie_>
alas.
<clever>
and after further research, those symptoms are how the hardware is supposed to work
<pie_>
lol wonderful
<clever>
and its getting a bit off topic so i'll switch rooms
<iqubic>
Does it matter what filesystem I use for a /boot directory?
<samueldr>
iqubic: probably
<clever>
iqubic: if your using EFI, it must be fat32 and tagged as the efi system partition
<samueldr>
(unless you move the efiSysMountPoint)
<iqubic>
I see. I'll try to do that with gparted if I can.
<dhess>
Can anyone recommend a mini-pcie 802.11ac adapter to use with NixOS?
<joepie91>
dhess: fwiw, realtek chipsets tend to have good Linux support
<joepie91>
(if nobody comes up with any concrete recommendations)
<dhess>
joepie91: boy I really don't like their Ethernet chipsets. I don't have any experience with their 802.11 chipsets, though.
<joepie91>
I was actually kind of surprised when I bought a USB wifi adapter with a realtek chipset, and accompanying it was a CD-ROM with drivers... including OSS Linux drivers, some form of install script and all
<joepie91>
probably the first time I've found Linux drivers on a driver CD :D
<dhess>
I think devwiki or whatever it's called is the best reference these days
<dhess>
yeah
<dhess>
tha's the one
jrolfs has joined #nixos
<dhess>
I was just hoping someone here could say, "Yeah, I use X and it's great."
<samueldr>
(I followed the wikidevi → wireless.wiki.kernel.org → wikidevi path trying to get as upstream as possible :))
<samueldr>
:( all wired here as wireless is badly overcrowded
<dhess>
different question, then: anyone around who's used the ath10k drivers with NixOS?
andreabedini has joined #nixos
joebobjoe has quit [Ping timeout: 260 seconds]
<sophiag>
okay, i'm massively screwing up trying to use opam2nix. would anyone mind taking a look at this gist? i've included the example that bootstraps it from github, then an example default.nix, and finally my weak attempt at fitting both of those into my configuration.nix: https://gist.github.com/Sophia-Gold/de6eb39e02747ec5b1ed8239c2b4c287
<clever>
sophiag: gist supports multiple files, which makes things easier to read
<clever>
sophiag: you can also use import to load other nix files, so you could make a simple nix file that just builds with nix-build
<clever>
sophiag: and then just import that into configuration.nix later, when it works
<sophiag>
i know...
<clever>
what error is it currently giving?
<sophiag>
"undefined variable 'fetchFromGitHub'"
<sophiag>
i'm clearly not understanding the structure of this
<clever>
that is an attribute of pkgs
<clever>
so you want pkgs.fetchFromGitHub
<clever>
same for stdenv and requireFile, which should not be on line 1 of configuration.nix
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sophiag>
huh, the first line has always been that way
<clever>
that looks like you took a default.nix and a configuration.nix and jammed them together
<sophiag>
i did figure it should be `pkgs.fetchFromGitHub`
<clever>
stdenv can only be used like that in a file being opened with callPackage
<sophiag>
it looks that way because i did!
cryptomonoid has quit [Ping timeout: 244 seconds]
<sophiag>
ah, okay. thanks
<clever>
its better to keep that default.nix as its own default.nix file
<sophiag>
i figured i should be calling it in packageOverrides ?
<clever>
and then load it with pkgs.callPackage ./path {}
<clever>
you can then put it into either a let block, or packageOverrides
<sophiag>
i think more likely i just don't want to use callPackage
<clever>
the main thing you gain from using packageOverrides is that it winds up inside the pkgs used by nixos, so you can just do pkgs.thing elsewhere, and you can overwrite the pkgs that other nixos modules is using
<clever>
but you are also free to just callPackage everything in a let block
<sophiag>
so like `let opam2nix = pkgs.callPackage { #that whole let block }; in` ?
cryptomonoid has joined #nixos
<clever>
just let opam2nix = pkgs.callPackage ./path/to/default.nix {}; in ...
<sophiag>
oh, you mean keep the file that bootstraps it from github separate and just import it into my configuration.nix
<clever>
yes
<sophiag>
i was just hoping to not have to manage the additional file
<clever>
its easier to organize and manage if you have a new file for each thing and feature
<sophiag>
yes, presumably i'm reaching that point in length
ghasshee has joined #nixos
<sophiag>
e.g. it would be nice to separate packages from boot from services
cryptomonoid has quit [Ping timeout: 240 seconds]
<clever>
when i was testing 17.09 to check for the bug i previously mentioned with pie_, i ran into an issue where binfmt-misc didnt exist yet
<sophiag>
clever: oh, would mind elaborating on what you meant about the first line? pretty sure i've _always_ had that there since i modified the default configuration.nix
<clever>
but that was a single file in my imports section, so it was trivial to just comment out that, and downgrade the machine
<clever>
sophiag: for packages, pkgs.callPackage will inspect the arguments the file is asking for, and get defaults from pkgs.defaults
<clever>
so if you run callPackage on { stdenv }:, then it will pass you the value of pkgs.stdenv
d1rewolf_ has joined #nixos
<clever>
but configuration.nix ix a nixos module, and it has a different set of args it can accept
<clever>
stdenv and requireFile are not in that set
<iqubic>
Is there a limit to the number of partitions I can have on the same hard drive?
<sophiag>
right, i don't use them so it's definitely weird i once put them in there
<sophiag>
i'm in a weird place because i'm been using nixos for nearly two years, but only just now got it to be manageable with my muxless graphics :/
<clever>
iqubic: for dos partition tables, 4 primary, one of which can then contain many extended, but you should never really use dos partition tables anymore
<clever>
iqubic: gpt tables have no limit
<clever>
iqubic: also, do you want to boot with legacy or efi?
<iqubic>
clever: I have my boot partition created already.
aarvar has quit [Ping timeout: 265 seconds]
<iqubic>
Let's just hope the many changes to my partition table don't prevent me from booting.
<clever>
iqubic: efi booting requires GPT
d1rewolf_ has quit [Remote host closed the connection]
d1rewolf_ has joined #nixos
<iqubic>
I'm taking this NixOS install trying to make it a dual boot with a few other OSes.
ericsagnes has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
dbmikus has quit [Quit: WeeChat 2.2]
jrolfs has joined #nixos
dbmikus has joined #nixos
<sophiag>
clever: sorry, one more thing (i hope...). i did move the code to build from github to another file and put callPackage in the outer let binding and that seems fine, but am uncertain where to put `opam2nix.buildPackage "someOpamPackage";`
<clever>
sophiag: that could be inside the file you load with callPackage
<sophiag>
oh, okay. i hadn't considered doing that
jrolfs has quit [Ping timeout: 264 seconds]
<sophiag>
but then it would seem i can just add that to imports and get rid of the let binding...which leaves me uncertain what i do bind to opam2nix if it's in the same file
ng0_ has joined #nixos
d1rewolf_ has quit [Ping timeout: 244 seconds]
ng0 has quit [Ping timeout: 250 seconds]
thc202 has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
n0qqe has joined #nixos
programmer4 has joined #nixos
d1rewolf_ has joined #nixos
noqqe has quit [Ping timeout: 260 seconds]
n0qqe is now known as noqqe
aanderse-laptop has quit [Ping timeout: 265 seconds]
programmer4 has quit [Ping timeout: 260 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IRCsum has quit [Remote host closed the connection]
spear2 has joined #nixos
IRCsum has joined #nixos
IRCsum has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 256 seconds]
programmer4 has joined #nixos
Supersonic has joined #nixos
andreabedini has joined #nixos
programmer4 has quit [Remote host closed the connection]
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
programmer4 has joined #nixos
slack1256 has joined #nixos
IRCsum has joined #nixos
IRCsum has quit [Remote host closed the connection]
<tertle||eltret>
how do i enable realtime audio in nixos?
<tertle||eltret>
oh maybe i know
<tertle||eltret>
add user to audio group?
programmer4 has quit [Remote host closed the connection]
<iqubic>
Yeah, that might work.
<tertle||eltret>
rt audio works if I use sudo
<tertle||eltret>
but i dont wanna do dat
<iqubic>
Add user to audio group
<tertle||eltret>
if u know what i mean
<tertle||eltret>
trying that now
<iqubic>
I know. Add user to audio group.
<tertle||eltret>
anyluck with ur dual booot?
lambdamu has joined #nixos
<iqubic>
Yeah. It went really well once I was able to get the liveUSB working.
<sophiag>
jfc...i was wondering all afternoon what i was doing wrong with opam2nix and i think the answer is the function i've been trying to call may just be broken
_d0t has quit [Ping timeout: 256 seconds]
mounty has joined #nixos
sbdchd has quit [Remote host closed the connection]
<tertle||eltret>
seems to be working now
sbdchd has joined #nixos
<tertle||eltret>
ty
sbdchd has quit [Remote host closed the connection]
programmer4 has joined #nixos
sbdchd has joined #nixos
dbmikus_ has joined #nixos
chreekat has quit [Quit: quitting]
dbmikus has quit [Ping timeout: 256 seconds]
programmer4 has quit [Remote host closed the connection]
kyren_ has quit [Ping timeout: 260 seconds]
kyren has joined #nixos
programmer4 has joined #nixos
igo95862 has joined #nixos
programmer4 has quit [Remote host closed the connection]
igo95862 has quit [Quit: igo95862]
jperras has quit [Quit: WeeChat 2.2]
sbdchd has quit [Remote host closed the connection]
<iqubic>
Is there a way to check if a swap partition is "on" Like with the swapon command.
<sir_guy_carleton>
looking at my system, the swap parition is mounted at mount pount [SWAP]
<arahael>
My system doesn't have swap, but I'd assume that swapon -sa would do that.
<iqubic>
Alright. Amazingly linux can handle having multiple swap partitions in use at once.
<arahael>
iqubic: ... You mean other systems can't do that!? ;)
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
programmer4 has joined #nixos
kyren has joined #nixos
<iqubic>
I just thought that there might be some issue with multiple swap partitions both being used.
<iqubic>
At the same time.
sigmundv_ has quit [Ping timeout: 264 seconds]
justan0theruser has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
BlessJah has quit [Ping timeout: 255 seconds]
programmer4 has quit [Ping timeout: 256 seconds]
lambdamu has quit [Ping timeout: 248 seconds]
<arahael>
iqubic: I don't remember any special provision being done there, but I would hope that the faster one gets prioritised. I do recall that "compressed memory" is achieved via swap, though you'd have to set that up yourself, I think.
<arahael>
At least, a decade ago when I last looked at multiple swap partitions, I think it would automatically strip them, doubling the speed.
<arahael>
*stripe, ie, RAID-0.
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
programmer4 has joined #nixos
kyren has joined #nixos
spear2 has quit [Quit: Leaving]
<Lears>
I'm pretty sure that would slow it down on my system, since one is more than twice the speed of the other.
<Lears>
swapon --show gives priorities and I've never seen the lower priority partition in use without the other one full, but it's possible it treats SSDs differently.
programmer4 has quit [Remote host closed the connection]
programmer4 has joined #nixos
spear2 has joined #nixos
aarvar has joined #nixos
drakonis has quit [Remote host closed the connection]
<clever>
angerman: staging is mainly where experimental things go, that are likely to break nixpkgs entirely
<clever>
angerman: so they can be tested fully on hydra without blocking master
<{^_^}>
[nixpkgs] @angerman closed pull request #33922 → Adds support xen domU lightweight containers → https://git.io/vNlJS
<{^_^}>
[nixpkgs] @angerman closed pull request #37254 → [WIP] mingw-w64 for haskell cross compilation with ghc. → https://git.io/vxOLw
<angerman>
clever: hmm alright. Just saw that the lib fix for ghc was on staging and not on master.
kyren has joined #nixos
kyren has quit [Client Quit]
<angerman>
clever: guess domenkozar wants to consolidate that into haskell-updates prior to bringing it into master.
slack1256 has quit [Remote host closed the connection]
kyren has joined #nixos
drbrule has quit [Quit: Lost terminal]
kyren has quit [Client Quit]
ersran9 has quit [Ping timeout: 248 seconds]
kyren has joined #nixos
orivej has joined #nixos
Fare has joined #nixos
mahalel_ has quit [Ping timeout: 260 seconds]
revskill has quit [Read error: Connection reset by peer]
revskill has joined #nixos
vmandela has joined #nixos
dbmikus__ has joined #nixos
dbmikus_ has quit [Ping timeout: 256 seconds]
shabius has quit [Ping timeout: 256 seconds]
shabius has joined #nixos
growpotkin has left #nixos [#nixos]
Fare has quit [Ping timeout: 244 seconds]
kiloreux has joined #nixos
<kiloreux>
Can I have multiple source on a nix derivation ? Assuming I use more than one tar file for example.
sbdchd has joined #nixos
<srhb>
kiloreux: nix edit nixpkgs.tzdata
vcunat has joined #nixos
<kiloreux>
srhb, Thank you. Do you know how I could place everyone of the sources ?
vcunat has quit [Client Quit]
<srhb>
kiloreux: I didn't understand that.
<kiloreux>
Put one in /pkg for example and another inside /pkg/example
<srhb>
In unpackPhase?
<srhb>
Or installPhase?
<kiloreux>
unpackPhase
<kiloreux>
I think that one
<clever>
just run tar -xf ${src2}, maybe in the postUnpack
sbdchd has quit [Ping timeout: 256 seconds]
<srhb>
Then you probably want to be defining your own src1, src2, yeah
<srhb>
The best you can really do with srcs is to iterate over each of them during unpackPhase
<kiloreux>
In that case how can I specify LD_LIBRARY_PATH to be useful inside the expression ? Do I put it inside makeFlags ?
alex`` has joined #nixos
Fare has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pie_ has quit [Ping timeout: 248 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyren has joined #nixos
kyren has quit [Client Quit]
kyren has joined #nixos
programmer4 has quit [Ping timeout: 240 seconds]
kyren has quit [Client Quit]
<srhb>
kiloreux: I think you need to unpack that question a bit. It's so isolated that it's hard to guess exactly what you're trying to achieve.
freeman42x]NixOS has quit [Ping timeout: 244 seconds]
kyren has joined #nixos
<kiloreux>
Sure. Thank you. Basically I am trying to compile a package (Imagemagick) and I am trying to download all the libraries in the same expression and put them under their respective directories. For example, download zlib and put it under imagemagick/zlib and download libpng and put it under imagemagick/png. (the nix expression from nixpkgs doesn't work for my use case)
jackdk has quit [Remote host closed the connection]
<clever>
kiloreux: imagemagick is already packages
<kiloreux>
clever, Thank you. Hence the (the nix expression from nixpkgs doesn't work for my use case)
<clever>
ah
<clever>
what part of it is not working?
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infinisi1 has joined #nixos
<kiloreux>
I kind of need to compile an old version of ImageMagick (I have a nix expression from the newest version running perfectly). But I keep running into problems of it not being able to recognize image formats.
infinisil has quit [Read error: Connection reset by peer]
<clever>
ah
<kiloreux>
I couldn't identify the issue behind it and thought I probably should try a different approach
<kiloreux>
clever, do you have any idea how I could proceed, please ?
<clever>
can you pastebin an error and the nix file?
<kiloreux>
clever, https://pastebin.com/8MHewE5k Of course every "my_*" is for a nix expression I built myself to make sure versions are compatible. (I just copied the original nix expression from nixpkgs and changed version)
<clever>
kiloreux: line 13 is baiscally useless
<kiloreux>
Thanks clever, I did some modifications to paste it.
<clever>
kiloreux: i dont see anything obviously wrong though, nor an error
<kiloreux>
Yes, because it compiles correctly
neeasade has quit [Ping timeout: 256 seconds]
<kiloreux>
and produces a functioning binary. Except that libraries necessary to work won't be loaded when you start the binary.
<clever>
is it trying to open things with dlopen?
<kiloreux>
I am not sure what that means :/
programmer4 has joined #nixos
<clever>
check the image magick source code for dlopen
<kiloreux>
clever, yes. I can see it has multiple occurences there.
<clever>
then youll want to use the postFixup phase to either wrapProgram LD_LIBRARY_PATH, or patchelf some extra things into the rpath
<{^_^}>
[nixpkgs] @FRidh pushed 383 commits to staging-next: https://git.io/fNu17
<kiloreux>
clever, What should the value of LD_LIBRARY_PATH be ?
<clever>
it should be a path pointing to the lib dir that contains the missing libraries
<clever>
> lib.makeLibPath [ libc ]
<{^_^}>
attribute 'makeLibPath' missing, at (string):162:1
<clever>
> lib.makeLibraruPath [ libc ]
<{^_^}>
attribute 'makeLibraruPath' missing, at (string):162:1
<clever>
> lib.makeLibraryPath [ libc ]
<{^_^}>
undefined variable 'libc' at (string):162:23
<clever>
the script at the end is ran in bash, and must produce a $out and exit with status 0
<clever>
what you do in there is up to you
<iqubic>
Right. I assume a failed test would exit with some status other than 0. Is that fine?
<clever>
yep
<iqubic>
Cool.
sbdchd has joined #nixos
<clever>
for initial testing of the testing, you can just run nix-build on it
<iqubic>
Yeah. I'd first write the tests, then create the nix file, and make sure that nix-build can run my tests. Then I'll get hydra set-up.
* clever
heads off to bed
<iqubic>
Night.
<iqubic>
G'Night.
sbdchd has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Client Quit]
hyper_ch2 has joined #nixos
tzemanovic has quit []
Fare has joined #nixos
johnw_ is now known as johnw
johnw has joined #nixos
johnw has quit [Changing host]
<iqubic>
Why do we need docker if we have nix-shell?
<srhb>
iqubic: I've always found that development that depends on using docker images is immensely painful and unnecessary, so I can't answer that question :P
<iqubic>
aren't docker and nix-shell both sandboxes?
<srhb>
Not really
<srhb>
If you care about "system isolation"-sandboxing nix-shell doesn't do much for you
<etu>
iqubic: nix-shell is great for temporary envs (I think), and a great tool for development. But I wouldn't deploy things using nix-shell
<srhb>
nix-shell is more like a shadow over your system.
<srhb>
Which is great and usually sufficient for development.
alex`` has quit [Ping timeout: 240 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
<etu>
Bleh, all tests passed long ago now but still no update.
iqubic` has joined #nixos
ivan has joined #nixos
iqubic` has left #nixos [#nixos]
iqubic has quit [Ping timeout: 265 seconds]
iqubic has joined #nixos
mariatsji has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
makergrl has joined #nixos
mariatsji has quit [Remote host closed the connection]
hamishmack has joined #nixos
ng0_ has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #44145 → Update skarnet packages & add ssl support to s6-networking → https://git.io/fNuy5
sbdchd has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
sbdchd has quit [Ping timeout: 256 seconds]
civodul has joined #nixos
andreabedini has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<andreabedini>
I am confused (as always), `nix-env -qaP -A nixpkgs.ghc` returns `nixpkgs.ghc ghc-8.4.3`
<andreabedini>
but `nix-instantiate '<nixpkgs>' -A ghc` creates `/nix/store/....-ghc-8.2.2.drv`
<andreabedini>
in .nix-defexpr/channels/ I only have nixpkgs (plus binary-caches and manifest.nix which I am not sure what they are)
leothrix has joined #nixos
<tilpner>
Yes, you could remove channels and replace them with this <nixpkgs> redirection
<andreabedini>
tilpner: thanks, I will try that, I still have no idea where the other ghc is from ...
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<andreabedini>
hold on, doesn't <nixpkgs> refer to a channel?
<cocreature>
<nixpkgs> is resolved using the NIX_PATH environment variable
<andreabedini>
ah!
<andreabedini>
I know what's going on now
<andreabedini>
today I did nix upgrade-nix, and now my nix path is pointing to /nix/var/nix/profiles/per-user/root/channels
<andreabedini>
^root^ not my username
<andreabedini>
so there's two sets of nixpkgs flying around
<andreabedini>
cocreature: tilpner thanks for the help! <3
hakujin4 has joined #nixos
thc202 has joined #nixos
goibhniu has joined #nixos
hakujin4 has quit [Ping timeout: 256 seconds]
<RetardedOnion>
how do i add entries to config files? i want to add something to /etc/libvirt/qemu.conf. can i specify that in /etc/nixos/configuration.nix?
mariatsji has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic>
Why are there two sets of nixpkgs?
winem_ has joined #nixos
sophiag has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 255 seconds]
johanot has joined #nixos
<teto1>
RetardedOnion: you can search "man configuration.nix" for "qemu" or you can look at the libvirtd module taht does generate a qemu.conf
mariatsji has quit [Remote host closed the connection]
kiloreux has quit [Read error: Connection reset by peer]
vmandela has quit [Quit: Leaving]
Jason_Grossman has quit [Ping timeout: 256 seconds]
<mikky>
hi, I get "error: while setting up the build environment: getting attributes of path '': No such file or directory" when trying to install from another disto and I have no idea what's wrong. --show-trace gives nothing so I have no idea what needs to be fixed. Is there a way to debug this?
programmer4 is now known as Myrl-saki
Myrl-saki has quit [Changing host]
Myrl-saki has joined #nixos
eskytthe has joined #nixos
kiloreux has joined #nixos
vmandela has joined #nixos
sbdchd has joined #nixos
<goibhniu>
hi mikky, does this happen when trying to install nix?
jluttine has quit [Ping timeout: 268 seconds]
sbdchd has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
<mikky>
yes, goibhniu, nix-install does that
<goibhniu>
mikky: ah, so you've already installed nix ... can you install stuff at all? e.g. hello
<mikky>
nope, goibhniu, installing from Arch. I only have some kind of nix ecosystem in Arch - been following the Installation manual.
<mikky>
please note that I'm not doing the in-place install but rather installing to separate partition
<mikky>
did all the steps up-to nix-install
<goibhniu>
what steps are you following?
<goibhniu>
have you installed nix via an arch package?
<goibhniu>
and you have mounted /nix on a separate partition, is that it?
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<hyperfekt>
However, I am not sure how to change the definition of security.pam.services, since pamOpts is defined locally in pam.nix and thus not easily extensible. Any idea how I could get access to it without copy & pasting it or changing pam.nix?
periklis has joined #nixos
asymmetric_ has joined #nixos
<{^_^}>
[nixpkgs] @Izorkin opened pull request #44149 → zsh-command-time: disable exec flag → https://git.io/fNzJW
iyzsong-x has joined #nixos
trebuh is now known as Marttoni
Marttoni is now known as trebuh
iyzsong has quit [Ping timeout: 256 seconds]
hph^ has joined #nixos
smolboye has joined #nixos
<smolboye>
hello
<smolboye>
i plan on installing nixOS, really excited about it
<Akii>
whoo!
<smolboye>
i have one question though, nix uses systemd-boot on efi by default right?
<tilpner>
The default config still generates grub lines
<symphorien>
There is no default boot loader as far as I know
<smolboye>
uh ok
<tilpner>
But switching to systemd-boot is just commenting out everything grub-related and then writing one line
<smolboye>
is it just as straighforward as other oses to replace it with an efistub
periklis has quit [Remote host closed the connection]
<smolboye>
i dont use any other distro so i would like my kernel to straight up boot into the os instead of using a bootloader
<benkolera>
The config generated for me always has systemd boot and EFI, weird. I've never had to change from the defaults. Does the default config change based on hardware?
<tilpner>
benkolera - Aha, it checks if /sys/firmware/efi/efivars exists
<tilpner>
And outputs systemd-boot or grub things, depending on the result
<smolboye>
i would like to know about efi stub
<smolboye>
i dont want a bootloader x-x
<symphorien>
Nixos requires an initrd, and besides without a boot loader you may lose the benefit of being able to select a previous generation
<smolboye>
ah so i need a bootloader reeee
<smolboye>
ok
<smolboye>
thanks very much, i will stick around soon!
NightTrain has quit [Quit: Lost terminal]
__monty__ has joined #nixos
<smolboye>
also, any other thing i need to know before diving into the installation?
<Akii>
I need to add this to the "pkgs" somehow because I'm referencing it elsewhere
__monty__ has quit [Quit: leaving]
<Akii>
so maybe I need that overlay afterall?
<tilpner>
An overlay would be prettier
<smolboye>
also uh im a bit confused
<smolboye>
so the packages that i state in the config are the only ones that build as a system package, and the ones i install through the package manager are per-user packages, right?
<symphorien>
Yes
<Akii>
tilpner ok, thanks :) I still get to refactor this a lot
madjar has joined #nixos
<smolboye>
thanks a lot, im gonna get installing real quick
<Akii>
whoo! got it to work; nice
<smolboye>
also another thing, im sorry if im questioning a lot
<smolboye>
i have a bcm4331 wireless chipset, and since nixOS is unlike other distros ive used
<smolboye>
i read somewhere that the b43 driver is included by default?
<Akii>
I could indeed do a garbage collect sometimes
<etu>
Akii: But if the symlink is there it won't get garbage collected :)
<Akii>
I deleted that one already
jD91mZM2 has joined #nixos
<Akii>
Whoo! 3447 store paths deleted, 7884.92 MiB freed
<tenten8401>
anyone know what the package name is that I'd have to override for nvidia beta drivers? All I know is it's setup using services.xserver.videoDrivers, but I don't know what package it's actually installing/using for that
cryptocat1094 has joined #nixos
knupfer has joined #nixos
<Barnabas[m]>
Do gcc manpages work for anybody else? "No manual entry found for gcc"
<cryptocat1094>
For some reason I get no result when I do `nix search -u hello` but I can do `nix-env -i hello` successfully.
<tenten8401>
is nix-channel up to date? that's my only guess
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<cryptocat1094>
It is. I think something went wrong with the daemon installation.
<cocreature>
maybe try to update the nix search cache?
<cocreature>
nix search -u iirc
<hodapp>
"GLib-GIO-ERROR **: No GSettings schemas are installed on the system" whyyyyyyyyyyy does this fatal error just pop up at random and break applications
<{^_^}>
[nixpkgs] @ryantm merged pull request #43712 → [haskell/generic-builder] windows always has an active library → https://git.io/fNGYH
<{^_^}>
[nixpkgs] @ryantm pushed 2 commits to haskell-updates: https://git.io/fNzqg
<cryptocat1094>
cocreature: I did, it was the first command I ran.
<cryptocat1094>
For some reason all features beside search work. :/
<tenten8401>
alright, so there's apparently not an actual nvidia driver "package", which means I can't exactly overlay it. Would there be some way other than trying to install it manually from nvidia's website to get 396?
smolboye has joined #nixos
<tenten8401>
so apparently 396 is out of beta already, I'll see if I can make a PR somehow
IRCsum has joined #nixos
dbmikus__ has quit [Ping timeout: 260 seconds]
jperras has joined #nixos
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
the has quit [Remote host closed the connection]
hakujin4 has joined #nixos
<tenten8401>
erhm... nvidia doesn't seem to be providing drivers for x86 systems anymore from what I can tell
<tenten8401>
does this mean we'd have to make a seperate stable version for 32-bit users?
kyren has joined #nixos
tzemanovic has joined #nixos
Denommus has joined #nixos
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<Denommus>
how well supported is nixops in MacOS? Is it usable?
tzemanovic has quit [Ping timeout: 248 seconds]
<tenten8401>
I mean, I've used nixops on a non-nixos distro, I would think it'd just be as simple as installing the nix package manager and then nix-env -i nixops
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
biopandemic has joined #nixos
cmacrae has joined #nixos
dbmikus__ has joined #nixos
<cmacrae>
LnL: Yo! o/ Any idea how I might execute some commands using 'sudo' in a postInstall parameter? Got some paths I need to link for Docker on macOS into /usr/local/bin
asymmetric has joined #nixos
<gchristensen>
postInstall runs at build time, and can't write to /usr/local or anywhere outside of the build directory and $out
<cmacrae>
Damn, okay thanks gchristensen - don't think this is gunna be acheivable then :(
dbmikus__ has quit [Client Quit]
hyper_ch2 has quit [Quit: Page closed]
<LnL>
yeah nope, something like that would need to run outside of the build like activation cripts
dbmikus has joined #nixos
fragamus has joined #nixos
<cmacrae>
LnL: could you expand a but more on activation scripts? For instance, is that what you've used to implement your 'services.activate-system' module in nix-darwin?
madjar has quit [Quit: Connection closed for inactivity]
dramforever has joined #nixos
<fragamus>
I load this: nix-env -f "<nixpkgs>" -qaP -A haskellPackages.contravariant but afterwards I can't access Data.Functor.Contravariant in my ghci session
<Denommus>
I manually created the /var/gitlab/state/lib file and now it goes through this step
<Denommus>
BUT
<Denommus>
it's saying that the database gitlab doesn't exist
<gchristensen>
samueldr: hmmm that is very nice
Fare has joined #nixos
<gchristensen>
samueldr: bash?
<samueldr>
and the host is shown if I ssh-in
<samueldr>
yes
<Denommus>
but if I access the database with psql, I can access it
<samueldr>
there's a function missing
joebobjoe has joined #nixos
lutzmor has quit [Ping timeout: 276 seconds]
<samueldr>
gchristensen: updated with "lib" functions, my bashrc has many helpers like that that creates bash functions only available during the lifetime of the bashrc to not pollute the system
<gchristensen>
nice!
winem_ has quit [Ping timeout: 276 seconds]
iyzsong-x has quit [Read error: Connection reset by peer]
<Denommus>
where's the host, username and password?
cmacrae has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
iyzsong has joined #nixos
wucke13 has quit [Ping timeout: 276 seconds]
guest__ has joined #nixos
<Denommus>
could I replace all this preStart somehow?
wucke13 has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
ben______ is now known as ben
fragamus has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.0]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
lo_mlatu has joined #nixos
guest__ has quit [Ping timeout: 252 seconds]
<lo_mlatu>
hi, I can't get command-not-found working, I see some issues and seems I need to munually fetch `nixexprs.tar.xz` then point the dbPath to it? Is there a more convenient way?
<lo_mlatu>
And why is that not added when `nix-channel --update` ?
Neo-- has joined #nixos
<Denommus>
can overlays be used to override systemd.services?
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 268 seconds]
revskill has quit [Ping timeout: 265 seconds]
joebobjoe has quit [Ping timeout: 264 seconds]
<clever>
Denommus: overlays can only change pkgs, you need nixos modules to change services
Neo-- has quit [Ping timeout: 264 seconds]
tusj has joined #nixos
<srk>
you can also override these from configuration.nix directly
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tusj has quit [Ping timeout: 244 seconds]
lutzmor has joined #nixos
Judson has joined #nixos
lo_mlatu has quit [Quit: Page closed]
Judson is now known as Guest72487
Sonarpulse has quit [Ping timeout: 260 seconds]
sigmundv_ has quit [Ping timeout: 256 seconds]
guest has joined #nixos
<worldofpeace>
What's the best way to check an absolute store path's liveness?
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
tusj has joined #nixos
igo95862 has joined #nixos
<clever>
worldofpeace: nix-store --query --roots
<worldofpeace>
ugh I always forget everything I want is under `--query` :)
lutzmor has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 240 seconds]
simpson has joined #nixos
ajs124 has joined #nixos
<simpson>
Hi! Using Python's virtualenv, I can't run standard $(pip install) invocations because the zipfile module is easily angered: https://bpaste.net/show/40522b67bb96
<simpson>
I can, for most dependencies, use existing Nix expressions, but I'm curious as to whether there's a more permanent remedy. I'm on OSX if it matters.
Fare has joined #nixos
<FRidh>
simpson: are you in a nix-shell
<FRidh>
?
PLPD-Bot has quit [Remote host closed the connection]
<Denommus>
clever: do you have any simple example? All I need to do is replace gitlab's preStart
<simpson>
FRidh: Yeah.
<clever>
Denommus: just set the value again using mkForce
varesa2 has joined #nixos
<varesa2>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<varesa2>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<clever>
tenten8401[m]: oh right, the channel wont update until everything in tested passes, AND there are zero queued jobs for that eval
<clever>
the -small channels omit the zero queued jobs check, and therefor have worse binary cache coverage, but update faster
<tenten8401[m]>
it looks like everything's done except chromium
Henson has joined #nixos
<tenten8401[m]>
which is still testing
Sonarpulse has joined #nixos
<tenten8401[m]>
iqubic: I don't think you need to but you can
<Henson>
is it possible to use Nix to manage a directory like /etc, where changes are tracked by the environment generation, and you can roll back to a previous generation?
dbmikus_ has quit [Ping timeout: 240 seconds]
<tenten8401[m]>
yes I think
<tenten8401[m]>
but only with /etc
<ajs124>
Henson, are you using Nix on NixOS? Because on my NixOS system, there are barely any files in /etc that weren't put there by Nix
<Henson>
ajs124: just the Nix package manager
<tenten8401[m]>
environment.etc."yourdir/yourfile.conf".text = "whatever" should be able to track changes
<Henson>
tenten8401[m]: thank you for the pointer!
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simpson has left #nixos ["WeeChat 1.0.1"]
fragamus has joined #nixos
<tenten8401[m]>
keep in mind, I'm not sure if it'll work on non-NixOS distros
<tenten8401[m]>
could be wrong
<Henson>
is there some high-level deployment kind of thing for Nix? I know there's NixOps. I have a system that is offline that I want to periodically update with new software. Using Nix to create a reproducible environment is very attractive. Being able to install updates to packages and revert in case of a problem is very desirable. This seems pretty much like what nix-env is able to do. But...
ersran9 has quit [Ping timeout: 256 seconds]
<Henson>
is this the right tool for the job? This isolated Nix environment would be started up as part of the system's init script, and software would be run from there on startup.
<Henson>
applying binary patches to the OS would be an option, then I could be sure what version of the software the system is running. But then I don't get the reproducible and isolated environment that Nix provides. But if I use Nix then it seems less suitable to apply a binary diff to in order to upgrade. I could send in new Nix packages, put them into the store, and them install them into the new...
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Henson>
environment to effectively upgrade the software. This would also allow me to roll back a generation if problems arise with the new software.
<gchristensen>
maybe check out nix-deploy from Awake Security
<tilpner>
IIRC nixos-rebuild can do remote deploys too?
<gchristensen>
it sure can!
<Henson>
are these tools specific to NixOS, though? I'd be running this on a Debian system.
kyren_ has quit [Read error: Connection reset by peer]
<cransom>
remote builds to local deploys even.
<gchristensen>
Henson: nixos-rebuild yes, nix-deploy no
kyren has joined #nixos
<cransom>
and if you pick it apart, nixos-rebuild is just a couple commands that you need if you want to deploy to a remote host.
tusj has quit [Ping timeout: 240 seconds]
lutzmor has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
tusj has joined #nixos
<Notkea>
hello, I'd like to package a java/gradle application for nixos
<Notkea>
the gradle build tool downloads external dependencies itself during the build, making it impossible to run on the official hydra
<Notkea>
I also see that some java package only download prebuilt jars
<Notkea>
is it a common practice?
hakujin4 has quit [Ping timeout: 256 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
Notkea: best practice is to figure ou a way to build from source....
<samueldr>
... which is sometimes awfully hard with some java build-systems
<samueldr>
the main idea is to *somehow* pre-download the external resources when possible, and provide them in a way that will make the build system happy
<samueldr>
for most maven-based build it seems it's possible to use a fixed-point derivation which downloads everything, then removes the few bits of impurities
<tertle||eltret>
how do I enable the nouveau instead of Nvidia?
<Denommus>
srk: yes, I've been having problems the whole day
<tertle||eltret>
or do I just remove the nvidia lines in config
<srk>
Denommus: I've managed without any issues last time I've tried (few months ago). I wouldn't try to run it in production thought as people reported breakage quite often. gitea looks nice btw
<srk>
maybe with nixos it's manageable but still scary :D
<Denommus>
srk: did you use nixops, or just added it to your NixOS configuration?
<srk>
nixops
<Denommus>
did you use a local postgresql or an external one?
<{^_^}>
[nixpkgs] @ryantm pushed commit from @NeQuissimus to master « hnix: Fix build »: https://git.io/fNzQj
<infinisi1>
gchristensen: What was that quiet of mawk? I didn't even see them in the channel, at all
<gchristensen>
they're a spammer
lutzmor has quit [Remote host closed the connection]
<infinisi1>
I don't have any record of that, which channels?
<tertle||eltret>
any of u guys use a program to remote in from windows into a nix box
<gchristensen>
I don't record the channel, heh, however -- the is in many large channels to look for spammers before they get to smaler channels
<tertle||eltret>
with GUI
<infinisi1>
I see a lot of legitimate activity in ##linux from my logs
<iqubic>
What is the?
<gchristensen>
the is an irc bot muting spammers due to a widespread spam issue that was going on yesterday, less today
fragamus_ has quit [Read error: Connection reset by peer]
<gchristensen>
(infinisi1, if you're worried about people being unfairly muted forever, I'm going to go back and unmute them all)
<infinisi1>
Hmm alright that may be
<infinisi1>
However, that nick hasn't ever been in this channel, so it's a bit weird to quiet it
<gchristensen>
neither have the other spammers it muted/banned before they came :)
<LnL>
yeah, isn't that a good thing?
Fare has quit [Ping timeout: 240 seconds]
<LnL>
if they where in here it would have posted at least one message
<infinisi1>
Good point hah
* infinisi1
shuts up now
<gchristensen>
they spam and get killed by the network fast enough that if they get in and are not muted already, they will successfully spam. the uses large channels as a hint of what is to come so we can avoid the spam in the first place.
<gchristensen>
tonight / tomorrow I'll be removing all the bans / mutes put in place through this system
biopandemic has quit [Quit: Quit.]
<samueldr>
the bad thing with their attack is how it uses a list of "known names"
biopandemic has joined #nixos
biopandemic has quit [Client Quit]
<samueldr>
it's not a random list, but if you search some of the names, you will end up finding usernames on some services
biopandemic has joined #nixos
<samueldr>
so, effectively, it creates a kind of DOS on those names if not careful :(
halfbit has joined #nixos
<gchristensen>
not if not careful, it literally absolutely does
<gchristensen>
the good news, though, is tonight / tomorrow I'll be removing all the bans / mutes put in place through this system ;)
<infinisi1>
Where did my not-1-postfixed name go, damn you, networks
<samueldr>
removing them is being careful
<gchristensen>
:)
<LnL>
yeah, with this kind of stuff it's best to make it temporary
* samueldr
wants to move this talk to #nixos-chat
<gchristensen>
sgtm!
Denommus has quit [Remote host closed the connection]
<worldofpeace>
Actually nvm Jan want's to get all of those in one swoop
Lisanna has joined #nixos
rtjure has quit [Ping timeout: 240 seconds]
joebobjoe has joined #nixos
joelpet has quit [Ping timeout: 264 seconds]
NightTrain has joined #nixos
guest has quit [Quit: Page closed]
winem__ has quit [Remote host closed the connection]
kamme has joined #nixos
camsbury has quit [Quit: Leaving...]
halfbit has quit [Ping timeout: 265 seconds]
sanscoeur has quit []
<kamme>
Hi,I'm trying nixos for the first time and installed in on a virtualbox vm. I tried changing my configuration.nix file and did a build-vm. When I try to start the via via /nix/store/XXXX/bin/run-basenix-vm I get this error: Could not initialize SDL(No available video device) - exiting
<kamme>
It's not really clear what I did wrong, can someone point me to what I did wrong?
<ajs124>
did you do build-vm _in_ the VM?
<kamme>
ajs124: yes, I did a cli install in a virtualbox and would like to test the changes, so actually do a vm in a vm
<samueldr>
the vm will run with qemu graphical output by default
<samueldr>
and as you said "cli install" I assume you don't have X started in your VM
<kamme>
correct, so that is what's wrong
<samueldr>
(virtualbox, unless it changed recently, doesn't have hardware virtualization pass-through, if it changes anything for your use case)
<kamme>
thanks, I'll have a look if I can do it without X
Jason_Grossman has joined #nixos
<clever>
kamme: when using nixos in virtualbox, you use `nixos-rebuild switch` as normal
<kamme>
samueldr: it will probably be pretty slow yes, but that's ok, I'm just testing things for now
agander has quit [Remote host closed the connection]
agander has joined #nixos
<kamme>
clever: I tried that before and it works, I just wanted to test with build-vm as it's a pretty nice feature
<samueldr>
I'm not 100% confident, but looks like `virtualisation.qemuGraphics = false;` would do it
<clever>
kamme: ah
<kamme>
samueldr: thanks, I'll have a look
<clever>
samueldr: yep, that will work, and it will give some false errors that you can safely ignore
* samueldr
now blames to see when the option was added and if it's documented it in the manual
<clever>
samueldr: its never in the manual
<clever>
samueldr: the whole qemu-vm.nix is optionally added by the build-vm flag
halfbit has joined #nixos
<clever>
so its missing when the docs scan things
erasmas has quit [Quit: leaving]
<samueldr>
there could easily be a section for the options *about* virtualisation options, I'm not talking about the options listing :)
<clever>
yeah, it has to be manually documented
<samueldr>
yeah, that bit I understood quickly
<clever>
that weird way it works also means that when nixos-rebuild tries to build nix, it will not support those options
rtjure has joined #nixos
<clever>
causing some false errors
knupfer has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @LnL7 opened pull request #44167 → vim-configurable: fix python support → https://git.io/fNzbi
<kamme>
I got it working, I had to use virtualisation.graphics. I did a find and looked at the local version of qemu-vm.nix and saw it was an onlder version as what was on master
mekeor has joined #nixos
joebobjoe has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
<neonfuz>
Any suggestion on which folder in pkgs to put an editor for a game?
<neonfuz>
in nixpkgs that is, I'm assuming applications/editors is meant mostly for text editors
<neonfuz>
should it be in games? misc?
<clever>
maybe games/gamename/editor.nix ?
<iqubic>
What game is this?
<clever>
and a default.nix in the same folder, for the game itself
<neonfuz>
a doom level editor
<iqubic>
Oh. I'd make games/doom/editor.nix and games/doom/default.nix
<neonfuz>
there are several doom engines, there are already several doom engines in games/
halfbit has joined #nixos
<neonfuz>
but there are already several engines, like games/chocolate-doom and games/zdoom, and they're all compatible with the editor
firefox has quit [Quit: Konversation terminated!]
<clever>
ah, that makes things a bit more tricky
<neonfuz>
and I don't feel it's proper to make games/doom and move them all into there just to add an editor
<neonfuz>
yeah, it's called eureka (or eureka-editor)
<iqubic>
clever: does nix have a dependency management system?
hakujin1 has joined #nixos
<clever>
iqubic: nix does auto-detect the runtime and buildtime deps for all packages
<iqubic>
I was just wondering if we could make this editor depend on having at least on of the Doom engines installed.
<neonfuz>
iqubic: eh, not really needed, someone might want to edit a doom file without the game installed for some reason
<neonfuz>
it'd be like making an image editor depend on having at least one image viewer installed
hakujin1 has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
alex`` has joined #nixos
toby1851 has quit [Ping timeout: 256 seconds]
<kamme>
thanks a lot for your help samueldr and clever, I was able to test everyting I wanted
blankhart has joined #nixos
<samueldr>
I hope the tests were conclusive
Guest72487 has quit [Ping timeout: 265 seconds]
sanscoeur has quit []
<kamme>
yes, I saw some things I didn't believe where possible, and I was wrong :)
<samueldr>
what was thought to be impossible?
<samueldr>
(if I may ask)
<kamme>
configuration management right into the system and the option to test and rollback
<Enzime>
what's the best way to make my local nixpkgs store accessible from nix-env/nix-build
<Enzime>
should I manually modify the nixPath or add it to nix-channel or something else?
<samueldr>
Enzime: single-time use or for every use? do you want it to affect your system or only your user (if for every use)?
<samueldr>
setting nixPath will also affect your system, with nixos-rebuild
<kamme>
I use puppet for config management and nix/nixos seems to do everything
<samueldr>
you could find another way to set NIX_PATH, but I'm unsure of the best practices
<samueldr>
if it's for single-time uses, using -I on those commands may be enough
<kamme>
tomorrow I'm testing nixops
<samueldr>
:)
<Enzime>
samueldr: I was thinking maybe having it under a different attribute or something?
toby1851 has joined #nixos
<Enzime>
make it accessible under fork.<attr>
<samueldr>
ah, in that case yeah, setting nixPath will work if you set foo=/that/path you will be able to use it as <foo>
<Enzime>
samueldr: wouldn't that clash with nixpkgs though?
Guanin has joined #nixos
<samueldr>
AFAIUI, only nixpkgs= is used in that case
<Enzime>
like how would I install packages from it in my configuration.nix for something
kamme has quit [Quit: cheers!]
<samueldr>
off the top of my head, something like 'let foo = import <foo> {}; in {/*your config*/}'
<dhess>
I would like to create a NixOS test where I can control the network topology. For example, imagine there is a "server" node with 2 interfaces, eth1 and eth2, and then "client1" and "client2" nodes, connected to server.eth1 and server,eth2, respectively.
<dhess>
I have never felt more confident deploying software to my servers.
<clever>
all one network though for the 2nd
hakujin1 has joined #nixos
<dhess>
clever: so it looks like it does this via vlans, and vlan 1 is the default that a node is connected to unless otherwise specified?
joelpet has joined #nixos
joelpet has quit [Changing host]
joelpet has joined #nixos
kiloreux has quit [Ping timeout: 256 seconds]
<clever>
dhess: yeah
<dhess>
awesome, thanks.
<clever>
dhess: its using vde switch to emulate a switch with vlan support
<{^_^}>
[nixpkgs] @jwiegley pushed to master « coqPackages.category-theory: Update to Git version as of 20180709 »: https://git.io/fNzxk
<clever>
dhess: vde also has options to introduce packet loss and packet corruption, and throttling
<clever>
nixos doesnt directly support those, but it could probably be hacked in if you needed it
<dhess>
nope, just the basic vlan support will suffice.
kiloreux has joined #nixos
hakujin1 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @jwiegley pushed to master « coqPackages.category-theory: Add equations as a buildInput »: https://git.io/fNzx8
agander has quit [Ping timeout: 240 seconds]
ericsagnes has joined #nixos
<elvishjerricco>
I added a user for automation purposes, but set `isNormalUser = true;` by mistake. Now that I've changed that to `isSystemUser = true`, I can't seem to get it to stop showing up in lightdm. Anyone know what's up with that?
<ajs124>
elvishjerricco, probably got assigned a UID > 1000. does anything prevent you from deleting it?
<dhess>
elvishjerricco: somebody was saying a few days ago that once a user is created, NixOS generally doesn't touch it?
<dhess>
or maybe doesn't change the uid
<elvishjerricco>
ajs124: Deleting the user? I thought that's what I tried; i.e. I removed it from my config, rebuilt, and added it with isSystemUser set. Note that I do have `mutableUsers = false`
<dhess>
I think that was it. Presumably because it doesn't know how to change filesystem state.
<elvishjerricco>
But, yea, looks like it's still got a > 1000 uid
<ajs124>
elvishjerricco, with mutableUsers = false, that sounds like it should indeed work.
aarvar has joined #nixos
mekeor has quit [Remote host closed the connection]
<elvishjerricco>
ajs124: Ah, I think I know what happened
<Jason_Grossman>
What?!
<elvishjerricco>
I re-added the user after deleting it without setting isSystemUser explicitly; I thought removing isNormalUser made that the default
<samueldr>
that someone may have been me, I set a uid < 1000 to a system~ish user that needed to be auto-logged-in, had to change its uid
kiloreux has quit [Ping timeout: 240 seconds]
kiloreux has joined #nixos
mconstant has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44164 → llvm-packages: fix manpages on darwin → https://git.io/fNzyT
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #44168 → make-derivation: install all outputs → https://git.io/fNzps
sw4n has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fNzpu
<Jason_Grossman>
TheBrayn: I don't think there's a simple way to know which TeX packages you need, but there's lots of documentation on TeX web sites.
<Jason_Grossman>
TheBrayn: Probably you paste that code into /etc/nixos/configuration.nix. There are other ways of using it, but that's the normal way (and probably the best way).