alexteves has quit [Remote host closed the connection]
Anton-Latukha has quit [Quit: Leaving.]
<iqubic>
jackdk: What does that do?
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<iqubic>
jackdk: What is "project1"?
d1rewolf__ has joined #nixos
<jackdk>
directory names
<jackdk>
so it's like a list of patterns to match directories and files within the directories, and then it overrides a bunch of variables in the buffer so dante _should_ call nix-shell --run to find the right cabal
aanderse-laptop has quit [Ping timeout: 256 seconds]
<jackdk>
reflex-platform compiles backend and common with ghc, frontend and common with ghcjs
<d1rewolf__>
i haven't said it today yet...so....
* d1rewolf__
yells "NixOS is f***** amazing. Thank you"
<d1rewolf__>
seriously
<d1rewolf__>
I've run linux as my primary OS since 97 and this is the first time I've been truly, really, happy
<tertle||eltret>
good deal d1rewolf__
<tertle||eltret>
so ur 10 years in
<jackdk>
iqubic: you don't need the 3-subproject setup, you could probably set the "dante-target" var in the final `(nil . (...))` stanza
<jackdk>
if you*
<d1rewolf__>
tertle||eltret, more like 21 years ;)
<iqubic>
And just get rid of the 3 other parts?
<d1rewolf__>
tertle||eltret, but not with nixos. I started with redhat 5.2
<jackdk>
aye
<iqubic>
cool.
<d1rewolf__>
or 5.1. can't remember
<tertle||eltret>
ok cool
hat^^ has quit []
<d1rewolf__>
tertle||eltret, I've only been on nixos for about three days
<tertle||eltret>
i used it on and off for about 6 years
<d1rewolf__>
but yes, for me, it's that awesome
<d1rewolf__>
I move between way too many machines
<tertle||eltret>
i like nix too, although im not really a coder, so I dont fully grasp it or ever fully appreciate it but I do like it
<tertle||eltret>
Ive always had a thing for funtional languages
<tertle||eltret>
when i was learning to program, or at least trying to, i always like functional
<d1rewolf__>
being able to keep them in sync is actually not just amazing but transcedent
sir_guy_carleton has joined #nixos
<tertle||eltret>
but it seems that all the programmers that I meet do not like, or even know about funtional languages
<d1rewolf__>
tertle||eltret, aye. I'm a coder by night, CIO by day. it definitely makes a huge difference to be able to decipher the language
<d1rewolf__>
tertle||eltret, I think it depends on the type of programmer you meet
<d1rewolf__>
there are laborers, and there are lovers
hphat has joined #nixos
<tertle||eltret>
thats true, and i only know a few
<tertle||eltret>
im a network analyst at an ISP
<tertle||eltret>
aka a ticket monkey
<d1rewolf__>
the lovers welcome functional and imperative. the laborers do whatever it takes to bring home a check. and then there's a spectrum in between
<d1rewolf__>
tertle||eltret, as someone who has seen the other side (management in a company of around 3500 employees), relish that ticket monkey status ;-)
<d1rewolf__>
aside from salary, I'd trade it in a heart beat
<d1rewolf__>
and to be honest, I'd probably trade it anyway
hakujin1 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<d1rewolf__>
some jobs just aren't worth your health
Supersonic112 is now known as Supersonic
<tertle||eltret>
thats true
<tertle||eltret>
long hours and always on call
sigmundv_ has quit [Ping timeout: 256 seconds]
<d1rewolf__>
tertle||eltret, yeah. the same goes for management, but you end up adding "politics|angry employees|etc"
Decoy has joined #nixos
<d1rewolf__>
but anyway, tertle||eltret, spend the time to learn nixos. it's definitely worth it
sbdchd has joined #nixos
<d1rewolf__>
I've spent the last week or so reading everything I can about it. there's a learning curve, but it's the mountain you have to climb to see nirvana on the other side :)
ashkitten has quit [Quit: WeeChat 2.0.1]
<joepie91>
tertle||eltret: it might help to consider the perspective that most software developers aren't actually building novel or even necessarily good software, they're just implementing common business requirements with the right company logo in the corner
<joepie91>
tertle||eltret: from that perspective it's not unexpected that many people tend to follow the well-trodden paths, even if they're not necessarily interesting or even optimal
<joepie91>
and in practice, most boring business software just isn't written in functional languages
<tertle||eltret>
thats true joepie91
Decoy has quit [Ping timeout: 240 seconds]
<tertle||eltret>
i have the problem of not finding anything to code, or not being able to move from the hello world tuts to the 5000 line project
Jackneill has quit [Remote host closed the connection]
<joepie91>
(that's not to say that I consider functional languages the be-all-end-all of programming, to be clear)
<joepie91>
tertle||eltret: ah, the "draw the rest of the fucking owl" problem :)
<tertle||eltret>
haskell probably isnt the best language to start on
<tertle||eltret>
but i did go through the 'write yourself a scheme' thing
<tertle||eltret>
i still need to run through version 2 of it
<joepie91>
tertle||eltret: so my advice for your problem would be... pick any project that you would *want* to work on, regardless of how big it is; and then *don't* try to design the entire thing upfront, but start with the absolute simplest possible version of it, and then gradually add on bits and pieces while learning about each of those bits individually; in the process, don't be afraid to go back and change existing code once you realize that it could have
<joepie91>
been done better
<joepie91>
frontloading the design of an entire project is going to be a nightmare if you don't already have experience to draw from, learning gradually works much better
jb55 has quit [Quit: WeeChat 2.1]
<d1rewolf__>
`
<samueldr>
sometimes, doing a small silly thing can be enlightening
_d0t has joined #nixos
<joepie91>
so like, if you want to build, say, a forum; start with a plain webpage... then make that webpage show the current server time... then make it accept some input, and echo back that input... then make it eg. store the input in some sort of file or database, and echo it back from there... etc.
<joepie91>
set yourself smaller goals to work towards, goals that you can google
<tertle||eltret>
yeah thats a good idea
<tertle||eltret>
i was thinking about building a telnet client and 'server'
<tertle||eltret>
cuz i think networking is interesting
<joepie91>
somewhere around the step of "store it in a database and echo it back from there" you'd realize that hey databases are a pretty big concept, and you'd want to split that up into smaller pieces as well; what's the simplest form you can store some data in? then, how can you make sure that the data is correct?, then, what if you have related data? etc.
<_d0t>
ohai! I need some help with building a package. When I run nix-shell with necessary args, everything works just fine. With nix-build however cmake can't find Qt5LinguistTools.
<joepie91>
tertle||eltret: go for it :)
<samueldr>
tertle||eltret: good start may be implementing a full `echo` client/server as per the RFC
<_d0t>
Qt5LinguistTools seems to be a part of qt5.qttools
<tertle||eltret>
oh ok
<joepie91>
I'd simplify samueldr's suggestion, removing the "as per the RFC" and the "client" parts to start with
<joepie91>
just a thing that echoes back what you send it over TCP
<tertle||eltret>
echo is just a print function isnt it?
<joepie91>
(then you can test it with an existing telnet client)
<tenten8401[m]>
Anyone here know if there are any GPU stress tests available for NixOS? I'm wanting to test a fan curve script but I can't seem to find something that really stresses it very well
<samueldr>
hi _d0t! since we get real questions, let's move off-topic to #nixos-chat tertle||eltret joepie91 d1rewolf__ :)
<joepie91>
fair enough :)
<tertle||eltret>
so would the echo server be over telent or what protocol?
<tertle||eltret>
echo isnt a network protocol is it?
<tenten8401[m]>
I would use something like Ungine Superposition but I can't run it because of a bad interpreter
<tenten8401[m]>
well, it's a binary, I mean linker
<samueldr>
_d0t: looking at it quickly
<_d0t>
samueldr, thx
<samueldr>
_d0t: figured it out
<_d0t>
I run nix-shell with -p stdenv cmake gcc pkgconfig qt5.qtbase qt5.qttools qt5.qtx11extras poppler_qt5
<joepie91>
tenten8401[m]: let's move to #nixos-chat with this conversation :)
<_d0t>
if that helps
<joepie91>
errr
<joepie91>
oh
<joepie91>
they disappeared
<joepie91>
sorry tenten8401[m] :D
<samueldr>
you see how `buildInputs = [ (with qt5; [ a bc c ]) d ]`
<samueldr>
this creates a list with a list and a derivation
<samueldr>
you probably want to concatenate the lists
<{^_^}>
[nixpkgs] @eqyiel opened pull request #44071 → eot_utilities: change platforms to unix → https://git.io/fNRJ6
<samueldr>
uh, I'm missing a parenthesis near the end :)
<_d0t>
oh yeah
<_d0t>
now it's building
<_d0t>
samueldr, thanks!
lassulus_ has joined #nixos
<samueldr>
> [ [1 2 3] 4 ] == [ 4 ] ++ [ 1 2 3 ] # for an example, _d0t
<{^_^}>
false
<_d0t>
Yeah, I got this
<samueldr>
:) great
<tertle||eltret>
1+2
<samueldr>
hope to see a PR soom with qcomicbook :D
<_d0t>
yup
<joepie91>
wb tertle||eltret
<tertle||eltret>
o/
<joepie91>
tertle||eltret: I need to sleep, but if you hop into #nixos-chat there's probably going to be more people with advice on where to get started :)
kyren_ has joined #nixos
<tertle||eltret>
cool thanks, i need to sleep to. going to do that very soon
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
kyren has quit [Ping timeout: 256 seconds]
hakujin1 has joined #nixos
nuncanada has quit [Ping timeout: 260 seconds]
lambdamu has quit [Ping timeout: 256 seconds]
hakujin1 has quit [Ping timeout: 256 seconds]
Jackneill has quit [Remote host closed the connection]
<d1rewolf__>
coconnor, awesome. that works. thanks
jperras has quit [Ping timeout: 256 seconds]
TolleLege has joined #nixos
<coconnor>
You can also *replace* the config by passing a new config to nixos-container update. Emphasis on the replace cause I thought that did an append and nuked a config once or twice.
endformationage has joined #nixos
jperras has joined #nixos
<d1rewolf__>
coconnor, great to know. thanks ;)
kyren_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jperras has quit [Ping timeout: 240 seconds]
kyren has joined #nixos
blankhart has joined #nixos
rprije has quit [Remote host closed the connection]
<samueldr>
the commit message is expected to be "packagename: init at x.y"
nly has joined #nixos
<nly>
hi
<samueldr>
otherwise, I don't think there's anything outright wrong with what I'm seeing there
<coconnor>
howdy
<_d0t>
samueldr, fixed
<samueldr>
great _d0t :)
<nly>
a pkg needs 'defusedxml' i found it as 'python36.defusedxml' on nix pkgs. with 'defusedxml' i get an error called anonymous function without required argument
<nly>
coconnor doing great wbout you? :)
<nly>
it's a beautiful morning
<iqubic>
Is it possible to install NixOS headless as a server?
<samueldr>
uh, yes
<samueldr>
almost anything you can do with a distro, you can with nixos
<coconnor>
nly: excellent!
<iqubic>
I was wondering if it made sense to use NixOS as a web server.
<samueldr>
and when I say "almost", I mean that what you "can't" is "shouldn't" (like impurities)
<samueldr>
iqubic: there are many nixos installations serving sites
<clever>
that tells it to relay the requests to a given server when its from that domain
<coconnor>
I think that says "for any request under .cluster.local forward to 192.168.1.2 port 8053"?
<clever>
for that, you want NS records
<coconnor>
ah cool!
<clever>
create a .local TLD, and then add some NS records to define what ip handles the cluster.local subdomain
<clever>
i do see how dnsmasq makes all the fun things "simple"
<clever>
but as soon as you want something more complex, i can see it getting to be a lot more complex
<clever>
bind just uses zone files that almost exactly match the dns protocol and the output from `dig`
<coconnor>
OTOH dnsmasq abstractions are.. well.. abstractions. The bind configuration is easier for me to understand. Less magic sauce.
<clever>
yeah
<clever>
coconnor: one of the more advanced dns setups ive seen (which i have theorized would work) is the dns under iohk.io, it has at least 5 or 6 subdomains, each with its own NS records, pointing to seperate entities within route53, that all behave like seperate self-contained domains
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
MP2E has quit [Remote host closed the connection]
<coconnor>
hmm fancy indeed. Necessary for reliability I bet. gotta have that client side participation dns enables
gspia has quit [Quit: Leaving]
gspia has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever>
coconnor: i think its more for breaking up the permission models
<clever>
and to deal with some subdomains being managed by aws and others not
<clever>
its hard to encode that into the dns config
acarrico has quit [Ping timeout: 260 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
rprije has quit [Ping timeout: 244 seconds]
stranger___ has joined #nixos
nly has quit [Quit: Leaving]
Jason_Grossman has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @kalbasit opened pull request #44079 → bazel: patch runfiles.bash to include defaultShellPath in PATH → https://git.io/fNRtk
vmandela has joined #nixos
[[0_o]] has quit [Ping timeout: 256 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
qualiaqq has quit [Quit: zzz]
reinzelmann has joined #nixos
apomorph has joined #nixos
hphat has quit []
alex`` has quit [Ping timeout: 256 seconds]
hyper_ch2 has joined #nixos
apomorph has quit [Ping timeout: 240 seconds]
apomorph has joined #nixos
ThatDocsLady has joined #nixos
apomorph has quit [Ping timeout: 260 seconds]
drakonis has quit [Remote host closed the connection]
hamishmack has joined #nixos
jackdk has joined #nixos
periklis has joined #nixos
pluplog has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
jackdk has quit [Ping timeout: 256 seconds]
<|Leary>
If I have local source for a derivation in a git repo and I change branches, it rebuilds even when its already built the other branch before. Is it because something git is doing in src/.git/ is changing the hash? Is there an easy way to exclude those irrelevant changes so nix only hashes and uses the actual source files?
<jD91mZM2>
I had to prefix things with `builtin.`, but thank you, I think it works! Now I just need to figure out how it works :D
<booglewoogle>
hey, how would I add a custom desktop application in nixos? since the run/current-system/sw/share/applications/ is read-only
<jD91mZM2>
It still says "warning: dumping very large path (> 256 MiB); this may run out of memory", but maybe the source just is that big?
<tilpner>
jD91mZM2 - If you adjust ./. you also have to adjust ./target
<jD91mZM2>
Yep just noticed
<jD91mZM2>
Wait, why doesn't [ ./target ] also copy?
<jD91mZM2>
brb
<tilpner>
Because it doesn't end up in a string
tv3 has joined #nixos
<tilpner>
(Uhm, well)
<tilpner>
"${./target}" would pull target into the store. "${toString ./target}" wouldn't
jmmm has joined #nixos
raman has joined #nixos
<booglewoogle>
or how would i edit an existing one, that'd also help
stranger___ has quit [Quit: Connection closed for inactivity]
tv2 has quit [Ping timeout: 248 seconds]
<tilpner>
booglewoogle - That depends greatly on what application you want to add
<tilpner>
booglewoogle - The general process is: Write a Nix expression for that application, and then either install that manually, or import it from your nixos-config
<booglewoogle>
hmmm
<booglewoogle>
okay
<booglewoogle>
oh i meant
palo has quit [Ping timeout: 256 seconds]
<booglewoogle>
just the link
<booglewoogle>
like
<booglewoogle>
i wanna add an option to the launcer of an existing application
<tilpner>
Oh
<booglewoogle>
as a default launch option
<booglewoogle>
but it won't let me since the directory is read-only
<srhb>
booglewoogle: Either you override the derivation producing the current file
<srhb>
Or just add a local version in your homedir
<srhb>
Can't mix pure and impure :)
<booglewoogle>
okay
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<booglewoogle>
thanks!
<booglewoogle>
local it is then, wanted to avoid that :p
<srhb>
Overriding is fairly simple in this case.
<srhb>
I recommend it
<raman>
Hi folks, do you use NixOS on desktop?
<booglewoogle>
okay
<srhb>
raman: Yes
<etu>
raman: yes:)
<tilpner>
raman - As opposed to server, or laptop?
<srhb>
booglewoogle: Find out which derivation produces the specific desktop file
ihar has joined #nixos
<booglewoogle>
i haven't looked into that yet
<booglewoogle>
yea got that
<srhb>
booglewoogle: No time better than the present!
<booglewoogle>
i'm ready!
<srhb>
booglewoogle: Have you ever used overlays?
<booglewoogle>
can you point me somewhere to learn about how to do that?
<booglewoogle>
overlays?
<srhb>
Yes, you'd want to read up on overlays in the nixpkgs manual
<raman>
I am asking because I see that Xorg is not updated. The latest version is 1.20. Maybe I am looking in the wrong place?
<etu>
raman: 1.19.6, but things are updated quite well overall at least if you're on unstable:)
<raman>
Thank you etu, so unstable has 1.20?
<cocreature>
except when unstable is broken for days … :(
<raman>
;(
<etu>
raman: No, not yet. It doesn't even seem to be in master yet. Checked in there. But it will for sure get there :)
betaboon has quit [Ping timeout: 256 seconds]
<srhb>
booglewoogle: In pseudocode, something like this: (self: super: super.yourPackage.overrideAttrs (oa: { postInstall = ''echo foo > $out/share/yourpackage.desktop''; })) -- and then this would go in the nixpkgs.overlays list in configuration.nix
<raman>
1.20 is 2 months old ;(
<etu>
,which channel
<etu>
err, no. I forgotten how to do that
<srhb>
I think "which" is a lambdabotism
betaboon has joined #nixos
<srhb>
raman: You can write up an issue for us to upgrade it -- or even better, submit a PR :)
<etu>
raman: As I said, it's not in master yet where I checked. And things usually don't stay very long in staging. But as others said above. Write an issue or make a PR for it. We're very happy for all the help we can get:)
knupfer has quit [Ping timeout: 265 seconds]
worldofpeace_ has quit [Ping timeout: 256 seconds]
<etu>
Hmm, payday today. Now I'm very tempted to book a trip to Nixcon:)
booglewoogle has quit [Remote host closed the connection]
<raman>
Ack. Just it is worrisome to see that for 2 months no one file a PR already. How to check who is Xorg server maintainer? Maybe there is a good reason to not update or maybe you are all on Wayland :P
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #44081 → cross stdenv: Forget `allowedRequisites = nulll;` on inline → https://git.io/fNRZw
booglewoogle has joined #nixos
ajs124 has joined #nixos
worldofpeace_ has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar pushed to master « haskell: remove/add some servant overrides »: https://git.io/fNRZD
betaboon has quit [Ping timeout: 256 seconds]
<tilpner>
raman - Last bump was by vcunat, but I'm not sure that means anything in this case
Fare has quit [Ping timeout: 256 seconds]
<etu>
raman: Well, there's roundups for security fixes. And if Xorg would be in there it would been updated due to security related things quicker. And things overall get's updated frequently, so in this case it's probably just that nobody have seen the need for 1.20.
<jD91mZM2>
tilpner: Thanks! So I guess I could shorten it to (builtins.filterSource (path: _type: path != (toString ./target)) ./.)
<jD91mZM2>
Since I only have one exclude
<tilpner>
jD91mZM2 - In this case, yes. But I like the flexibility of having an ignore list
<booglewoogle>
@srhb I went with https://nixos.wiki/wiki/Overlays, used the example as a template (which incidentally precisely adds a launch option to an application) and tried to have it apply the overlay on the system level
<{^_^}>
[nixpkgs] @bkchr opened pull request #44082 → gnome2.gconf: Adds python that is required by scripts in GConf → https://git.io/fNRZx
alex`` has joined #nixos
apomorph has joined #nixos
<booglewoogle>
that includes a change of the NIX_PATH though, which from my experience isn't persistent? am I missing something?
<jD91mZM2>
Ummmm suddenly I'm getting "no matching version `= 2.32.0` found for package `clap`"
<jD91mZM2>
This version does exist
<tilpner>
booglewoogle - You can absolutely make persistent changes to NIX_PATH, e.g. with nix.nixPath
Sonarpulse has quit [Ping timeout: 256 seconds]
<srhb>
But it may be a bit confusing since it takes effect AFTER first activation
<booglewoogle>
ah
<srhb>
booglewoogle: I recommend using nixpkgs.overlays to get used to it initially. Then you can start exploring the differences.
<srhb>
Tastes may differ :-)
<booglewoogle>
okay
asymmetric has joined #nixos
<srhb>
(fwiw I use an altered nix.nixPath because I want my user and system to have the same overlays)
<booglewoogle>
alright, thanks tilpner and srhb
<jD91mZM2>
It also seems to say "unpacking source archive /nix/store/q6nsrjhrc3nxlljzzsnyx1pay4i0fdrb-termplay-2.0.4-vendor". But I renamed my package to termplay-local...
<tilpner>
I don't actually know where it takes the name from
jmeredith has quit [Quit: Connection closed for inactivity]
<jD91mZM2>
Oh yeah no that's not what I mean
<jD91mZM2>
I thought the vendor dir would take the name from the nix derivation
<jD91mZM2>
maybe it doesn't
<jD91mZM2>
My theory is that since I created the derivation with buildRustPackage, overriding the fields won't do too much because I'm just overriding the generated mkDerivation fields
<jD91mZM2>
So for example vendor stuff will already be set up
<jD91mZM2>
Would sort of explain the "no matching version" error
periklis has quit [Ping timeout: 264 seconds]
<tilpner>
Oh, also update the cargoSha256 if you have original termplay in your store
<tilpner>
Doesn't matter to what, just update it
<jD91mZM2>
Good point, will try
peterzky has quit [Remote host closed the connection]
booglewoogle has quit [Remote host closed the connection]
<jD91mZM2>
tilpner: That kinda confirms my theory - I get the same error about clap version missing. No error about the sha being incorrect, which it clearly is
<jD91mZM2>
cargoSha256 = "a"
<tilpner>
Yeah, overrideAttrs won't help here
<tilpner>
You may have to copy the thing
<jD91mZM2>
Yep, trying currently to do something like `buildInputs = old.buildInputs`
<jD91mZM2>
Can I use inherit for this?
<tilpner>
You could
<tilpner>
But I don't see why it would help
<tilpner>
The syntax would be inherit (old) buildInputs;
booglewoogle has joined #nixos
<jD91mZM2>
/shrug Just thinking it could be cleaner
<tilpner>
No, that's not what I mean. inherit is better than buildInputs = old.buildInputs, but it won't help fix your clap problem
<jD91mZM2>
I mean making a new derivation with mostly the same values as the old one should hopefully create a new updated vendor too
<tilpner>
Making a new derivation with what? mkDerivation or buildRustPackage?
<{^_^}>
[nixpkgs] @dezgeg pushed to master « gnome2.GConf: Add python2 dependency for gsettings-schema-convert »: https://git.io/fNRCs
ashkitten has joined #nixos
<jD91mZM2>
buildRustPackage
<jD91mZM2>
Like, instead of pkg.overrideAttrs, I do rustPlatform.buildRustPackage { inherit (pkg) buildInputs }
<jD91mZM2>
(incomplete)
<tilpner>
Oh, hmm
marusich has joined #nixos
<tilpner>
That seems like it would work
<tilpner>
Could just do buildRustPackage (pkg // { src = ...; cargoSha = ...; })
<jD91mZM2>
oooo good idea
<tilpner>
Not sure if that'll work with callPackage-added elements though
<{^_^}>
[nixpkgs] @dingxiangfei2009 opened pull request #44083 → Allow postgresql to cross compile → https://git.io/fNRWH
<jD91mZM2>
Using inherit instead of drvAttrs seems to make it go away
<jD91mZM2>
Seems like there are some strange fields in there I don't want. Very confusing
<tilpner>
postUnpack adds a .cargo/config
apomorph has quit [Ping timeout: 240 seconds]
<jD91mZM2>
Ah
<{^_^}>
[nixos-weekly] @domenkozar pushed to fix-ci « Simplify CI and fix build »: https://git.io/fNRlG
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #56 → Simplify CI and fix build → https://git.io/fNRlZ
<{^_^}>
[nixos-weekly] @domenkozar merged pull request #56 → Simplify CI and fix build → https://git.io/fNRlZ
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/fNRlu
Mateon1 has quit [Remote host closed the connection]
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'ded28617d7dc80380416fb7267f3172753ffdd05' commit built by Travis-CI \#407966784 »: https://git.io/fNRlV
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « formatting »: https://git.io/fNRlx
seanparsons has joined #nixos
mariatsji has quit [Remote host closed the connection]
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '7f891f190c1b516488e4a682a8c0c286679d923f' commit built by Travis-CI \#407969074 »: https://git.io/fNRlj
<etu>
adisbladis[m]: oh, nice. I want that since I keep my go deps as submodules now.
sigmundv_ has joined #nixos
<adisbladis[m]>
Yeah me too.
<nlyy>
i am thinking of as personal pastebin using ZeroBin
<adisbladis[m]>
Vgo is pretty damn good though
<adisbladis[m]>
My solution is pretty hacky but it works
<adisbladis[m]>
I have tried building at least two real world projects and they both worked fine
<tilpner>
nlyy - No, the manual for what? There are multiple manuals relevant to what you want to do
<nlyy>
where it says to prefer nixpkgs.localSystem, i didnt find it on nix options search.
apomorph has joined #nixos
<tilpner>
nlyy - I used the manpage (man configuration.nix). In the description for nixpkgs.system it says that
<tilpner>
nlyy - But maybe only because the manpage comes from unstable. Yours might not, and the option search might not either
booglewoogle has quit [Remote host closed the connection]
apomorph has quit [Ping timeout: 264 seconds]
simukis has joined #nixos
booglewoogle has joined #nixos
<booglewoogle>
hey. i've arrived at using this snippet https://pastebin.com/DrLMiSBd in my configuration.nix to add the launch option '-nofriendsui' to my steam application. seems to have no effect, would anyone have a hunch why that is?
<tilpner>
booglewoogle - Does passing that manually work?
<tilpner>
booglewoogle - How does the resulting file look?
phry has quit [Ping timeout: 240 seconds]
<tilpner>
Also, hardcoding a store path like that is really ugly
<booglewoogle>
in getting the expression and manually building it? i haven't tested that, i wouldn't know where to look either. the packages search doesn't have steam (i assume because it's proprietary?)
phry has joined #nixos
<booglewoogle>
:( i don't know better yet, sorry!
<booglewoogle>
the .desktop file you mean?
revskill has quit [Remote host closed the connection]
marusich has quit [Quit: Leaving]
<tilpner>
booglewoogle - I fixed your thing: tx0.co/1y
<tilpner>
But I can't really explain why postInstall is not executed
<booglewoogle>
:OO
<booglewoogle>
okay
revskill has joined #nixos
<booglewoogle>
phew, that tells me that at least i haven't made any super obvious mistakes :p
<booglewoogle>
thanks a lot, tilpner!
iceychris has joined #nixos
<tilpner>
booglewoogle - Small correction, insert .* before second @
Neo-- has quit [Ping timeout: 244 seconds]
<booglewoogle>
got it!
iceychris has left #nixos [#nixos]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
Ridout has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
worldofpeace_ has joined #nixos
igo95862 has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
ThatDocsLady has quit [Ping timeout: 256 seconds]
semihonest has joined #nixos
julyandavey has joined #nixos
<{^_^}>
[nixpkgs] @cpages merged pull request #43774 → minecraft: clean and fix up → https://git.io/fNZFm
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '539415b4d5b14961e47c3ba841fa7c2c03546325') built by Travis-CI \#408005026 »: https://git.io/fNRgU
<tilpner>
Dezgeg - That applies to normal builds, yes. But also to runInLinuxVM?
<Dezgeg>
well runInLinuxVM is just a build that happens to run QEMU
warbo has joined #nixos
Guest23519 has joined #nixos
Guest23519 has quit [K-Lined]
<tilpner>
Hmm, so qemu runs inside the usual sandbox, and can't itself access it's not supposed to
<tilpner>
*access anything it's not supposed to
<warbo>
hello, is there a way to reference a file whose name isn't a valid store path, from within Nix?
<warbo>
for example
<warbo>
$ touch "foo'bar"
revskill has quit [Ping timeout: 255 seconds]
<warbo>
if I try to put this file in a derivation I get "invalid character ''' in name 'foo'bar'"
<cocreature>
it looks like by default, nix will depend on the .dev output of a multioutput derivation. if I want to depend on both .dev and .out, do I just add both to buildInputs or is there a different way of depending on multiple outputs of the same derivation
<warbo>
note that toPath doesn't actually make a path value, it just normalises things like '..'
<warbo>
cocreature: the .outputs attribute of a derivation is a list
<warbo>
cocreature: by default, Nix depends on the first one in that list
<warbo>
(I think)
<warbo>
so if "dev" is first, that will be used; most derivations put "out" first
<cocreature>
in my case it seems to depend on the "dev" output even though it is the second (in a list of 3)
<cocreature>
“When a multiple-output derivation gets into a build input of another derivation, the dev output is added if it exists, otherwise the first output is added.”
<warbo>
ah, so 'dev' is a special case
<warbo>
urgh
<warbo>
:P
timon37 has joined #nixos
reinzelmann has quit [Ping timeout: 260 seconds]
<warbo>
as for depending on multiple outputs, I would just stick both in your buildInputs as you say
<Dezgeg>
typically depending on .dev (i.e. by putting buildInputs = [foo]; ) will make it depend on .out and .bin as well
Guest45 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cocreature>
alright, thanks!
apomorph has joined #nixos
ericsagnes has joined #nixos
rprije has joined #nixos
<Myrl-saki>
Is there a wrapper script generator, written as a Nix expression, or at least can be called directly from Nix?
<Myrl-saki>
Okay, crap. Wrong question.
<Myrl-saki>
Is the make-wrapper.sh the standard for making wrapper scripts?
<Myrl-saki>
The things that I want to do is: (a) set(append?) a custom PATH in the script, and (b) add default flags to the underlying executable
<freusque>
it's just my dumb self trying to ping everything
<freusque>
which BTW isn't really working because the root user channel impacts the build in a way I don't understand
<tilpner>
Oh, I pin everything too, and it doesn't turn into that chaos
<tilpner>
:/
<freusque>
may I please see how you do it
<freusque>
I'd really like to. :)
* tilpner
pm
philippD has joined #nixos
<{^_^}>
[nixpkgs] @ua74e3dqka opened pull request #44088 → yed: version update to 3.18.1 → https://git.io/fNRiq
Sufixx has quit [Remote host closed the connection]
rprije has quit [Ping timeout: 240 seconds]
humanoyd has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
akaakiko has joined #nixos
<{^_^}>
[nixpkgs] @lheckemann opened pull request #44089 → nixos/release: use real paths of netboot files → https://git.io/fNRP3
oida has quit [Ping timeout: 250 seconds]
hakujin1 has joined #nixos
phreedom has joined #nixos
apomorph has joined #nixos
hakujin1 has quit [Ping timeout: 276 seconds]
<srhb>
Oh my goodness, it looks like we're going to have a succesful unstable build
<srhb>
... great, now I jinxed it.
Guest45 has joined #nixos
<etu>
srhb: It's not dead yet!
<srhb>
No, but the big hit-or-miss is chromium :P
<etu>
Mmhm
* etu
is not unhappy with the current unstable though, which is nice :p
<srhb>
I am not either. Well. I'm on some-master-newer-than-current-unstable
<srhb>
MIght as well just go to master at this point tbh...
silver_ has joined #nixos
<etu>
I heard that there's some people running on master, but I've always been told off due to possible issues.
<srhb>
Sure, of course.
<srhb>
My "not-quite-unstable" is usually a potential unstable that failed on Hydra for reasons I don't care about
apomorph has quit [Ping timeout: 245 seconds]
<etu>
Ah, well. That's one way to do it. Pick commits where all the tests one cares about worked :p
revskill has quit [Read error: Connection timed out]
<srhb>
It satisfies my desire for bleeding edge at least :P
silver has quit [Ping timeout: 276 seconds]
<srhb>
chromium build has been going for 15 hours...hnnn
<srk>
hehe, this :) I'm running of master for over a year now with no issues iirc
<etu>
Well, in theory things like bootloader can break so one can't pick an older generation from the boot menu. But as long one knows the risk and how to work with the system I'd say everyone is responsible for their own :p
<Myrl-saki>
Okay, um.
<Myrl-saki>
How would I use nix-build builders with nixops?
<srhb>
etu: Yeah, not recommending master to people who aren't really into fixing their systems from superbreakage is a good idea :-)
<Myrl-saki>
In a not-so-hacky manner, hopefully.
<Myrl-saki>
One thought was to make a URI for nixops.
<srhb>
Myrl-saki: How much wood does a woo-- what do you mean?
<srk>
Myrl-saki: you can configure builders systemwide
<etu>
srhb: I've been on gentoo for 8 years, so I'm not scared :D
<Myrl-saki>
srk: --option 'ssh://nixops-machine'
<Myrl-saki>
srhb: *
<srhb>
etu: I haven't been on Gentoo for about 10 years... :P
<srhb>
etu: But I guess the attitude sticks
<Myrl-saki>
OTOH
<etu>
srhb: I haven't been there for 4 years, but the attitude of not being scared sticks I think :)
<d1rewolf_>
how "secure" are nixos-containers considered? can you use them to run untrusted code and be sure your host is reasonably safe?
<Myrl-saki>
Maybe I should just use a nix-build wrapper.
<srhb>
d1rewolf_: I believe there's a notice in the manual that they are not secure.
orivej has quit [Ping timeout: 264 seconds]
<Myrl-saki>
Like.
<srhb>
d1rewolf: "Warning: Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host. So you should not give container root access to untrusted users."
<d1rewolf_>
Myrl-saki, hah...if they had just not highlighted the notice, I might've seen that :). I need more coffee
revskill has joined #nixos
<Myrl-saki>
d1rewolf_: Yes, you need more coffee. :P
* srhb
snickers
<Myrl-saki>
srhb: :D
<d1rewolf_>
srhb, yeah, thanks :). I would like to understand more thought...are they impossible to make more secure, or is there opportunity for willing contributers?
<d1rewolf_>
I love the idea of containers, but I love the idea of them even more if I could use them to run untrusted code ;)
<srhb>
d1rewolf_: iirc they're currently systemd-nspawn thingamajicks, so I think further details are probably found upstream in that :)
<srhb>
Agreed.
<d1rewolf_>
srhb, cool. I'll take a look there. thx
obadz has quit [Ping timeout: 276 seconds]
<srhb>
I'd feel reasonably safe without giving root privileges to whatever runs in there though.
<srhb>
I don't think there's a single container solution out there that I trust with root.
<d1rewolf_>
srhb, true that.
<tilpner>
I'd trust a VM with internal root
<srhb>
Yup, same.
<tilpner>
(Yes, you said containers, but the line is blurring, and I don't see why NixOS containers couldn't use qemu)
<d1rewolf_>
srhb, I would like to, for example, run a browser session within a container, so that whatever bad websites i *accidentally* visit couldn't touch the host file system. but I don't know if this is possible yet...I imagine some x window trickery will be necessary
<srhb>
Myrl-saki: Aside from "why not set up builders properly?" :)
<tilpner>
d1rewolf_ - Note that I cannot vouch for it. I have it open in a tab for further inspection :)
<Myrl-saki>
srhb: Yeah, good point. :P
<d1rewolf_>
tilpner, ooooohhh...thanks. looks very interesting
<tilpner>
d1rewolf_ - I run my qutebrowser with bubblewrap, so it already can't see my filesystem
__Sander__ has joined #nixos
<tilpner>
But that's not the same level of isolation this could potentially give
obadz has joined #nixos
<d1rewolf_>
someone had mentioned there's some sort of wrapper that makes working with nixos containers easier and provided a github link. I haven't found working with nixos-container to be difficult at all, but I'd still like to understand what that project adds. My mind tells me it was "easy-container", but can't find that. anyone know what it is?
<d1rewolf_>
tilpner, bubblewrap is new to me. thanks for the tip
<d1rewolf_>
tilpner, btw, I know i already told you this, but qutebrowser is working out so nicely. thanks for that tip. If it only had a way of storing multiple book mark lists, it'd be close to ideal. thanks again for that pointer
<d1rewolf_>
tilpner, that's it. thanks
<tilpner>
d1rewolf_ - I might be up for another round of burnout working on declarative nixos vms, if you start working on that
<{^_^}>
[nixpkgs] @dezgeg pushed to master « simg2img: Init at 1.1.3 »: https://git.io/fNR1s
revskill has quit [Ping timeout: 245 seconds]
<d1rewolf_>
tilpner, I'm so new to nixos, I need a few more weeks of learning. but after that, I may take that plunge. what a nice way to learn ;)
asymmetric_ has joined #nixos
<tilpner>
Yes, so nice, you really need to try it
* tilpner
wipes up the sarcasm
<d1rewolf_>
tilpner, sorry, but my coffee is still brewing and I'm slow this morning...try what exactly? Taking a plunge?
<tilpner>
(Last time failed because all things container are Go, and patchelf doesn't like Go)
<acowley>
And the build has been broken on hydra for a while
<acowley>
So not exactly high risk
revskill has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
<fpletz>
acowley: triggered ofborg build and will merge if it succeeds, thanks!
<acowley>
fpletz: Thank you!
freeman42x]NixOS has joined #nixos
<d1rewolf_>
tilpner, are there any remnants of the past effort left, or would it be better to start from scratch?
<tilpner>
d1rewolf_ - Do start from scratch, please, I don't want to show those files to anyone :/
<d1rewolf_>
lol
<d1rewolf_>
k
aanderse_ has quit [Remote host closed the connection]
aanderse_ has joined #nixos
<d1rewolf_>
I'm really, honestly surprised that NixOS hasn't taken over the world yet. this is the way linux should be done
Anton-Latukha has quit [Quit: Leaving.]
<tilpner>
d1rewolf_ - Though appvm looks quite good. Make sure it can't be reused before actually starting from scratch
<d1rewolf_>
tilpner, k
<d1rewolf_>
anyone use keybase here? I note that it has multiple components (keybase service, kbfs, keybase-gui), and that they appear to all need to be launched separately. Just curious how others are launching these. I'm thinking about launching from my i3 config
<d1rewolf_>
but interested to learn how others are doing it
<srhb>
d1rewolf: I am
<tilpner>
home-manager seems to have a module
<srhb>
All I have is... services.keybase.enable = true; services.kbfs.enable = true;
<srhb>
In my global config
<d1rewolf_>
srhb, ah, that's easier. thank you
alexteves has joined #nixos
<d1rewolf_>
should've looked for options
<srhb>
I don't remember how it works because it hasn't broken for a very long time...
akaakiko has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
lostman has quit [Quit: Connection closed for inactivity]
logzet has joined #nixos
blankhart has joined #nixos
asymmetric_ is now known as asymmetric
<asymmetric>
how do i check if a key is present in an attribute set?
<d1rewolf_>
srhb, hmm...added both to my config. nixos-option shows they're set to true, but for some reason kbfs still doesn't mount
<{^_^}>
[nixpkgs] @balsoft opened pull request #44090 → Cherry-pick commit that fixes libreoffice wrapper to release-18.04 → https://git.io/fNRDI
<tilpner>
> builtins.hasAttr "foo" { foo = 42; }
<{^_^}>
true
<tilpner>
> builtins.hasAttr "bar" { foo = 42; }
<{^_^}>
false
ThatDocsLady has quit [Ping timeout: 260 seconds]
<d1rewolf_>
srhb, do you know if enabling it should launch the keybase service? I'm looking at keybase.nix, and it creates a user-level systemd service
logzet has quit [Ping timeout: 265 seconds]
MJ94| has joined #nixos
<MJ94|>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<MJ94|>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<{^_^}>
#44076 (by hlolli, open): lumo: init at 1.9.0-alpha
<asymmetric>
if it's found it evaluates to its value, which then is ORed with 42
<d1rewolf_>
tilpner, ok, so the qute file you shared defines a function, but how do you use it? sorry...this is the first time I've used a custom nix function outside of configuration.nix
<d1rewolf_>
guys, I've added both python27Packages.pycurl and python27Packages.pycurl2 to my config, rebuilt, but "import pycurl" still says "ImportError: No module named pycurl". any idea why?
<Taneb>
hyper_ch: :( the VM doesn't boot with the nixos live CD
Ralith_ has joined #nixos
Connection has joined #nixos
revskill has joined #nixos
apomorph has joined #nixos
Connection has quit [Remote host closed the connection]
sw4n has joined #nixos
<andreabe_>
hello! I'm trying to cache my builds by copying derivations to s3, I tried doing `nix copy --to $S3_STORE` after `nix-build` but it fails saying it can't find some store path (which doesn't exists). intriguingly the missing path has the same name as result but a different hash
<d1rewolf_>
Taneb, why would that be? You can't boot a vm using the live cd?
apomorph has quit [Ping timeout: 268 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
worldofpeace_ has joined #nixos
erasmas has joined #nixos
<{^_^}>
[nixpkgs] @adevress opened pull request #44092 → Add initial support to create a powerpc64le boostrap → https://git.io/fNRA0
<Faylite_>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
Faylite_ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
J21_ has joined #nixos
<J21_>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
J21_ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<d1rewolf_>
what's the nixos equivalence of Debian's build-essentail package?
<Yaniel>
there isn't one AFAIK
<Yaniel>
because it depends on what you are building
<d1rewolf_>
Yaniel, ok, thanks
revskill has quit [Ping timeout: 245 seconds]
<betaboon>
hello #nixos, recursiveUpdate doesnt merge lists, how can i overcome that ?
<d1rewolf_>
I'm trying to use pip to install a python package. it fails with: src/pycurl.h:164:13: fatal error: openssl/ssl.h: No such file or directory. I've installed openssl.dev, and openssl.h is located at /nix/store/jd644x3ppch1i92lbiw837bd1rylqgip-openssl-1.0.2o-dev/include/openssl/ssl.h
<d1rewolf_>
is this a case where I need to add /usr/include to pathsToLink?
revskill has joined #nixos
NyanCat_ has joined #nixos
NyanCat_ has quit [Remote host closed the connection]
<d1rewolf_>
how does one fix this?
SkyPatrol has joined #nixos
<SkyPatrol>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
SkyPatrol has quit [Killed (Sigyn (Spam is off topic on freenode.))]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
revskill has quit [Ping timeout: 255 seconds]
<mkaito>
lol now we get freenode spam? hilarious
revskill has joined #nixos
vmandela has quit [Quit: Leaving]
<Yaniel>
we get spam, you get spam, everyone gets spam!
Levex has joined #nixos
<Yaniel>
ain't it a wonderful day
<Levex>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
Levex has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<d1rewolf_>
anyone using pip on top of nixos?
<goibhniu>
d1rewolf_ yep
wpcarro has joined #nixos
<d1rewolf_>
goibhniu, can you share how you got it working?
<d1rewolf_>
I'm trying to use pip to install a python package. it fails with: src/pycurl.h:164:13: fatal error: openssl/ssl.h: No such file or directory. I've installed openssl.dev, and openssl.h is located at /nix/store/jd644x3ppch1i92lbiw837bd1rylqgip-openssl-1.0.2o-dev/include/openssl/ssl.h.
<d1rewolf_>
I've added /usr/include to environment.pathsToLink
<d1rewolf_>
but still no dice
wpcarro has quit [Remote host closed the connection]
<goibhniu>
d1rewolf_ right, you need to set some environment variables, you should use nix-shell too
<goibhniu>
(I use nixos-containers)
<goibhniu>
there's some stuff on the wiki about it ... lemme see
wpcarro has joined #nixos
<d1rewolf_>
goibhniu, yeah, this is in a nixos-container
<d1rewolf_>
but I couldn't get the syntax at the top working, so I decided to fall back to virtualenv
<d1rewolf_>
I also tried adding python27Packages.pycurl to my configuration.nix and updating, but even though it was installed, python said it coudln't find it
<{^_^}>
[nixpkgs] @DeltaEvo opened pull request #44101 → scrcpy: init at 1.2 → https://git.io/fN0tg
<d1rewolf_>
srk goibhniu: turns out the nixpkgs manual on python shows how to install packages very easily from configuration.nix. as simple as: (python2.withPackages(ps: with ps; [pycurl]))
<d1rewolf_>
I wonder why the wiki doesn't show this extremely easy step?
<goibhniu>
nice! sorry, I thought you were trying to work around nixpkgs using pip
alex`` has joined #nixos
<d1rewolf_>
goibhniu, the only reason I was going down that path is I wasn't sure where to put the python-with-my-packages code shown on the wiki
<d1rewolf_>
I tried getting it to work but couldn't. however, the above fixed it ;)
<goibhniu>
the wiki isn't official ... so it's always good to check the manuals first
<jD91mZM2>
coconnor: What icon theme is configures in your GTK/QT settings?
<d1rewolf_>
much cleared in the nixpkgs manual, but I guess they pretty much end up being the same thing.
<d1rewolf_>
goibhniu, isn't official? you mean it's maintained by someone other than the nixos maintainers?
init_6 has quit [Ping timeout: 268 seconds]
countingsort has joined #nixos
<goibhniu>
exactly
<d1rewolf_>
oh, wow. I had no idea
<lfish>
hello, I'm trying to develop an app that uses bluetooth to connect with an arduino and I have no idea where to start. I can pair the device with bluetoothctl but I can't connect it, and I don't know what interface I should use. Any resource to get me started?
<coconnor>
jD91mZM2: hicolor
<d1rewolf_>
of course, I'd never gone to the main page: "Welcome to the unofficial user's wiki" ;)
<coconnor>
switching to adwaita for all options
<cocreature>
d1rewolf_: the good part about this is that you can be the one that improves the wiki :)
<d1rewolf_>
cocreature, yep ;)
<coconnor>
jD91mZM2: hm! that did help a lot.
jperras has quit [Quit: WeeChat 2.2]
johnpark_pj has joined #nixos
Denommus has joined #nixos
johnpark_pj has quit [Remote host closed the connection]
<coconnor>
looks like hicolor is either broken on this system or missing so many icons to be useless. interesting
<d1rewolf_>
nixos' default vim has some sort of setting where, when you try to select text with the mouse, it turns on vim's visual mode. I'd like to disable this. anyone know what the setting is?
<{^_^}>
[nixpkgs] @alyssais opened pull request #44102 → weechat: seperate weechat-unwrapped from wrapper → https://git.io/fN0mq
<clever>
d1rewolf_: just google "vim disable mouse"
graphene has quit [Remote host closed the connection]
<clever>
it will need to be added to ~/.vimrc
<samueldr>
d1rewolf_: it would be systemctl, from systemd
hlolli has joined #nixos
<d1rewolf_>
clever, samueldr: thanks guys
graphene has joined #nixos
<d1rewolf_>
clever, yeah, I should google more. set mouse= works. thx
<srk>
:set mouse=
<srk>
:)
<d1rewolf_>
srk, with visual mode enabled, do you know how to yank to the x clipboard? I tried "*y but no luck
<srk>
oooh, I don't use this thing
<Denommus>
nixops is trying to stop -.slice
<d1rewolf_>
srk, no worries ;)
<d1rewolf_>
off to google
<srk>
d1rewolf_: like I've had to use vimx for it to work previously, I just pass :set nonu and copy stuff with mouse when needed
<srk>
mostly use splits tho
<clever>
srk: you can :tabe to make a new tab without splits
<pie_>
can anyone recommend any guides on setting up software raid 1?
<clever>
and it can edit the same file in several buffers
<infandum>
clever: Otherwise it says that the enableGoogleTalkPlugin is already defined
<Denommus>
I don't know why it's trying to stop -.slice, I feel like it shouldn't
madknight has joined #nixos
<clever>
infandum: you want to put it inside the pkgsConfig
<clever>
infandum: and then you can strip the nixpkgs.config from it
iqubic has joined #nixos
doyougnu has joined #nixos
halfbit has joined #nixos
<madknight>
i guess there is a good reason to it, why are nix builds stored in a mono repo and not managed like the arch user repository, where each package has its own git?
<infandum>
clever: Okay, it's in pkgsConfig now, but that did not solve the original versionBranch issue
<clever>
infandum: can you pastebin the original error?
<d1rewolf_>
is there a list of commercial users of nixos to parade in front of pointy haired bosses?
<infandum>
clever: error: attribute 'versionBranch' missing, at /nix/store/r2j.../nixos/pkgs/development/libraries/glib/default.nix:52:42
<infandum>
It's a bit hard as I'm on another computer
<clever>
infandum: thats line 52 of glib, not line 52 of configuration.nix
<clever>
infandum: your override to change things like gdm is breaking things
<clever>
madknight: hackage-packages.nix is auto-generated from hackage
<madknight>
clever, ah my package is on hackage
<clever>
madknight: then it should just appear automatically next time the file is regenerated
<madknight>
clever, so it will be automatically added soon?
<clever>
Sonarpulse: *poke*
<mightybyte>
How do I get around the "warning: ignoring untrusted substituter" error when I specify a substituter on the commanhd line?1
<__monty__>
Is it generated from hackage or stackage?
<madknight>
clever, perfect thx
drakonis has joined #nixos
<clever>
mightybyte: you have to be listed as a trusted user in /etc/nix/nix.conf to specify your own substituters
<mightybyte>
Ahh, ok.
<Sonarpulse>
clever: pong
<clever>
mightybyte: and at that point, i would just add the substituter to nix.conf
<cocreature>
__monty__: for packages in stackage, the version number comes from stackage but it adds all packages on hackage. it just choses the newest version by default for other packages
<Sonarpulse>
clever: on discourse peti mentioned a cron job
<Sonarpulse>
but that is for unstable
<Sonarpulse>
and i think the regeneration too
Guest2436 is now known as bollu
<d1rewolf_>
I'm curious...why does nixos-generate-config place grub settings in configuration.nix instead of hardware-configuration.nix? It seems to make much more sense in the hardware config?
<mightybyte>
clever: Interesting. How have you liked buildkite?
<clever>
d1rewolf_: you generally need to change the grub settings, and nixos-generate-config is designed to be re-ran again in the future, and it will overwrite hardware-configuration.nix
<clever>
mightybyte: much more control over the build capacity, never stuck in a queue and unable to do anything about it
<clever>
mightybyte: it also has support for windows (though we dont use it), so you could get win/linux/mac all on buildkite if you wanted
<mightybyte>
Nice
<clever>
mightybyte: but if all your doing is nix-build, hydra is a better option
<d1rewolf_>
clever, it's meant to be re-ran? really? in what context?
<Myrl-saki>
clever: Holy crap.
<Myrl-saki>
clever: That's... amazing.
<mightybyte>
clever: hydra is nigh unto impossible in my exeperience.
<clever>
d1rewolf_: you can mount a new disk anywehre you want, and re-run nixos-generate-config to update hardware-configuration.nix to match the new hardware config
<clever>
Myrl-saki: makeBinPath and makeLibPath just pass "bin" or "lib" to makeSearchPath
lambdamu has quit [Ping timeout: 248 seconds]
<d1rewolf_>
clever, interesting. but in my case, since I had to modify hardware-configuration.nix to support encrypted LUKS....perhaps I need to put the LUKS settings in a different file and include it from hardware-configuration.nix?
<clever>
d1rewolf_: just put the luks stuff in configuration.nix
rej29 has joined #nixos
<rej29>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
rej29 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<clever>
d1rewolf_: there is no real difference between the 2 files, they just get merged together automatically
<clever>
d1rewolf_: the only real difference is that nixos-generate-config will silently overwrite one of them
<d1rewolf_>
clever, yeah, I suspect I've been placing too many generic cross-machine settings in configuration.nix. I'll have to break those out
<clever>
d1rewolf_: what i do, is i put the bare-minimum required to boot into configuration.nix, and then i do imports = [ ./nixcfg/hostname.nix ];
<clever>
d1rewolf_: nixcfg is a git repo, and each machine has its own hostname.nix that acts as an entry point
<clever>
and all of the hostname.nix's have imports = [ ./core.nix ];
<d1rewolf_>
clever, it's meant to be re-ran? really? in what context?pas
<clever>
Ankhers: you probably want { inherit (beam.packages) erlangR20; }
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
hotfuzz_ has quit [Ping timeout: 244 seconds]
<Ankhers>
clever: Thanks. Now I'm getting an "unexpected argument 'erlangR20'".
<clever>
Ankhers: why are you trying tp pass that to test.nix?
derchris has joined #nixos
<clever>
Ankhers: can you add test.net to the gist?
<Ankhers>
I'm trying to come up with something that can test all supported versions for a lib I am writing. Something similar to travis, but I can run locally. Sure, one sec.
<Ankhers>
clever: updated.
<clever>
Ankhers: test.net only accepts 3 arguments, stdenv, erlang, and rebar3
<clever>
Ankhers: so you can only pass one of those 3 in the {} after callPackage
<clever>
you probably want { erlang = beam.packages.erlangR20; } then
derchris has quit [Read error: Connection reset by peer]
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
ajs124 has joined #nixos
<Ankhers>
clever: Thanks! I think that has put me on the right path.
patrl has quit [Ping timeout: 256 seconds]
RetardedOnion has joined #nixos
derchris has joined #nixos
<andi->
hmpf, anyone else using `st` with `neomutt`? I know it sounds strange but my st crashes with an xlib error whenever I scroll down in my emails... m(
halfbit has quit [Ping timeout: 260 seconds]
<d1rewolf_>
why does it seem there are a lot of haskell programmers using nixos? Is it because of its functional nature?
<iqubic>
Yes indeed.
<__monty__>
It's just because haskell, nix and haskell programmers are lazy.
<clever>
that lets you forcibly change any nixos option
<fresheyeball>
clever: I don't see how that works, how can I still refer to ${hoogleEnv} ?
<clever>
fresheyeball: its in a let block, so you cant
<clever>
fresheyeball: youll need to copy its definition over to configuration.nix
<fresheyeball>
aww
derchris has quit [Read error: Connection reset by peer]
<Ankhers>
clever: beam.packages.erlangR20 is a set. I would think the `inherit (beam.package) erlangR20` shold have worked. And then the callPackage function pulls the erlang and rebar versions from there?
<fresheyeball>
copy pasta? that sucks
derchris has joined #nixos
iqubic has quit [Remote host closed the connection]
<Ankhers>
Or am I misunderstanding callPackage?
<clever>
Ankhers: `inherit (beam.package) erlangR20` is just `erlangR20 = beam.package.erlangR20` and test.net wont accept a erlangR20 param
<clever>
fresheyeball: another option is to just change out the whole module
Phex has quit [Quit: Page closed]
<countingsort>
when i want to install firefox but not compile everything myself, i should do firefox-bin, is that how it works?
<fresheyeball>
clever: what do you mean by that? Just write it myself?
<clever>
fresheyeball: if you use disabledModules correctly, then nixos will just entirely ignore the services/development/hoogle.nix in your channel
jperras has joined #nixos
lambdamu has joined #nixos
<clever>
fresheyeball: you can then copy that file to /etc/nixos/, edit it however you want, and imports = [ ./hoogle.nix ]; to load the new version
<clever>
countingsort: the nixos binary cache should provide a pre-compiled copy of firefox
<fresheyeball>
clever: that seems like too much work just to pass the --home flag to hoogle
<countingsort>
clever: weird. started compiling everything, i stopped it at spidermonkey
<clever>
countingsort: what is the content of /etc/nix/nix.conf ?
<clever>
fresheyeball: you can also file a PR to nixpkgs to fix hoogle.nix
<fresheyeball>
clever: that sounds better
<clever>
fresheyeball: you can use disabledModules to test out the hoogle.nix changes, before you make that PR
derchris has quit [Ping timeout: 244 seconds]
<countingsort>
clever: what part of it? i havnt touched it, substituters says cache.nixos.org and theres also a trusted public key for it
<clever>
countingsort: have you changed your version of nixpkgs any?
<fresheyeball>
clever: I think I will have to even after the pr
derchris has joined #nixos
abueide has joined #nixos
<countingsort>
clever: how do i do that? new to nixos, pretty much just installed it
worldofpeace_ has quit [Ping timeout: 245 seconds]
<abueide>
hey guys so i bought a pau06 wireless adapter which is plug and play on arch linux and why i bought it so i can install via live usb, but its not creating a network interface on it with minimal nixos
<clever>
countingsort: can you pastebin the output of `nix-build '<nixpkgs>' -A firefox --dry-run` ?
<samueldr>
abueide: if using vim, :w! will force write it, you could otherwise chmod +w it
<clever>
countingsort: ahh, 32bit, hydra doesnt pre-compile a 32bit firefox
<clever>
countingsort: is the cpu 32bit only?
<countingsort>
yes
<countingsort>
its like 10 years old
<clever>
countingsort: then your only choice is to either compile firefox or switch to firefox-bin
<Ankhers>
clever: Interesting. Thanks.
<countingsort>
firefox-bin then, compiling would take ages
hotfuzz has joined #nixos
<countingsort>
so why tf is firefox-bin also trying to compile stuff
hotfuzz_ has quit [Ping timeout: 264 seconds]
<countingsort>
:(
<clever>
countingsort: what is it trying to compile?
<countingsort>
clever: libbonobo atm
<Ankhers>
clever: Thanks for the help! I got it working.
<{^_^}>
[nixpkgs] @Fresheyeball opened pull request #44103 → Add Home option to Hoogle Server → https://git.io/fN0C5
<fresheyeball>
clever: ^^
<clever>
fresheyeball: it doesnt need a defaultText on that option
<clever>
fresheyeball: thats only for when the default is a derivation, and you dont want that drv in the documents
<fresheyeball>
clever: updated
<countingsort>
clever: guess im compiling, thanks for your help
<abueide>
clever, do i need to reboot after nixos-rebuild switch
<abueide>
in order for the kernel module to be enabled
crmlt2 has joined #nixos
<clever>
abueide: no
<clever>
abueide: the `switch` tells it to apply the changes without rebooting
<clever>
abueide: and its a livecd, so all changes are lost at shutdown/reboot
reinzelmann has quit [Quit: Leaving]
crmlt2 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #44073 → pyserial: fix build on Darwin → https://git.io/fNRU7
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fN0WR
<abueide>
yeah so it didn't work :( is the rt2800usb kernel module included on the live disk or do i have to download it with my nonexistent internet connection on the machine
<abueide>
and will it set up the interface automatically?
<abueide>
if it was
sven_ has quit [Ping timeout: 244 seconds]
<clever>
abueide: it probably needs network access to get network access, it can be a pain to deal with that
<clever>
abueide: if you have nixos on another machine, you can just format and nixos-install against the usb stick, then youll have a non-live install
alex`` has joined #nixos
<abueide>
why aren't the wifi firmwares enabled by default on the live usb
<clever>
abueide: and then you can plug that usb stick into a machine that can get internet, change things, and nixos-rebuild
<clever>
abueide: before we can answer that, we need to know which wifi drivers are missing
<labviking>
This message was brought to you by Private Internet Access
<clever>
abueide: also, thats a 5372 card, and your using the 2800 driver
labviking was banned on #nixos by gchrist`recovery [*!*@37.98.247.26]
labviking was kicked from #nixos by gchrist`recovery [labviking]
ambro718 has joined #nixos
<clever>
abueide: try unplugging and replugging the usb device
<gchrist`recovery>
so I had a terrible idea where it'd be cool if I could take a nix-shell and update my calling shell's env to matchits PATH ... but I can! hahaha
<gchrist`recovery>
something like eval $(nix-shell ... --run env)
<ambro718>
I see that stdenv.mkDerivation will set lots of environment variables for build tools like CC, CXX, LD, AR, AS, RANLIB... Is there a simple way to "rename" those to BUILD_*? I had a package that did it manually for CC and CXX which was enough at the time but this later broke when nixpkgs started setting more variables.
<abueide>
clever, nothing in usb 3 or usb 2
<abueide>
do i need to enable unfree in configuration.nix
<ambro718>
(the reason is that I am cross-compiling something whose configure script would interpret these variables as cross-compile tools which they are not)
<infinisil>
gchrist`recovery: Neat! And welcome back :)
<abueide>
currently i just have this one line boot.kernelModules
<clever>
abueide: nixos-rebuild would have given an error if you needed it
aarvar has quit [Ping timeout: 256 seconds]
graphene has quit [Remote host closed the connection]
<abueide>
boot.kernelModules = [ "rt2800usb" ]; *
Anton-Latukha has joined #nixos
<clever>
abueide: is that even the right driver?
IRCsum has quit [Remote host closed the connection]
<clever>
abueide: what is the vid:pid pair for the device in lsusb?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fN00n
<iclanzan>
How do you guys handle working on a project using `nix-shell` and swtiching to a branch that has a different set of dependencies listed in `default.nix`? Exiting the old shell session and entering a new one manually gets old fast.
<fresheyeball>
iclanzan: I exit and re-enter
<fresheyeball>
or I keep multiple checkouts
IRCsum has joined #nixos
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
kyren_ has joined #nixos
<gchristensen>
clever: thanks, should be fixed now :)
<petersjt014[m]>
hi: im looking to get a raspi 3 and run nixos on it (trying it on my pi zw is giving me some trouble). Is any specific variant of the pi3 better supported than the others?
<keith_analog>
Hi All, I'm trying to install tcmalloc using nix-env -i gperftools, but when it completes, there is no instance of tcmalloc in /nix/store. Can someone help me to find the right command to make it appear?
IRCsum has quit [Remote host closed the connection]
<infinisil>
keith_analog: Don't ls the nix store to find things, you should have this program in your PATH now
<fresheyeball>
ok
<fresheyeball>
so I learned more, and I had the problem wrong
<fresheyeball>
clever: things sent to $out durring checkPhase, do infact appear on re-run
<fresheyeball>
the re-run is not the problem
jD91mZM2 has quit [Quit: WeeChat 2.0]
<fresheyeball>
ghc ran out of memory in a run on CI
<fresheyeball>
and re-runs where just caches of that failure
IRCsum has joined #nixos
<fresheyeball>
ghc running out of memory made it not deterministic
<keith_analog>
infinisil: thx, but i think the problem is a bit different: I'm looking for a libtcmalloc.so file. Should it show up in some default path?
<fresheyeball>
and now I need to recover
<infinisil>
,library keith_analog
<{^_^}>
keith_analog: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<fresheyeball>
but if I trigger a new `nix-build` it doesn't try again, it just poops out the failure from last time
<clever>
fresheyeball: ah, succeed on failure
<keith_analog>
infinisil: is ,library a path?
<clever>
fresheyeball: you need to check for result/nix-support/failed
<fresheyeball>
clever: right
<fresheyeball>
clever: right, its there
<clever>
fresheyeball: then you need to change something to correct the failure, and re-run it
<infinisil>
keith_analog: See the bots reply
<fresheyeball>
but its specious, if I make a trival change to the code, it will be successful
<infinisil>
keith_analog: {^_^} is a bot
<fresheyeball>
clever: there is nothing to change
<keith_analog>
infinisil: if i run `nix-shell -p gperftools`, where should i look to find any .so files emitted by gperftools?
<fresheyeball>
ghc just ran out of memory
<clever>
fresheyeball: if its an intermitent failure due to ram, then you need to fight succeed on failure
<fresheyeball>
updating a code comment fixes this
<clever>
fresheyeball: delete result, then run nix-store --delete on the output path it made
<clever>
fresheyeball: then re-run nix-build again
<mikky>
Hi, I've been with Arch linux for past 14 years and just a few weeks ago I found out this little distro gem. I'm about to try to install NixOS on my home server next to Arch on ZFS over LUKS with UEFI. From running Arch.
<mikky>
wish me luck, I only have SSH access to the box :)
<gchristensen>
good luck
<keith_analog>
so, if i reference ${gperftools}/lib and try to linkwith -ltcmalloc_minimal from inside a .nix script, i see the path /tmp/nix-build-dashmm-multicore.drv-0/multicore/gperftools/lib/libtcmalloc_minimal.so. yet, i can't seem to find any such file in the filesystem if i run, say, nix-shell -p gperftools. how might i do that?
<sir_guy_carleton>
mikky: bonne chance
erasmas has quit [Quit: leaving]
<infinisil>
keith_analog: I think you can just link with `-L${gperftools}/lib`
<keith_analog>
infinisil: true, i could. unfortunately i'm using cmake, and need somehow to configure cmake to point at gperftools
<logzet>
Hi, what is the preferred way to partially move a nixos installation to a ssd? My preferred way would be to move /boot and /nix to partitions on the ssd. Does this interfere with this mount-/nix/store-readonly stuff? Or is the easier or better way to create a new / on the ssd and partitions for /home etc on the hdd?
<clever>
keith_analog: if you do `buildInputs = [ gperftools ];` then the stdenv will add a -L flag for you
<clever>
logzet: if you copy the partitions over while it is not running, it should be fine, as long as the old config in /boot is able to find the right partitions to mount
infandum has quit [Remote host closed the connection]
<clever>
logzet: but since its nix, you can also just copy /etc/nixos/configuration.nix and nixos-install again, and it will be virtually identical
<clever>
logzet: and if the config is broken after copying the partitions, you could just use nixos-enter to chroot into it, fix the config, and nixos-rebuild boot
dStruct160 has joined #nixos
<dStruct160>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<dStruct160>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<infinisil>
Ah never mind, the wasn't active back then
rture[m] has joined #nixos
cods7 has joined #nixos
<logzet>
And another quick question, if nix is not able to fetch a package from the cache. Nix builds it somewhere and moves it to /nix/store when the build succeeds, doesn't it?
<clever>
logzet: it would let you have a small fat32 efisys, then a much larger (or even part of the rootfs) /boot for many kernels, and proper journaling
<johnw>
logzet: correct
erratic has joined #nixos
cods7 has quit [Remote host closed the connection]
<mikky>
logzet: for once it's what I'm used to :) but more importantly I have a need for multiple EFI loaders to coexist in that partition while having kernel images elsewhere due to partition size constraints
<clever>
logzet: if sandboxing is on, it builds it in a chroot like namespace, if sandboxing is off, it just builds directly into /nix/store/
<samueldr>
mikky: then boot.loader.efi.efiSysMountPoint is the right option for you AFAIK
<logzet>
clever: Is this namespace located outside /nix?
IRCsum has quit [Remote host closed the connection]
<mikky>
samueldr: seems so, thanks much for the pointer
<logzet>
iirc i got some messages from builds in /var or /tmp
<clever>
logzet: i think it uses something like ${out}-root as the rootfs for the build, with many bind mounts
IRCsum has joined #nixos
<logzet>
mikky: Sounds like a good idea, I have an installation where boot is full after a few kernels, kinda annoying :/
<clever>
logzet: i also make my /boot at least 1gig
<drakonis>
there's one that uses css to run a script
<clever>
RetardedOnion: its plausible that its using cross-site scripting to connect to something like the freenode webchat from your ip, and then spam more
<gchristensen>
clever: it is also done via a Go program
<RetardedOnion>
i ran it in a vm.
<RetardedOnion>
in w3m. also i use quassel.
<samueldr>
clever: they're probably open web proxies, the script tags are probably byproduct of proxies injecting stuff → any more discussion about spam in the off-topic channel #nixos-chat
* samueldr
meant to split messages
Thra11 has quit [Ping timeout: 256 seconds]
<RetardedOnion>
what do you think of guix?
Anton-Latukha has quit [Quit: Leaving.]
<gchristensen>
another good chat for #nixos-chat probably :)
knupfer has joined #nixos
sigmundv_ has joined #nixos
xy2_ has joined #nixos
<Lisanna>
Are there any secret methods for making a derivation take up more than one job slot according to Nix's accounting?
<gchristensen>
1 drv = 1 job always
<Lisanna>
):
depleted has joined #nixos
<depleted>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
depleted was kicked from #nixos by the [PM gchristensen to dispute this]
<clever>
abueide: if using efi, you have to set the removable flag when you install
<kalbasit>
how to `nix repl '<nixpkgs>' /etc/nixos/configuration.nix`? I always get `error: cannot auto-call a function that has an argument without a default value ('config')`
<apollojustice21>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<apollojustice21>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<clever>
abueide: probably, boot the stick up and see if the usb works
jmeredith has joined #nixos
koisell_ has joined #nixos
abueide has quit [Remote host closed the connection]
<mikky>
Anyone uses remote LUKS unlocking via ssh? It doesn't seem to be documented well but I found a few pull requests in github dealing with it. Bit confused as to how to make sure the boot process will continue after I unlock the partition - the cryptsetup passphrase prompt in boot console will have to be killed safely somehow without failing the boot process ... but how?
<clever>
mikky: this shell script will kill other cryptsetup prompts after it gets a password entered
<clever>
which i believe will un-stick the /init script that was blocked on a console password
Denommus has quit [Read error: Connection reset by peer]
aanderse-laptop has joined #nixos
Ridout has joined #nixos
tadni has joined #nixos
ambro718 has quit [Ping timeout: 256 seconds]
<tadni>
Okay, so I've been doing a lot of debating back and forth ... and really kind-of want to go NixOS on my independent-study/development machines (desktop and a laptop) to practically 'reteach myself programming' on/around the JVM. Should something like intellij work 'right out of the box' if I override the jdk to be jetbrains? Guess I'm trying to figure out if the trouble is "worth it" at this point of my experience.
<tadni>
Adding an extra-layer of complexity over everything.*
7GHABFWQT has joined #nixos
<7GHABFWQT>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<7GHABFWQT>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<abueide_>
whats the best solution for creating wifi profiles for netctl? in arch linux i used wifi-menu and netctl-auto where wifi-menu would create the profile after the first sign in and then it would auto switch to the best wifi network you had a profile for
<clever>
abueide_: i just use bare wpa_supplicant
<tadni>
Eh, ya know I might just go the safer way of just going Arch and making a NixOS partition tbh.
<tertle||eltret>
joepie91: wussup
<tertle||eltret>
xmonad :/
<abueide_>
what do you think is better?
<clever>
abueide_: it may also help to just look at what arch is doing differently, one min
madknight has quit [Remote host closed the connection]
<tertle||eltret>
tadni: arch is not safer
<clever>
abueide_: can you boot the arch install cd, load up the wifi driver, and then run a command like this?
<clever>
[root@amd-nixos:~]# ls /sys/class/net/enp3s0/device/driver -l
<clever>
abueide_: in my case, it says e1000e is responsible for enp3s0
<clever>
abueide_: once we find out what arch is doing specially, we can just do the same thing in nixos
<abueide_>
clever, i'd have to wipe the graphical install (which i'm currently on) but yeah i can
<abueide_>
brb
koisell_ has quit [Ping timeout: 256 seconds]
<clever>
abueide_: dont have a spare usb?
<abueide_>
wait would booting up a regular arch install work or does it have to be live disk?
<clever>
abueide_: a normal install also works
<tadni>
tertle||eltret: Safer in the sense of having 'a better clue' of what I'm doing right out of the gate; Think I'm putting too much weight on my shoulders to actually be productive in independent study right off the back -- if I try to do near full-time study for a year while compounding being productive on NixOS right off the back ... though I really want to
<clever>
any linux where the wifi actually works
<abueide_>
oh okay i'll just rebot into the normal install
<tadni>
It does seem trivial to just have a seperate root partition and eventually just bootstrap to it and update my /boot to point to it
<tadni>
The more I look at the install procedure again
abueide_ has quit [Remote host closed the connection]
<tertle||eltret>
tadni: yeah im using it on my backup machine
patrl has joined #nixos
<tertle||eltret>
but the more i sue it the I notice that everything works
gratin has joined #nixos
gratin is now known as abueide_
<abueide_>
clever, k what did you want me to do?
<clever>
abueide_: what is the name of the interface in `ip link` ?
<abueide_>
wlp0s29u1u2
<clever>
ls /sys/class/net/wlp0s29u1u2/device/driver -l
<tadni>
If I was doing Haskell or something, I think I'd jump right in -- but while there seems to be trivial support for an area of interest like Scala (sbt2nix), more I'm thinking about it now I might just be setting myself out to fail (or at least get quickly discouraged ...)
<clever>
abueide_: `dmesg | egrep 'rt2800usb|firmware' -i -C5` and throw it into a pastebin
<tadni>
tertle||eltret, Yeah, I have a cheap laptop laying around, I was considering messing around with a bit more ... used it in the pass, but I have seemingly poor moderation and fall quickly into that all or nothing mentality; So nix'd it (ha ha) for a bit
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tadni>
tertle||eltret: Eluding back to the poor moderation bit, where if I can't have something everywhere it's hard for me to have/run it all technologically.
<tertle||eltret>
oh i see tadni, to each thier own
<tadni>
Personality quirk, to put it nicely
martinga_ has quit [Read error: Connection reset by peer]
<clever>
abueide_: if you now boot the nixos usb stick, and repeat the same command, what do you see?
<tertle||eltret>
tadni: i know what you mean,. i once tried to run the fully libre OS on all my machines
<tertle||eltret>
needless to say, the rabbit hole is deep and had seen enough
halfbit has quit [Ping timeout: 245 seconds]
martingale has joined #nixos
<tadni>
tertle||eltret, Oh, I know that one -- actually learned about Guix before NixOS and was trying to run it full-time for a couple months and just got pretty much no-where... didn't happen it was within the first year of it being public and very very little was packaged-definitioned yet
abueide has joined #nixos
<tadni>
Also did a little parabola in HS, when it was new/hip; Luckily the extreme bent I had back then it mostly gone... :^P
alex`` has quit [Ping timeout: 240 seconds]
<tertle||eltret>
yeah its hard to justify that torture for long lol
<clever>
abueide: `dmesg | egrep 'rt2800usb|firmware' -i -C5` and throw it into a pastebin
abueide_ has quit [Ping timeout: 256 seconds]
<tadni>
tertle||eltret, Frame things as a extreme moral imperative and it can buy you a few years (sadly).
<mkaito>
you know, it would be cool to have nixos-rebuild on non-nixos nix installations just because of the --target-host option.
<clever>
abueide: try booting nixos without the wifi plugged in, then plug the wifi in after booting
Sonarpulse has quit [Ping timeout: 265 seconds]
iclanzan has quit [Quit: WeeChat 2.0]
<tadni>
Yeah, think that's the way to go -- especially because both of these machines have well over 1tb of free-space; Maybe eventually end up on spare laptop full-image.
<tadni>
Okay, that was me mostly justifying by talking to myself in a public room ... but thanks guys! lol
<Peetz0r24>
This message was brought to you by Private Internet Access
* clever
pokes gchristensen
Peetz0r24 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<iqubic>
I can't resize the root partition when the machine is running can I?
<clever>
iqubic: depends on the filesystem and which direction the size is going
sigmundv_ has joined #nixos
<iqubic>
I want to shrink an EXT4 partition containing the root of the filesystem.
<clever>
iqubic: first, run resize2fs on the device, with the new size you want to use
<iqubic>
I can just do that?
<clever>
it should detect that its mounted, and contact the kernel and arrange for things to happen
<clever>
iqubic: check its man page and read things closely
<clever>
(Modern Linux 2.6 kernels will support on-line resize for file systems mounted using ext3 and ext4; ext3 file systems will require the use of file systems with the resize_inode feature enabled.)
<iqubic>
How do I get the size of a partition?
<clever>
iqubic: fdisk -l
<iqubic>
Or lsblk.
<clever>
iqubic: you may also want to try gparted, it supports resize and has a gui
<iqubic>
I don't think that will let me shrink while running.
<clever>
try it first
<iqubic>
I want to shrink the partition containing the root of the filesystem, while the machine is running.
<clever>
try it first
<iqubic>
Yeah. It isn't letting me shrink the root partition while the machine is running.
<clever>
and why do you need to shrink it while its running?
hamishmack has joined #nixos
<iqubic>
I don't. I was just hoping to save time by not having to reboot.
<clever>
ah
<iqubic>
I can boot into a live system if that is needed.
<clever>
that would be simpler and safer
worldofpeace_ has joined #nixos
<iqubic>
Why is this Debian Installer ISO so confusing?
tadni has quit [Remote host closed the connection]
<iqubic>
Does it just have a simple way for me to launch a gui so I can shrink the FS?
<clever>
its meant to be an installer, not a livecd where you can demo things
<iqubic>
Well this stinks
<Dezgeg>
IIRC there is an option to get a shell
<Dezgeg>
but it might be too limited to not have resize2fs
<iqubic>
I found a shell, but it was too limited to even have "lsblk"
init_6 has joined #nixos
<iqubic>
Yeah... I'll go get a different USB and see if that works better.
<iqubic>
I might have something else laying around.
Gohla has quit [Ping timeout: 260 seconds]
<tertle||eltret>
should I only install cabal in a nix-shell as well?
abueide__ has joined #nixos
<abueide__>
clever, slow internet kernel is taking a while
<iqubic>
Well, time to make a LiveCD that I can actually use to shrink stuff
<clever>
iqubic: this is also a good use for my rescue env