worldofpeace changed the topic of #nixos to: NixOS 20.09 Nightingale ✨ https://discourse.nixos.org/t/nixos-20-09-release/9668 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-inf
<pushqrdx> that said installing then sym-linking
<pushqrdx> worked
<Jonathan74> Installed or fixed the problem?
<pushqrdx> Jonathan74 fixed the problem :D
<pushqrdx> thanks!
<notgne2> huh
<Jonathan74> Wow, uh, I didn't think it would actually work '=D
<notgne2> maybe it's searching `XDG_DATA_DIRS`
<pushqrdx> so what is that i am completely new i don't even know what i just ran
<Jonathan74> I am glad you as :}
<{^_^}> [nixpkgs] @asbachb opened pull request #102293 → openjdk: 11.0.8 -> 11.0.9 → https://git.io/JTHhn
<notgne2> `nix-env -iA [thing]` basically "installs" it (it acts more like a normal OS than a Nix thing) to `~/.nix-profile`
<tokudan> ,locate xpath
<notgne2> and a lot of environment variables are set up to look there, so you can use it to install binaries and some other stuff
<{^_^}> Found in packages: xsd, codimd, logstash6-oss, logstash7-oss, jetbrains.clion, jetbrains.rider, jetbrains.webstorm, lispPackages.xpath, rubyPackages.rouge, rubyPackages.nokogiri, python27Packages.pyxml, rubyPackages_2_5.rouge, rubyPackages_2_7.rouge, jetbrains.idea-community, perl528Packages.XMLXPath, perl530Packages.XMLXPath, rubyPackages_2_5.nokogiri, rubyPackages_2_7.nokogiri, python27Packages.antlr4-python2-runtime, and 2 more
<notgne2> though some people advise against using it very much
<Jonathan74> Nixos how two ways of managing packages: Declarative and Ad-Hoc https://nixos.org/manual/nixos/stable/index.html#sec-package-management
<Jonathan74> pushqrdx
<notgne2> chances are if `nix-env` made it work, putting it in systemPackages (or `home.packages` if you have home-manager) would work too
<Jonathan74> Your configuration file where you enabled pantheon is one way to install a package (decoratively).
<pushqrdx> huh, i found the background downloaded in ~/.nix-profile/share/backgrounds
<Jonathan74> notgne2: I would think so too.
<clever> pushqrdx: nix-env adds things to ~/.nix-profile/
<pushqrdx> but iam pretty sure during my initial nixos install i saw elementary-wallpapers downloading
<clever> pushqrdx: systemPackages would put it instead in /run/current-system/sw/
<Jonathan74> nix-env is a package manager much like any other distribution's package manager.
<Jonathan74> It was downloaded.
<pushqrdx> so something must have missed it up, but my config is just the vanilla config with only the panteon edit
<notgne2> `env | rg -i '\\.nix-profile' | rg -v '/run/current-system'` gives me nothing, so I don't think there's anything that looks in `~/.nix-profile` but not `/run/current-system` unless something is wrong
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102294 → gphoto2: 2.5.23 -> 2.5.26 → https://git.io/JTHh6
<Jonathan74> pushqrdx: The installation just did not put the wallpapers where it expects them.
<Jonathan74> For some reason.
<pushqrdx> i might file a bug because my config is vanilla but where to open it?
zupo has joined #nixos
<neothefox> hey so I think that ```libreoffice``` and ```libreoffice-fresh``` are not being build by hydra - it attempts to build them on my machine
<pushqrdx> also if nix-profile/share is a thing does that mean i can add /firmware there too, my audio won't work without that binary firmware
<neothefox> I don't think it should be doing that
<Jonathan74> Ah, either for elementary-wallpapers in the nixpkgs on github, or for pantheon.
Acou_Bass has joined #nixos
<Jonathan74> pushqrdx: try it
<{^_^}> [nixpkgs] @ryantm merged pull request #102279 → ffsend: 0.2.65 -> 0.2.68 → https://git.io/JTH9J
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTHhp
<Dotz0cat> here is a question. is there a idiot's guide to nix packaging? I have already found nix-pills
<{^_^}> [nixpkgs] @ryantm merged pull request #102095 → armadillo: 10.1.0 -> 10.1.1 → https://git.io/JTDAU
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTHjU
zupo has quit [Ping timeout: 240 seconds]
<neothefox> <Dotz0cat "here is a question. is there a i"> there is also one in the manual too
<pushqrdx> yeah i can;t edit .nix-profile it's readonly
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6a6e7c95125 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
alexherbo2 has quit [Ping timeout: 272 seconds]
Reiser has quit [Changing host]
Reiser has joined #nixos
pushqrdx has quit [Remote host closed the connection]
<jdnixx[m]> I'm looking at an old forum thread & these posts made a lot of sense
<jdnixx[m]> `What the fuck was wrong that they couldn't just go with something like nix-env install, nix-env search, nix-env uninstall?`
<jdnixx[m]> `Because you shouldn't be "installing" and "uninstalling" from the CLI anyway. Declare your packages in your configuration.nix (or Home Manager home.nix) so that you can actually reproduce on other machines etc. The "imperative" nix-env interface is the shitty legacy way.`
<jdnixx[m]> `honestly they should just automate that
<jdnixx[m]> it's just listing the package name in a predefined place`
<jdnixx[m]> ^that is very freakin true lol has there been any talk about that before?
<jdnixx[m]> also what is the `nix something` equivalent of `nix-env -iA`
<jdnixx[m]> is it add-to-store?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102295 → gitAndTools.git-extras: 6.0.0 -> 6.1.0 → https://git.io/JTQeJ
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTQeI
<supersandro2000> jdnixx[m]: but it is not the spirit of nix
<supersandro2000> and moving from env to config is tidious
<neothefox> Wait is hydra failing to build libreoffice?
<jdnixx[m]> supersandro2000: why not just a flag to add it to the config as well as installing
<supersandro2000> build yourself a sed which does that
<jdnixx[m]> well
<supersandro2000> shouldn't be that hard and you learn linux tools
philr has joined #nixos
<jdnixx[m]> I mean I guess it's kind of outside the scope of nixos' philosophy so whatever. but little things like that would make life a lot easier
<jdnixx[m]> kinda like an install script I was talking about the other day
<jdnixx[m]> not sure why there's such a resistance to those ideas
<supersandro2000> you can just install everything into your enviroment if you want
<jdnixx[m]> I think nixos could be a super user-friendly choice if there were some small quality of life improvements stuck in here & there
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #102030 → cloudflared: 2020.10.0 -> 2020.10.2 → https://git.io/JTMhx
<supersandro2000> jdnixx[m]: probably time. if we focus on nice to haves rather than must haves nix isn't as good
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JTQea
<bqv> why can't I catch a typeError with tryEval?
<bqv> > builtins.tryEval config.systemd.services."getty@".runner.outPath
pushqrdx has joined #nixos
<{^_^}> attribute 'systemd' missing, at (string):345:18
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #102026 → checksec: 2.2.3 -> 2.4.0 → https://git.io/JTMx1
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JTQeK
<bqv> hmph.
<jdnixx[m]> <supersandro2000 "jdnixx: probably time. if we foc"> yeah true. I'm not really aware of what all the day to day efforts look like for the maintainers so if it's kind of a clusterfook already then I get that
<pushqrdx> given that nix-env fixed the wallpaper issue is there a way to bake that into a new generation (and get rid of the ad-hoc .nix-profile)
MmeQuignon has quit [Ping timeout: 264 seconds]
<jdnixx[m]> I kind of want to contribute some of that stuff though since I have the time, & probably not the competence to do any actually useful stuff at the top level lol
alexherbo2 has joined #nixos
<supersandro2000> jdnixx[m]: I am packaging something for mac since at least a week cause it is 60 or so modules
<supersandro2000> jdnixx[m]: just start somewhere with a easy and little task and go from there
<nicolas[m]> bqv: because tryEval does not catch everything
<supersandro2000> or just use nixos from day to day and if you notice something off try to fix it
<bqv> nicolas[m]: i figured. is there a way i can catch that?
<nicolas[m]> not to my knowledge
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6a6e7c95125 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<jdnixx[m]> yeah true. idk honestly I haven't really contributed much to any opensource projects before at all so I figure I'd have to learn the ropes a bit in general. & if stuff like that would be seen as not really a priority anyway then idk
<{^_^}> [nixpkgs] @andir closed pull request #66552 → autogen: fix build reproducibility issues → https://git.io/fj5Bq
<{^_^}> [nixpkgs] @jtojnar merged pull request #102122 → Init libdatrie, libthai, ibus-engines.libthai; build pango with libthai → https://git.io/JTycV
<jdnixx[m]> but that's a good idea
<{^_^}> [nixpkgs] @jtojnar pushed 5 commits to staging: https://git.io/JTQvv
<supersandro2000> neothefox: which channel did you check? master is green iirc
<jdnixx[m]> so is add-to-store the right one as a replacement for nix-env -iA?
<supersandro2000> jdnixx[m]: If you don't know git and how to contribute to opensource projects I would start from there
<gchristensen> no, nix-env -iA doesn't have a `nix *` replacement yet afaik
<neothefox> <supersandro2000 "neothefox: which channel did you"> 20.09
<supersandro2000> isn't env replaced with profile or so?
mbrgm has quit [Ping timeout: 264 seconds]
<jdnixx[m]> yeah I know git & everything I know I might as well open a PR or two
mbrgm has joined #nixos
<pushqrdx> can i automatically merge user nix-env installations/edits into a generation?
<pushqrdx> or do i have to manually edit my config.nix?
<jdnixx[m]> ^loll see what I mean I think that should be baked in at least a little bit
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #102185 → chrony: 3.5.1 -> 4.0 → https://git.io/JT9Ii
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JTQfU
<gchristensen> yeah I mean you don't escape 17 years of legacy overnight
<jdnixx[m]> true true
<jdnixx[m]> pushqrdx:
<jdnixx[m]> whoops pushqrdx nah gotta edit it manually but you could use home-manager if you wanted a package config separate from the system one
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102296 → gromacs: 2020.3 -> 2020.4 → https://git.io/JTQfs
<pushqrdx> this leaves 1 more question that i can't seem to find any answer to online, i want to install my audio .bin firmware. where do i do that
gentauro has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #101673 → libndctl: 69 -> 70.1 → https://git.io/JToqz
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to staging: https://git.io/JTQfu
gentauro has joined #nixos
<matthewcroughan_> colemickens: cole-h: I think I can beat your repo names.
<matthewcroughan_> nixe.
<matthewcroughan_> It's like a rice, but it's a nixe.
<matthewcroughan_> Nixe also means unfriendly water spirit, but we'll let that slide.
<supersandro2000> pushqrdx: How do you do that normally?
<pushqrdx> just add the bin files to /usr/lib/firmware
<supersandro2000> mhhh just look for another firmware and copy that
<supersandro2000> not using NixOS so I can't help you to much
lunik1 has quit [Quit: :x]
<nicolas[m]> Is there a sample usage of freeform modules in nixpkgs to copy?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102298 → gnu-pw-mgr: 2.4.2 -> 2.7.4 → https://git.io/JTQJc
pushqrdx has quit [Remote host closed the connection]
lunik1 has joined #nixos
teto has quit [Quit: WeeChat 2.9]
civodul has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #102299 → cde: update expression → https://git.io/JTQUf
jess-o-lantern is now known as jess
deadk is now known as e
Tritlo has quit [Read error: Connection reset by peer]
sam_w has quit [Read error: Connection reset by peer]
acertain has quit [Ping timeout: 240 seconds]
jmercouris has quit [Read error: Connection reset by peer]
gluegadget has quit [Ping timeout: 264 seconds]
hamishmack has quit [Ping timeout: 240 seconds]
visl has quit [Ping timeout: 240 seconds]
scoates has quit [Read error: Connection reset by peer]
pittma has quit [Read error: Connection reset by peer]
davidtwco has quit [Read error: Connection reset by peer]
lvrp16 has quit [Read error: Connection reset by peer]
hnOsmium0001 has quit [Read error: Connection reset by peer]
thoughtpolice has quit [Ping timeout: 268 seconds]
nick_h has quit [Ping timeout: 268 seconds]
zmacs has quit [Ping timeout: 268 seconds]
robmyers has quit [Read error: Connection reset by peer]
gluegadget has joined #nixos
pittma has joined #nixos
visl has joined #nixos
dmj` has quit [Ping timeout: 268 seconds]
robmyers has joined #nixos
hamishmack has joined #nixos
lvrp16 has joined #nixos
jmercouris has joined #nixos
eddyb[legacy] has quit [Ping timeout: 240 seconds]
sam_w has joined #nixos
Tritlo has joined #nixos
davidtwco has joined #nixos
scoates has joined #nixos
acertain has joined #nixos
mpickering has quit [Ping timeout: 264 seconds]
nick_h has joined #nixos
hnOsmium0001 has joined #nixos
eddyb[legacy] has joined #nixos
midchildan has quit [Ping timeout: 268 seconds]
zot has quit [Ping timeout: 264 seconds]
Rusty1 has joined #nixos
zot has joined #nixos
thoughtpolice has joined #nixos
midchildan has joined #nixos
mpickering has joined #nixos
zmacs has joined #nixos
dmj` has joined #nixos
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<{^_^}> [nixpkgs] @arcnmx opened pull request #102300 → prosody: install prosody-migrator tool → https://git.io/JTQTe
<{^_^}> [nixpkgs] @cyplo opened pull request #102301 → genpass: 0.4.1 -> 0.4.9 → https://git.io/JTQTG
infty has joined #nixos
pushqrdx has joined #nixos
infty has quit [Client Quit]
<pushqrdx> so i found a way to add my firmware to the nix store by using `nix-store --add-fixed sha256` however it's clashing with alsa-firmware
<pushqrdx> i want to uninstall alsa-firmare
<pushqrdx> how can i do that
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102302 → intel-gmmlib: 20.2.5 -> 20.3.2 → https://git.io/JTQT0
<gchristensen> nix-store --add-fixed just puts it in to /nix/store, but it doesn't do anything. it is inert. it is just there.
<pushqrdx> .. then this is why it doesn't work
<bqv> it has become apparent that the runners in config.systemd.services.*.runner don't like being evaluated
<pushqrdx> i want to add those bin files or else my audio is broken
<bqv> but i'm struggling to understand why
<gchristensen> pushqrdx: are you on NixOS?
<pushqrdx> yes
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
Acou_Bass has quit [Ping timeout: 272 seconds]
supersandro2000 has joined #nixos
<gchristensen> what is the name of the firmware?
<supersandro2000> OMG I think I have all modules of pyobjc. Only took the better part of this week
<pushqrdx> it's patched version of the kernel provided one
<pushqrdx> because the built-in one is completely broken
<pushqrdx> in normal distros i just add the 2 precompiled bin files under /usr/lib/firmware
<supersandro2000> take some other firmware package and adapt it to your software
cap_sensitive has joined #nixos
<supersandro2000> just replace the download, name, version and you should be good to go
<gchristensen> then add it to hardware.firmware = [ yourpackage ]
<supersandro2000> or maybe there is an option to add those files which I am not aware of
<gchristensen> you could make this really trivial by making ./myfirmware/lib/firmware/yourfirmware.bin and doing: hardware.firmware = [ ./myfirmware ];
<gchristensen> I think, anyway
<supersandro2000> pyobjc walks the file system and checks if all files are installed correctly... good damn it why?!
<pushqrdx> where i add that default.nix file though
<pushqrdx> gchristensenand if i go with that, where should that directly go
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102303 → gitAndTools.git-trim: 0.4.0 -> 0.4.2 → https://git.io/JTQkJ
<gchristensen> the hardware.fir.... bit goes in to your configuration.nix
<gchristensen> and ./myfirmware is in the same directory as your configuration.nix
<cap_sensitive> Hi. How'd I install a font in steam's FHS environment? I tried to `(steam.override { extraPkgs = pkgs: [ wqy_microhei ]; }).run` but when I run `fc-list` I don't see the font
<bqv> tbh, i don't even understand what the runners are meant to do. gonna ignore them.
<cap_sensitive> But when I use `steam-run bash`, then `ls /usr/share/fonts`, I see `truetype wqy-microhei.ttc` so it is there in the FHS, just not registered
vonfry has joined #nixos
Acou_Bass has joined #nixos
<pushqrdx> gchristensen it says `the option is not of type `package'.`
<pushqrdx> what i did was create new folder called ca0132 next to configuration.nix
<pushqrdx> then added the firmware there
CyberManifest has joined #nixos
<pushqrdx> updated config
<pushqrdx> then rebuild
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102304 → gtkwave: 3.3.106 -> 3.3.107 → https://git.io/JTQkd
<samueldr> that same folder, put the firmware files in a sub-directory so you have them in ca0132/lib/firmware/; but still refer to ./ca0132 in your config
<samueldr> that's assuming the kernel looks at the root of the firmware folder
ddellacosta has joined #nixos
eoli3n has quit [Ping timeout: 240 seconds]
<samueldr> (or rather, has been asked look at the root of the firmware folder)
<samueldr> has been asked to look at*
cole-h has joined #nixos
<siraben> I get the following error http://ix.io/2CEb
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTQLJ
<siraben> It failed to find the main module `go: cannot find main module; see 'go help modules'` despite the repo having a `main.go` file
<V> maybe because it's not a module
<V> there is no go.mod there
<V> it's an oldschool go package
<pushqrdx> samueldr idk what i am doing wrong but now i have ca0132/lib/firmware/files then in my configuration.nix i have `hardware.firmware = [ ./ca0132 ];` but still it throws same error
<V> siraben:
<siraben> Oh I see
<V> it uses a makefile to build
<siraben> yeah but it seems like it's possible to do without the makefile
<siraben> the Makefile just has some convenience subcommands
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102305 → libgnurl: 7.70.0 -> 7.72.0 → https://git.io/JTQL2
<{^_^}> [nixpkgs] @SuperSandro2000 opened pull request #102306 → Rework pyobjc → https://git.io/JTQLa
<V> but yes, you want buildGoPackage for that
<V> (and maybe post an issue asking for it to be converted to a module?)
<samueldr> ah, I was going on under the assumption that it would work that way, I see it needs to be either a derivation or a store path; which requires a tiny bit more work I think
<V> I'd make the changes myself if I had a remarkable
m0rphism has quit [Ping timeout: 272 seconds]
<supersandro2000> ^ I am on the search for reviewers for that 176 commit PR
* samueldr digs for a trivial pattern to follow
<supersandro2000> (and me reading the issue about it that I shouldn#t have fetched every single module)
<supersandro2000> but well it is what it is now
whatisRT has joined #nixos
Acou_Bass has quit [Ping timeout: 240 seconds]
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> hm, I don't have it on hand, but something like (pkgs.runCommandNoCC "ca0132-firmware" {} ''mkdir -vp $out/lib/firmware; cp -vr ${./ca0132}/* $out/lib/firmware''
<samueldr> oh, and a closing parens
Acou_Bass has joined #nixos
<pushqrdx> samueldr where should this go
tenniscp25 has joined #nixos
<siraben> supersandro2000: ooh, will this PR also fix pyobjc on Darwin?
<supersandro2000> siraben: It basically redoes it from scratch
<supersandro2000> It is almost 10.15 compatible but would require some dependency adding
<supersandro2000> and I fix a dozen missing Frameworks depedencies
<supersandro2000> so to answer your question: yes it does
<samueldr> pushqrdx: as an element of the list for hardware.firmware
<supersandro2000> and after it is in I fix all python modules which require it
<samueldr> so remove what you had before, and it would be hardware.firmware = [ (/*...*/) ]
tenniscp25 has quit [Ping timeout: 268 seconds]
<siraben> supersandro2000: that sounds great, didn't know the process was that involved
<bqv> it's upsetting that system.activationScripts is a one-way trip
<bqv> wait, i can just redefine it
pr06lefs has quit [Ping timeout: 260 seconds]
pr06lefs has joined #nixos
<matthewcroughan_> cole-h: You around? :D
<matthewcroughan_> I gots questions.
<matthewcroughan_> So, you don't install i3 with home-manager. How do you install it?
<matthewcroughan_> Is i3 a good thing to install with home-manager? Should I? If not, why not. I can imagine why not, but you might have a different answer.
Chiliparrot has quit [Ping timeout: 268 seconds]
<supersandro2000> siraben: I could probably have used the repo and iterate over all modules to reduce the time
<supersandro2000> but the dependencies still would have to be done and the frameworks fixed
<bqv> matthewcroughan_: you can also use the nixos modules for it
<matthewcroughan_> bqv: What do you mean?
<matthewcroughan_> What is the difference between nixos modules and home-manager modules.
<matthewcroughan_> Why would one not simply use one or the other, why a combination?
Chiliparrot has joined #nixos
<supersandro2000> nixos modules are global
<bqv> i honestly don't know though, in the space of time i've been using nixos, i've used exwm (which nixos doesn't really even support properly) and velox (which is a wayland compositor so isn't supported by anything)
<supersandro2000> home-manager are per user
<bqv> matthewcroughan_: if you have one, you do not need the other
<matthewcroughan_> Right, so what is it that one should do with home-manager and not with nixos modules, and vice versa?
<matthewcroughan_> I see indeed that cole-h has his wayland apps configured here in home-manager for example, which includes sway.
<bqv> e.g. you could have config.programs.emacs.enable = true, or config.home-manager.users.yourname.programs.enable = true. the end result would be, when logged in as yourname, you would have emacs, but you'd have it as root as well only if you did the first
<bqv> in the context of window managers, it's more of a clusterfuck
<supersandro2000> bqv: if you have a multi user system than you could use both
<bqv> that's mainly because the nixpkgs code for window managers is generally just a clusterfuck
<matthewcroughan_> Well actually, my aim is to have matthew and matthew-work
<matthewcroughan_> I want a separate user profile for work, basically
<bqv> supersandro2000: sure you could, but it seems kinda pointless
<samueldr> that's a strong assertion bqv
<bqv> it would make more sense to either have multiple home-manager profiles or use the nixos one
<bqv> samueldr: if you want to disagree, go ahead, i'm way too tired to argue so i'll just concede
<matthewcroughan_> can I make a template and have my users just append to that template?
<supersandro2000> home-manager works on WSL
<bqv> you've probably seen examples of that, yeah
<matthewcroughan_> bqv: I need confirmation that this is an example of that
<matthewcroughan_> ../../mixins
<pushqrdx> so i built a derivation for my driver and it outputted that it's now stored in nix-store
<pushqrdx> but i can't rebuild my config using it
<bqv> ...well fsck, i've just bumped into the issue with using my pc remotely. if i click on links, they open on the main machine :D one sec
ris has quit [Ping timeout: 240 seconds]
<matthewcroughan_> lmao what
<matthewcroughan_> x11 forwarding are you?
<matthewcroughan_> who uses x11 in 2020?
<bqv> nope, using emacsclient remotely
<pushqrdx> i am on elementary which is X11 in 2020
<matthewcroughan_> That's even more disgusting than my accusation.
<bqv> to some :p
<matthewcroughan_> I for one think you should be banned/
<matthewcroughan_> :P
<pushqrdx> so i suppose you're on wayland on nixos?
<pushqrdx> if so mind sharing configz
<matthewcroughan_> My goal is to not use x11 on my new laptop.
emmanuel_erc has quit [Ping timeout: 264 seconds]
<matthewcroughan_> I've not used nixos full time on any system yet, and I don't want to screw it up, so have invested a lot of time learning by reading prior to diving completely in.
<bqv> matthewcroughan_: hmm, i think cm's config might be a bad example
vonfry has quit [Remote host closed the connection]
<bqv> pushqrdx: you almost certainly don't want my config for that
<pushqrdx> i want to fix my damn audio :D
<matthewcroughan_> This is my current configuration
<bqv> i use velox/swc, which aren't even in nixpkgs, and aren't "technically" entirely functional
<pushqrdx> it's so hard for some reason to install 2 firmware files
h0m1 has quit [Ping timeout: 240 seconds]
<bqv> matthewcroughan_: i'm gonna toot my own horn and just say look at mine for this one, cause i don't think this part is too much of a mess. check out https://rc.fron.io/users/
emmanuel_erc has joined #nixos
<bqv> pushqrdx: likewise, if you're really curious, you'll also find velox configs somewhere in that directory, and the packages somewhere in ../pkgs
<matthewcroughan_> bqv: "delete this repo" hmmm
<bqv> but i wouldn't really reccomend it, i'm just a masochist
<bqv> matthewcroughan_: do it, i dare you
h0m1 has joined #nixos
<matthewcroughan_> meh, I tried, and failed.
<nicolas[m]> Gladly!
<bqv> security by inobscurity
<bqv> i've forgotten what i came here for
<bqv> probably to do with my coming up to 40 hours now
<matthewcroughan_> bqv: I don't like it for one reason..
<matthewcroughan_> I have to define the structure.
<matthewcroughan_> What decides what a service is? I know it's arbitrary, but isn't this already done in nixpkgs by the package maintainers?
<bqv> you do whatever structure you want, i was just giving that as an example of how you can have plug-and-play users
<energizer> i'm having trouble getting my other monitor to turn on. it seems to randomly decide to appear under `xrandr` or not
<energizer> is there a trick to this?
<energizer> is there a trick to this?
<energizer> oops
<matthewcroughan_> bqv: So, in your case, I do not see a flake. Where is the flake?
<bqv> rc.fron.io
<matthewcroughan_> I see no flake.nix.
<bqv> rc.fron.io/flake.nix
<matthewcroughan_> If you have named it something different, what is it?
<matthewcroughan_> Oh, so what was the thing you linked me?
<bqv> the users subdirectory
<matthewcroughan_> so the top level nix files in that directory are the users?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102308 → libmpc: 1.2.0 -> 1.2.1 → https://git.io/JTQYE
<bqv> yes
<matthewcroughan_> e.g leaf.nix, root.nix
<matthewcroughan_> Ah that's awesome.
<pushqrdx> can i uninstall alsa-firmware
<bqv> leaf is my user for embeddeds (rpi), root is root, bao is me on my desktop and server, and aion is me on this tiny chromebook i'm typing on
<matthewcroughan_> So when you want to add a new user, do you literally just make a new nix file and copy paste from one of the other users and you're done?
<pushqrdx> or at least install my own driver
<bqv> the subdirs are stuff i mix and match for every user
<bqv> yes
<bqv> anyway i gotta brb
ilmu has quit [Ping timeout: 240 seconds]
jmeredith has quit [Quit: Connection closed for inactivity]
Acou_Bass has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #102309 → lxc: 4.0.4 -> 4.0.5 → https://git.io/JTQOZ
pushqrdx has quit [Remote host closed the connection]
bennofs1 has quit [Ping timeout: 272 seconds]
<matthewcroughan_> What happens to nix channels if you have a flake enabled system?
amir has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
amir has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102310 → gitAndTools.git-gone: 0.3.6 -> 0.3.7 → https://git.io/JTQ3a
<bqv> You can still use them
<bqv> But don't
<bqv> The only trace I have on my system is a <nixpkgs> binding to my flake input, for stuff not yet upgraded
tenniscp25 has joined #nixos
ilmu has joined #nixos
whatisRT has quit [Quit: ZNC 1.7.5 - https://znc.in]
jonringer has joined #nixos
<matthewcroughan_> bqv: Well, how do you disable channels on a system?
<bqv> Remove them and not add them back :p
<matthewcroughan_> bqv: Hmm, won't a default nixos install add those for you?
<bqv> Nixos-rebuild wieh a flake and nixUnstable will use flakes, not channels
<bqv> Not that it matters
<Dotz0cat> can someone tell me why I am getting the error cannot autocall function that has an argument without a default value ('stdenv')? https://gist.github.com/Dotz0cat/15a6e5e7ddb596605b6a8e0141c82c63
<V> matthewcroughan_: I deleted all channel-related code from my nixpkgs
<V> my system literally cannot use channels
<matthewcroughan_> bqv: Would you say the following statement about Nix is true?:
<matthewcroughan_> "All there is to Nix is .nix files. If you learn how to make those, then directory structure of nix projects is arbitrary."
<bqv> V: run `nix-build channel:nixos-unstable -A hello`
<bqv> matthewcroughan_: definitely!
<matthewcroughan_> Oh thank God.
<nicolas[m]> Dotz0cat: how are you invoking this file?
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/fd0b3839b23 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<V> bqv: I've partially ripped it out of nix itself as well, but that's not currently in use
<V> so I've definitely thought of that :)
<V> there are more useful things I can spend my time on
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102311 → gnunet: 0.13.2 -> 0.13.3 → https://git.io/JTQGJ
<bqv> Ah, lol
Acou_Bass has quit [Ping timeout: 264 seconds]
<Dotz0cat> nix-build ./rajio_gtk.nix
<matthewcroughan_> V: So, you've got a custom build of the nix cli? You're completely forked?
<V> at the point where it turned into me also ripping out nix-env I realised I was maybe spending a bit much time on it and stopped
<matthewcroughan_> That's forked up.
<V> matthewcroughan_: I'm not currently using said fork, but yes
<samueldr> ,callpackage Dotz0cat
<{^_^}> Dotz0cat: If you're updating a file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A` in the nixpkgs root with the corresponding package attribute to build it. If it's not in nixpkgs, try `nix-build -E 'with import <nixpkgs> {}; callPackage ./file.nix { }'. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix.
<V> callpackage is evil
<samueldr> V: too bad the reality is it's in use
<V> it is :(
<V> I literally got bitten by a scoping bug yesterday
<V> tried to add a configuration argument to a package called 'colors'
<V> and it turns out there's a package called that
<V> so much time wasted debugging
<samueldr> > pkgs.src.meta.homepage # V
<V> oh god
* V cries
<bqv> V: what do you think the alternatives arem
<V> a better language? :D
<samueldr> it could do with a decoupling of the *arguments* inputs and of *dependency injection* inputs and help
<bqv> Lmao
<V> more seriously, move it to not top-level
<V> so have a packages option, a config option, etc
<V> would probably be more like how nixos modules are
<samueldr> (that's a way to allow decoupling)
<samueldr> I think some people suggested in previous lighthearted discussions having two args
<matthewcroughan_> bqv: So you handle secrets with git-crypt then?
<V> yeah, samueldr put it more nicely
<samueldr> but that's just a recipe for not remembering the order
<V> I feel that the arguments should be named, not ordered, yeah
<bqv> Come to think of it, I think the thing stopping dhall from being usable for nix the callpackage semantics
<bqv> Imagine a dhall nixpkgs...
<samueldr> "is it { stdenv }: {}: or {}: { stdenv }; stdenv.mkDerivation {} already?" kind of issues with ordering
<colemickens> I like sops-nix for secrets, but I think theres a lot of improvements
<colemickens> bqv: Nickel
<bqv> colemickens: come again?
<bqv> matthewcroughan_: yes
<colemickens> s/lot of improvements/room for improvements/g
<bqv> matthewcroughan_: also in future, the gnupg pr
<colemickens> bqv: if I squint, I can imagine the future of a Nickel based nix/nixos
<V> while we're on the subject of this, ... is also evil
<bqv> Why?
<V> it doesn't fail noisily
<bqv> At a skim it sounds interesting
<bqv> Oh
<V> again, much time spent wasted on debugging
<bqv> Man, I still like infinisil's idea of just sellotaping ghc to nix
<bqv> Who needs nix when you have the entirety of Hask
<bqv> NixMonad™
<bqv> Why do I always go from having 0 projects on the go, to 4 at once
<matthewcroughan_> colemickens: have you got any examples/templates of a nix project using sops?
<colemickens> matthewcroughan_: my repo uses it
<colemickens> matthewcroughan_: look at <root>/mixins/cachix.nix and <root>/secrets
<colemickens> for an example
<matthewcroughan_> what is mixins supposed to mean btw?
<matthewcroughan_> is this your stdlib essentially?
Acou_Bass has joined #nixos
<bqv> It means colemickens is a web dev :p
<colemickens> nah
<colemickens> matthewcroughan_: it's just random tidbits that might get included anywhere. A lot of times, my hosts/<foo> include a profile/<gui/interactive/core>.nix which then include mixins.
<nicolas[m]> `builtins` does not have a `filterAttrs` :(
<colemickens> matthewcroughan_: but then I only enable docker on certain hosts, so that one gets pulled directly into a hosts/somemachine/configuration.nix
<colemickens> matthewcroughan_: so it's just... "scenario-specific" nix files that might configure a nixos module, a home-manager module, or *both*.
<bqv> nicolas[m]: limiting yourself to builtins is a recipe for pain
<colemickens> matthewcroughan_: so you'll note, my config repo is NOT setup to be multi-user or used with multiple h-m personas, as again, the nixos+hm configs are mixed together.
<bqv> From experience
<matthewcroughan_> colemickens: so you actually upload your encrypted secrets publicly to github for everyone to attempt to crack?
<tenniscp25> is it an antipattern to provide public/private keys in configuration.nix?
<matthewcroughan_> looks like colemickens does
<matthewcroughan_> so yes, it's an antipattern
<bqv> Encrypt them and you're fine
<matthewcroughan_> :)
<colemickens> matthewcroughan_: sure, if you can SSH into my machines and grab my key, or steal my yubikey+pin, have at it.
<nicolas[m]> matthewcroughan_: if the secrets are rotated frequently and it uses strong encryption than I don't see any problem
<colemickens> matthewcroughan_: also, 600+ passwords are encrypted+uploaded to a private gitlab repo if you can find them
<bqv> People even put unencrypted password hashes on github, which I think is mental, but yolo
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<matthewcroughan_> colemickens: I do not understand..
<tenniscp25> matthewcroughan_: thank you
<matthewcroughan_> tenniscp25: I was joking, it's probably fine.
<nicolas[m]> bqv: like the sha512 for the user password?
mauli has quit [Ping timeout: 272 seconds]
CMCDragonkai1 has joined #nixos
<matthewcroughan_> colemickens: Are these messages not the entire secret?
<colemickens> bqv: eh, my hashedPassword is in cleartext. Not easy to externalize that via sops, etc. But it's also virtually unused.
<{^_^}> [nixpkgs] @marsam merged pull request #102303 → gitAndTools.git-trim: 0.4.0 -> 0.4.2 → https://git.io/JTQkJ
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQnk
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102312 → gitlab-pages: 1.21.0 -> 1.28.0 → https://git.io/JTQnI
<bqv> Yeah, for me I just put them in a nix file and shove them in /secrets
<bqv> strings are just nix, after all, so can be nix files
<colemickens> matthewcroughan_: it's actually the same secret re-encrypted like 6 times
mzcore_ has quit [Ping timeout: 240 seconds]
<colemickens> matthewcroughan_: but the keys are located offline, so I am not worried about someone cracking them.
<matthewcroughan_> colemickens: can you tell me exactly your process for building this system then?
<colemickens> matthewcroughan_: sure, this is what I meant when I said "there's room for improvement". Go read up on mozilla/sops, to understand what it does. And then mic92/sops-nix to understand how we automate using sops via a nixos module.
<colemickens> And then it's all just there in my config, the <root>/secrets dir has a ./util.sh script that scripts the `sops` tool (this should be unnecessary and `sops` should juts be better, but apparently they're remaining backward compatible with a busted CLI...so...)
<matthewcroughan_> Wouldn't you just be better off mentally if you kept your secrets on a thumb drive encrypted, and decrypting them manually with a single script that requires your password, and providing this to the install medium? lol
<matthewcroughan_> All these dependencies on schemes.
<colemickens> matthewcroughan_: so what happens when I add a service and password on my machine and deploy my config to my 5 remote hosts?
<bqv> Nix secrets are not an easy problem :/
<matthewcroughan_> Your use case is far different from mine colemickens
<matthewcroughan_> I primarily want it for a laptop. Not much else.
<matthewcroughan_> Maybe two laptops. Maybe I'll become crazy like you though.
<colemickens> matthewcroughan_: you're of course welcome to sync secrets however
<colemickens> matthewcroughan_: at the end, you just wind up shoving some path into a config file :)
jess is now known as j
<matthewcroughan_> I'm happy with it not being automated if it makes my mental reliance on schemes like sops less.
<colemickens> idk, it's nice that I can rotate my spotify password because it was compromised and spotifyd keeps working everywhere :)
<colemickens> that's reasonable
Baughn has joined #nixos
<matthewcroughan_> It certainly sounds like it is, but I have to learn so much more.
<matthewcroughan_> I barely understand how to make my nix repo.
<colemickens> it's fair, I waited a long time ... years... to try to tackle this problem.
<colemickens> anyway, it's Overwatch time, cheers!
<matthewcroughan_> wait!
<matthewcroughan_> Wtf is that nixup.oil in your repo
<{^_^}> haskell-nix/hnix#187 (by jwiegley, 2 years ago, open): Compile Nix files into Haskell, and from there to native code
<bqv> my god
<bqv> what
magnetophon has quit [Remote host closed the connection]
<matthewcroughan_> bqv: explain
<bqv> i'm not entirely sure i can, and don't particularly want to
<simpson> Sometimes chimeras are horrifying.
<bqv> i don't doubt
<siraben> Does anyone have an example where they use GitHub actions + Cachix to produce artifacts?
<matthewcroughan_> bqv: How out of date is the nixos manual?
<bqv> either way, hnix is far less far along than i checked, so that's basically a pipe dream
<bqv> matthewcroughan_: stable should probably be pointing to 20.09 now, so, about a month
<matthewcroughan_> Right, so I'll be in good shape if I follow this and replace references to channels with flakes?
<bqv> it obviously doesn't use flakes, don't expect it to
<bqv> sure
<matthewcroughan_> bqv: what's the new equivalent of nix-channel --update with flakes?
<cole-h> `nix flake update --update-input nixpkgs`
ddellacosta has quit [Ping timeout: 272 seconds]
<bqv> nix flake update [{--update-input <input> | --override-input <input> <ref> }...]
chambln has joined #nixos
<matthewcroughan_> path '/' is not a flake (because it doesn't contain a 'flake.nix' file)
<matthewcroughan_> hehe
<bqv> there's `nix flake update --recreate-lock-file` too, but it's a sure way to get ratelimited from github
<matthewcroughan_> what is it querying to get the path `/`?
<bqv> type `pwd`
<matthewcroughan_> well yeah
<matthewcroughan_> why would it not be using NIX_PATH ?
<bqv> NIX_PATH is a channels concept
<clever> NIX_PATH isnt directly channels
<clever> channeels is more in the ~/.nix-defexpr/ area
<clever> but the default NIX_PATH does say to search the current channels
<bqv> fair point, but bearing in mind we're trying to preserve the context of restricted eval, NIX_PATH is basically useless for flakes
<clever> yeah
<bqv> the only actual reason i still have <nixpkgs> is for random things that aren't flake-enabled
<matthewcroughan_> nixos-rebuild switch --upgrade still works for me with flakes
<matthewcroughan_> what is this doing?
<bqv> black magic, basically
<bqv> idk, check the source
<clever> matthewcroughan_: --upgrade just tells it to run `nix-channel --update` first
<matthewcroughan_> which doese nothing in the context of flakes
<matthewcroughan_> so --upgrade is doing nothing
<matthewcroughan_> Is that right?
<clever> if you have no channels setup, thats right
<clever> if you still have some channels, they will update, but have no effect on the actual nixos build
<matthewcroughan_> Maybe we should make a bunch of warning messages for users to inform them of t his
magnetophon has joined #nixos
<bqv> this is nixos-rebuild
<matthewcroughan_> nixos-rebuild switch --upgrade doesn't tell you that you have no channels set up.
<bqv> in it's glorious entirety
<matthewcroughan_> Not bad!
<matthewcroughan_> It's all shell!
<bqv> interesting, it does have an --update-input now
<bqv> either way, i would avoid, if you feel you can
<matthewcroughan_> Lol
<matthewcroughan_> if you supply no argument to --update-input it just exits with newline
<bqv> you'll learn things faster if you learn how to do it directly *wiggles eyebrows*
<matthewcroughan_> So, in a basic, almost default flakes setup, you would ideally just run `nixos-rebuild switch --update-input` right?
<matthewcroughan_> This seems now to be exactly what it has done.
<matthewcroughan_> This has "Updated my system" right?
<matthewcroughan_> My inputs has `nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";`, I therefore ran `sudo nixos-rebuild switch --update-input nixpkgs`, it returned `* Updated 'nixpkgs': 'github:nixos/nixpkgs/007126eef72271480cb7670e19e501a1ad2c1ff2' -> 'github:nixos/nixpkgs/1dc37370c489b610f8b91d7fdd40633163ffbafd'`
<bqv> in fact, you can do it in one. a normal flakes build, just do "nix shell '.#nixosConfigurations.hostname.config.system.build.toplevel' -c switch-to-configuration switch"
<matthewcroughan_> nix shell?
<bqv> but more explicitly, `nix build '.#nixosConfig.blah.toplevel'`, then ./result/bin/switch-to-configuration switch
hjarvard has joined #nixos
<bqv> you don't need 500 lines of bash for this my friend
<matthewcroughan_> bqv: does this update all my inputs?
<matthewcroughan_> I don't think it did
Acou_Bass has quit [Ping timeout: 240 seconds]
<bqv> do you seriously want to update all your inputs every build
<matthewcroughan_> ya
<bqv> trust me, that will get fscking annoying and tiring
<matthewcroughan_> I just wanna update everything, like on Arch
<matthewcroughan_> I wanna be on latest all the time erryday
<bqv> how many packages do you have installed, and how many inputs?
<matthewcroughan_> hold on, why is this even slightly an issue?
<bqv> at a guess
<matthewcroughan_> it's called a comma separated list :D
<matthewcroughan_> why would this be annoying?
<matthewcroughan_> Can't I just do this: `sudo nixos-rebuild switch --update-input nixpkgs nixpkgs-wayland home-manager` ?
<matthewcroughan_> this should update those 3 inputs, right?
<matthewcroughan_> oh man, no, there is no array
<bqv> because take my setup for example. if i updated all my inputs even twice in the same day, that would basically queue up two sets of 4000 nix derivations to build, and around 20k to be fetched. first builds would almost always fail, so i'd have to iterate two or three times, and in total updating to latest would take me about half a day.
mauli has joined #nixos
<bqv> that's one of the reasons i only do it every other week
<bqv> it's a collossal waste of time
<bqv> you get minimal benefit for wasting your own time
<matthewcroughan_> So how do I replicate my desires?
<matthewcroughan_> Arch, rolling release, latest everything
<bqv> you do have rolling release everything :|
<bqv> you always have nixpkgs
<matthewcroughan_> So when do I want to update my inputs?
<bqv> you just don't have to rebuild your whole goddamn system every 3 hours
<bqv> if you want something new, build it on it's own and use it, otherwise, update your system every week or something like a sensible person
<matthewcroughan_> I'm happy with every week, that's what I meant.
<bqv> you will get 0 (zero) benefit from updating all your inputs twice in the space of one week
CyberManifest has quit [Remote host closed the connection]
<matthewcroughan_> I'm only asking how you update more than one input
<matthewcroughan_> which I still don't know how to do :P
<bqv> you can specify --update-input <input> more than once, or use --recreate-lock-file
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
<bqv> if you have lots of inputs, --recreate-lock-file will trigger github's ratelimit unless you login, and even then sometimes
<matthewcroughan_> So you can't update more than one input at once.
<matthewcroughan_> This is a flakes flaw today?
<bqv> "you can specify --update-input <input> more than once"
<matthewcroughan_> That's not optimizing anything though is it?
spacefrogg has joined #nixos
<matthewcroughan_> That's like you said, inefficient?
<bqv> in what sense?
<bqv> what's the alternative, i mean?
<matthewcroughan_> What is happening when I update?
<matthewcroughan_> I'm not compiling anything, you said I'm rebuilding my system?
CyberManifest has joined #nixos
<matthewcroughan_> I'm not submitting anything to github atomically.
<matthewcroughan_> my flake file may be changed 3 times, but what setup do you have where this is automatically submitted to github?
<matthewcroughan_> what even is --recreate-lock-file for?
<bqv> when you run `nix flake update`, nix will check your flake.lock and make sure it evals and fits your flake.nix. when you add --update-input <input1> --update-input <input2>, it will also in that process fetch new versions of your inputs and replace them in your flake.lock. if one of those is nixpkgs for example, that could trigger hundreds of rebuilds. if you add --recreate-lock-file, you might as
<bqv> well think of it as nix deletes the flake.lock and recreates it from scratch, fetching you the newest version of every input
<bqv> --recreate is a bit wasteful because it will refetch even ones that haven't been updated
<bqv> hence the api issues
Acou_Bass has joined #nixos
<matthewcroughan_> what on earth is the point of recreating the lock file?
<bqv> think of it as just `--update-input *`
<matthewcroughan_> oooh okay
<matthewcroughan_> but there's no way to do that without recreating the lock file?
<matthewcroughan_> so if I want to rebuild my entire system with no "cache" for lack of a better term, what do I do?
<bqv> in fact, feck it, just use that. you'll learn faster the hard way
<bqv> in that scenario you'd always specify --recreate-lock-file when you nix build '.#nixosConfigurations.hostname.config.system.build.toplevel'
<bqv> i'm somewhat earnestly interested to see how that goes
<matthewcroughan_> when I run `nix flake update nixpkgs` are my binaries updated?
<bqv> no.
<matthewcroughan_> I'm a bit confused how I upgrade my system
<nicolas[m]> `--update-input nixpkgs`
<bqv> i'm on too little sleep for this
<bqv> is there another flake user here
<nicolas[m]> and you have to pass the flag for each input you want to update
<matthewcroughan_> nicolas[m]: I just asked that :P
<matthewcroughan_> how on earth is `nix flake update` not the same as `--update-input`
<matthewcroughan_> nix flake update returns nothing
<nicolas[m]> Oh, sorry I didn't read the conversation
<matthewcroughan_> `nix flake update nixpkgs` returns the same out put as --update-input
<bqv> nicolas[m]: can you read through what i explained and translate it into something he can understand, i need to go be comatose somewhere
<matthewcroughan_> I feel sleepy too, I've been up all night and day
<nicolas[m]> I'll try
<matthewcroughan_> yet here I am, trying to figure out this crap, and ruining your life :P
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102314 → tmuxp: 1.5.6 -> 1.5.8 → https://git.io/JTQW6
<matthewcroughan_> nicolas[m]: ssh ro-UjPCK3eMFZcd3PDbGWsAKMtwQ@lon1.tmate.io
<matthewcroughan_> here's ssh to my machine lol
<nicolas[m]> So what's the issue?
<matthewcroughan_> I want to translate my old mentality to the new flakes mentality
<matthewcroughan_> you can see the commands I'm trying to run from that shell
<nicolas[m]> Yup
<nicolas[m]> I had no idea `nix flake update <thing>` was the same as `nix flake update --update-input <thing>`
<matthewcroughan_> well, are they really?
<matthewcroughan_> see? different output
<matthewcroughan_> one requires sudo, or something?
<matthewcroughan_> one returns an error from nix
<matthewcroughan_> the other returns an error from nix-env
<nicolas[m]> ¯\_(ツ)_/¯ I don't use `--update-input` with `nixos-rebuild`
<matthewcroughan_> so, how do I "upgrade" my system like I used to
<matthewcroughan_> can you tell me those last two commands I ran did the same thing?
<matthewcroughan_> one has clear output, the other does not.
<nicolas[m]> if you want to upgrade every input, as mentioned previously you would use `--recreate-lock-file `
<matthewcroughan_> nix flake update, does what? I didn't see anything compile
amir has quit [Quit: No Ping reply in 180 seconds.]
<nicolas[m]> `nix flake list-inputs` will show the hash of all your inputs
<matthewcroughan_> Bug?
amir has joined #nixos
<matthewcroughan_> Looks like a bug
<nicolas[m]> Hard to see, I resized my terminal and it messed with the tmate byobu/tmux rendering
<{^_^}> [nixpkgs] @jonringer merged pull request #102209 → treewide: mark failing kernel modules broken → https://git.io/JT9M9
<matthewcroughan_> oh, reconnect as many times as you want :P
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to release-20.09: https://git.io/JTQli
amir has quit [Excess Flood]
sangoma has joined #nixos
<matthewcroughan_> so yeah, can't find my input by its name
sss2 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #102310 → gitAndTools.git-gone: 0.3.6 -> 0.3.7 → https://git.io/JTQ3a
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQlM
amir has joined #nixos
<matthewcroughan_> nixpkgs is fine, anything else in my inputs is not
<nicolas[m]> `nix flake update --recreate-lock-file`
<matthewcroughan_> that did not update all of my inputs
<matthewcroughan_> it only updated nixpkgs
<nicolas[m]> How can you tell it didn't update all your inputs?
<matthewcroughan_> * Updated 'home-manager/nixpkgs': 'github:NixOS/nixpkgs/76fdf69296a8b51941d435bbf6f2b9a7617e6020' -> 'github:NixOS/nixpkgs/26d3fbf21563c52f124551eb60dec5ea17ade8fa'
<matthewcroughan_> do you see home-manager or nixpkgs-wayland anywhere there?
<nicolas[m]> My guess would be that other inputs didn't need to be updated
<matthewcroughan_> I can't manually update any of those inputs
<matthewcroughan_> as you can see, it won't update those inputs, other than nixpkgs, as I initially was suspicious of
<nicolas[m]> `nix flake update --update-input home-manager`
<matthewcroughan_> Looks like that isn't building or downloading anything
<matthewcroughan_> How do I upgrade my system?
<nicolas[m]> After updating your inputs you can then rebuild
<matthewcroughan_> Looks like that didn't build/compile anything
<matthewcroughan_> I haven't updated this system in like a week now, 6 days, I find that hard to believe :P
<matthewcroughan_> That there wouldn't be any updates, I mean.
<nicolas[m]> I've got ~12 inputs in my flake.nix, and doing a `--recreate-lock-file` only shows 8 inputs "Updated"
<matthewcroughan_> what terminal emulator are you using btw?
<nicolas[m]> If you have a flake.lock in your repo, when doing a `--recreate-lock-file`, only inputs where the revision/hash changed are displayed
<nicolas[m]> alacritty
<matthewcroughan_> really? I'm using kitty and I don't get any resizing bugs
<nicolas[m]> It seems to crash pretty with the remote session
<matthewcroughan_> I wanted to switch to alacritty too :P
<matthewcroughan_> how do you show what's currently installed in your nix-env?
<nicolas[m]> `nix-env -qAp`
<matthewcroughan_> lol, do you know a better way to do what I just did?
<matthewcroughan_> man nix-env, then looking to see what the -q option does
<matthewcroughan_> Hmm? There's only 3 flags in the flags section in the man page
<nicolas[m]> No, I always search strings in LESS with `/` or `?`
<matthewcroughan_> I am doing that, but there are a lot of -q's
<matthewcroughan_> That's so terrible..
<nicolas[m]> `--query`
<matthewcroughan_> Sure, but there's no -q
<matthewcroughan_> Ah, nvm, right t here on top
<matthewcroughan_> Hmm, what about p
<matthewcroughan_> ah, profile..
<matthewcroughan_> but we are not giving it a path
Wulfsta has joined #nixos
<matthewcroughan_> so by default it operates on the current profile?
<nicolas[m]> Yup
<matthewcroughan_> so -qAp == Query all attributes in current profile?
<matthewcroughan_> Hmm, so how can I completely remove the current profile?
<{^_^}> [nixpkgs] @andreoss opened pull request #102315 → adoptjdk: update to latest & add 14 & 15 → https://git.io/JTQ4u
<matthewcroughan_> just nuke everything in nix-env
<matthewcroughan_> I want this nix-env lynched
<Wulfsta> acowley: You might be interested in fixing this one as well, it's a TF build issue.
<nicolas[m]> Although I use flake, I also use `nix-env` except I pass a file with all the packages in it
<matthewcroughan_> nix-env --install -r
<matthewcroughan_> lmao
<Wulfsta> Similar to some of the previous ones we were seeing
<matthewcroughan_> that's such a ridiculous command
<matthewcroughan_> we're installing the deinstallation of all attrs?
<matthewcroughan_> what the hell
<matthewcroughan_> LOL OK THAT did NOT do what I expected it to
<matthewcroughan_> What did that do? :D
<nicolas[m]> `nix-env -e` to remove a package
<matthewcroughan_> nicolas[m]: I don't want to remove a package.
<matthewcroughan_> I want to remove any imperatively installed software from my nix-env.
<nicolas[m]> Yes
<matthewcroughan_> I want to remove everything. So I ran `nix-env --install -r `
<matthewcroughan_> --remove-all
<nicolas[m]> `nix-env -e` only removes packages installed through `nix-env` from your profile
<matthewcroughan_> this is very stupid flag naming :p
<nicolas[m]> ¯\_(ツ)_/¯
<matthewcroughan_> you would assume that the scope of nix-env is only nix-env modified stuff
<matthewcroughan_> nix-env -e returns nothing
sangoma has quit [Ping timeout: 240 seconds]
<bqv> would anyone be interested in this: https://termbin.com/j2v4 ?
<nicolas[m]> `nix-env -e my-package-to-remove`
<matthewcroughan_> nicolas[m]: I want to get rid of **all** packages in the env, how do I do that?
<matthewcroughan_> assume I have 255 packages installed, how do I remove them?
<nicolas[m]> I don't know any flag that does this and how profiles work so I would go for the xargs route
<matthewcroughan_> -p doesn't seem to be necessary
<matthewcroughan_> nix-env -qAm returns the same as nix-env -qAz or -qAo
<matthewcroughan_> in fact, you can place seemingly any char after A and it'll work
<matthewcroughan_> weird
<nicolas[m]> Not on Nix 2.4
<siraben> My GitHub actions failed suddenly? I'm not sure what caused it https://github.com/siraben/nix-remarkable/runs/1337540656
<siraben> (node:2867) UnhandledPromiseRejectionWarning: Error: The process '/nix/var/nix/profiles/per-user/runner/profile/bin/cachix' failed with exit code 1
<matthewcroughan_> nicolas[m]: new bug?
<nicolas[m]> siraben: Cachix could be down or very slow
<matthewcroughan_> nix (Nix) 3.0pre20201020_e0ca98c
<matthewcroughan_> nicolas[m]: nix-env -e '.*
<matthewcroughan_> yay
<cole-h> bqv: What would that do?
<siraben> nicolas: should I wait a bit?
<siraben> I wonder if it's just me or is anyone else experiencing this as well
<nicolas[m]> I can't login into Cachix with GitHub right now
<nicolas[m]> So you might not be the only one
<bqv> cole-h: currently, you can't access the activation scripts once they've been set (try eval --json config.system.activationScripts)
<bqv> this just makes them accessible, in a non-breaking way
<siraben> Oh, rerunning it works now
<siraben> yay
<cole-h> And why would one want to do this?
<matthewcroughan_> nicolas[m]: did me resizing my window screw up yours? :D
<matthewcroughan_> curious
<bqv> because i don't want to reimplement nixpkgs, i can pinch most of it for what i'm up to
<bqv> (i can anyway, this would just be much MUCH cleaner)
<nicolas[m]> matthewcroughan_: yeah my alacritty crashed again
<matthewcroughan_> omg lol
<matthewcroughan_> what version?
<cole-h> How does this help you not "reimplement nixpkgs" though? (I'm looking for something concrete)
<nicolas[m]> matthewcroughan_: 0.5.0
<bqv> cole-h: i'm creating a compatibility layer. it wouldn't be much of a compatibility layer if every package that used activationScripts had to be explicitly implemented in the compatibility layer now would it?
<matthewcroughan_> trying on mine
<nicolas[m]> I don't have any entry in `coredumpctl list` :/
<matthewcroughan_> I'm on 0.5.0 too
<matthewcroughan_> omg it's totally busted
<matthewcroughan_> yeah I see what you're saying, that's terrible
<bqv> as i say, the alternative is to rip out the activation part of nixpkgs and reimplement it in a compatible way but more transparently, but that's a little bit awful, and i don't see why this would hurt
<bqv> i'm confused why they were implemented in this black-box way in the first place
<cole-h> Sounds sane to me. I'd say go for the PR :)
<matthewcroughan_> nicolas[m]: I'm gonna be resizing my terminal a bit every now and then since I'm on a tiling window manager, you might want to use a terminal that doesn't suck temporarily
<{^_^}> [nixpkgs] @marsam opened pull request #102316 → grpc: 1.32.0 -> 1.33.2 → https://git.io/JTQB5
<matthewcroughan_> :P
<bqv> cole-h: but that's the frustrating part
<bqv> i was hoping someone else would agree with the usecase enough to take the patch
<matthewcroughan_> alright nicolas[m], do you use home-manager?
<cole-h> lol
sangoma has joined #nixos
<bqv> damn, marsam isn't here
<nicolas[m]> matthewcroughan_: yup
<cole-h> I don't know if marsam uses IRC
<matthewcroughan_> Fantastic! So, I just removed my imperative config by using nix-env -e '.*'
<matthewcroughan_> let's say I want to install tmate, in home-manager, how can I do that now?
<bqv> hey matthewcroughan_ wanna have a commit in nixpkgs
<nicolas[m]> `home.packages`
aasg has quit [Quit: killed]
<matthewcroughan_> bqv: sure :P
<matthewcroughan_> nicolas[m]: how can I inspect that prior to bothering?
<nicolas[m]> There's also a home-manager channel
<matthewcroughan_> repl?
<nicolas[m]> Yup
<matthewcroughan_> what do :P
<bqv> matthewcroughan_: clone nixpkgs, apply this patch, push it to your fork and PR it up~ https://termbin.com/j2v4
<matthewcroughan_> commit message?
<nicolas[m]> if you have set `home-manager.useGlobalPkgs` then it will use the same nixpkgs as the one in your configuration
<bqv> matthewcroughan_: it's in the patchfile
aasg has joined #nixos
<bqv> feel free to scrub my name
Supersonic112 has joined #nixos
<bqv> maybe if my name's not on it, someone will actually want to merge it
<nicolas[m]> `nix repl '<nixpkgs>'` is my go-to to discover packages
<nicolas[m]> bqv: how come?/
<matthewcroughan_> bqv: got it :P
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic112 is now known as Supersonic
<matthewcroughan_> If anyone asks, I'm not taking credit for it though.
<bqv> nicolas[m]: i'm being half flippant, half paranoid
<bqv> sure
<matthewcroughan_> What about some commentary on what it does?
<matthewcroughan_> i.e what should I put in the PR on GH?
<siraben> I'm basically copying and pasting build then upload artifacts in my GH actions
<bqv> matthewcroughan_: PR title can just be the commit message, comment can be what i said to cole-h
<cole-h> FWIW, I don't think you should take on this patch unless you have concrete ideas of what could be done with it (e.g. how you'd use it)
<matthewcroughan_> bq
<bqv> 'currently, you can't access the activation scripts once they've been set (try eval --json config.system.activationScripts). this just makes them accessible, in a non-breaking way'
<cole-h> If somebody comes along and asks for clarification, you can't provide any because you don't have any use for it
<matthewcroughan_> bqv: not sure which thing you're referring to that you stated to cole
<bqv> quoted
cjpbirkbeck has quit [Quit: Goodbye, take care]
<matthewcroughan_> ok god it
<matthewcroughan_> got it
<matthewcroughan_> I'm still not used to this keyboard haha
<matthewcroughan_> https://zsa.io/moonlander/
<bqv> definitely a religious freudian slip
<matthewcroughan_> I got one of these crazy things, it's ruining my life
<matthewcroughan_> nicolas[m]: any idea what my issue in the repl is? :P
sarcasticdream[m has joined #nixos
<matthewcroughan_> bqv: branch name?
<bqv> i named mine transparent-activation
deltahotel has joined #nixos
<matthewcroughan_> man nixpkgs takes forever to clone on my x230 lol
pr06lefs has quit [Ping timeout: 240 seconds]
<nicolas[m]> matthewcroughan_: All I see is htop
<matthewcroughan_> you still using alacritty?
<bqv> oh yeah, if it's not shallow, i think it's worse than void-packages and comparable to linux at this point
<matthewcroughan_> Resolving deltas: 16% (235538/1461477)
<matthewcroughan_> hnnnnng
<bqv> you could always cancel and just git clone --depth=1
<bqv> that should take seconds, rather than minutes
<matthewcroughan_> that'll od better than your crappy terminal :P
<matthewcroughan_> do*
<nicolas[m]> I was using kitty in the end :))
<matthewcroughan_> heh, I'm on kitty too
<matthewcroughan_> 0.18.3
<nicolas[m]> I was jumping through my SSH host
<nicolas[m]> Might be the cause
<matthewcroughan_> so you see the stuff I'm talking about now though?
<nicolas[m]> yeah, `home.packages` is an `options` defined in `home-manager`
<nicolas[m]> You can't access it in the REPL without evaluating a configuration
<nicolas[m]> If you join the home-manager channel, cole- h has shared a command that does exactly that
<nicolas[m]> #home-manager:rycee.net
<matthewcroughan_> nicolas[m]: that ain't working so well with my irc client
<bqv> that would be because he sent you a matrix channel
<bqv> lol
<matthewcroughan_> ...
<matthewcroughan_> lmao
<matthewcroughan_> right, I thought he hosted his own irc network
<nicolas[m]> Yeah, my bad
<matthewcroughan_> nicolas[m]: I'm in there.
<matthewcroughan_> I think.
<matthewcroughan_> AH crap my homeserver crashed.
<matthewcroughan_> nicolas[m]: I don't really see what you're referring to.
<matthewcroughan_> I don't have any channel history.
konsolechka1 has quit [Quit: Leaving.]
<nicolas[m]> I keep forgetting how lame IRC is compared to Matrix
<matthewcroughan_> No, I mean Matrix.
<matthewcroughan_> I have no channel history in your matrix server.
<matthewcroughan_> Additionally, the Synapse homeserver crashed on join.
<nicolas[m]> Then you joined the wrong one
<cole-h> (-> #nixos-chat, maybe?)
<matthewcroughan_> ...
<cole-h> (or /query)
<matthewcroughan_> nicolas[m]: I joined exactly what you asked me to join.
<matthewcroughan_> I am in #home-manager:rycee.net
<cole-h> (Since this is off-topic for this channel...)
<matthewcroughan_> exactly as you stated, the exact string you gave me.
justanotheruser has quit [Ping timeout: 240 seconds]
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #102317 → geonkick: 2.4.0 -> 2.5.0 → https://git.io/JTQu3
<{^_^}> [nixpkgs] @magnetophon opened pull request #102318 → pidgin: 2.13.0 -> 2.14.1 → https://git.io/JTQu4
<bqv> matthewcroughan_: how's the clone
<matthewcroughan_> sorry got sidetracked with upgrading my matrix server
<matthewcroughan_> it's done, applying now
<bqv> noice
pr06lefs has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
<matthewcroughan_> bqv: so the message is supposed to be "expose activation scripts" ?
<bqv> with the "nixos/activation: "
slack1256 has quit [Remote host closed the connection]
<matthewcroughan_> rendering the forks page kills my firefox lol
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102319 → ansible-lint: 4.3.5 -> 4.3.6 → https://git.io/JTQuM
<Wulfsta> Is there a way to undo a git commit in the patch phase?
deltahotel has quit [Quit: Best 73's]
<bqv> don't think so
<nicolas[m]> Git apply the diff of the commit and the previous one
magnetophon has quit [Ping timeout: 268 seconds]
<nicolas[m]> `git apply <<<$(git diff HEAD..HEAD~1)`
<bqv> if it's in the middle of trying to apply, it won't let you apply again
<nicolas[m]> You can also omit the dots if you are not applying a range
<{^_^}> [nixpkgs] @MatthewCroughan opened pull request #102320 → nixos/activation: expose activation scripts → https://git.io/JTQzf
<{^_^}> #102320 (by MatthewCroughan, 10 seconds ago, open): nixos/activation: expose activation scripts
<matthewcroughan_> I guess this is what you were after? :P
<bqv> bot beat you to it lol
<bqv> yeah ty
endformationage has quit [Quit: WeeChat 2.9]
<bqv> at this point i've half coded my workaround anyway but heyho
tenniscp25 has quit []
magnetophon has joined #nixos
pr06lefs has quit [Ping timeout: 260 seconds]
<matthewcroughan_> nicolas[m]: okay, so what bqv
tsujp69 has joined #nixos
<matthewcroughan_> whoops that was an incomplete message
<matthewcroughan_> nicolas[m]: what message is it in the element channel then? There is no scrollback.
<bqv> what
<matthewcroughan_> You told me to go to the home-manager room on rycee.net, I'm there, I messaged you.
<matthewcroughan_> bqv: I was composing a msg and accidentally hit enter on this weird keyboard
<bqv> nicolas[m]: why are you sending him on this goddamn roundabout btw
xwvvvvwx has quit [Ping timeout: 264 seconds]
<matthewcroughan_> bqv: ssh in and find out :P
<matthewcroughan_> ssh ro-UjPCK3eMFZcd3PDbGWsAKMtwQ@lon1.tmate.io
<bqv> i'm more of a third date kind of guy
<matthewcroughan_> I'm patient, I don't mind roundabouts :D
<matthewcroughan_> bqv: alright you can go here instead https://tmate.io/t/ro-UjPCK3eMFZcd3PDbGWsAKMtwQ
CyberManifest is now known as CynicalManifest
<tsujp69> im running LUKS on LVM, for the root partition in my configuration.nix I point to the crypted UUID correct not the actual device UUID?
<matthewcroughan_> I wanna see whether home manager has anything available for a given package
<cole-h> matthewcroughan_: Would be great if you could work this out with them in DMs or something, to keep this channel relatively on-topic ^^;
<matthewcroughan_> It is on topic.
<matthewcroughan_> It's about my woes with trying to figure out home-manager. Sure, at this point some matrix has stepped in.
<matthewcroughan_> but it is about a nix matrix channel, and some command you've pasted.
<tsujp69> I'm having trouble booting into nixOS with LUKS on LVM, cannot mount my LUKS partition but my configuration appears correct, can anyone offer assistance?
<cole-h> Yeah, and that Matrix part is off-topic ;)
<matthewcroughan_> Ok? And?
<matthewcroughan_> I've mentioned my weird keyboard here too. That's off topic.
<matthewcroughan_> I'm not exactly hogging the chat.
<matthewcroughan_> I mean, I am. But it's mostly about nix :D
xwvvvvwx has joined #nixos
rajivr has joined #nixos
Emantor has quit [Quit: ZNC - http://znc.in]
<matthewcroughan_> bqv: what would system.autoUpgrade.enable and system.autoUpgrade.allowReboot do on a flakes system?
<matthewcroughan_> colemickens: what about system.autoUpgrade.channel
<bqv> nothing useful
<matthewcroughan_> What does this do on a regular channel based system?
<matthewcroughan_> going to assume it just runs nixos-rebuild on an interval?
Emantor has joined #nixos
<bqv> adds a cron job to update your channels, and then nix-env -u on a random basis
<matthewcroughan_> sounds stable
<colemickens> matthewcroughan_ idk I don't use channels and don't really auto-upgrade, though CI preemptively builds so my rebuilds are usually precached
<matthewcroughan_> how do I figure out what an option does?
<bqv> > options.system.autoUpgrade.enable.declarations
<{^_^}> value is a function while a set was expected, at (string):345:1
<bqv> the correct answer was [ "/nix/store/a5l6vdhxradv5kfmixkk07bhx3d6jgxk-nixpkgs-patched/nixos/modules/tasks/auto-upgrade.nix" ]
<bqv> open that file
<matthewcroughan_> of course I don't have thast
<matthewcroughan_> so how do I read about it, online?
<bqv> sure
<matthewcroughan_> ah
<colemickens> nixos-option is an option too.
<matthewcroughan_> Is this really all the system options?
<matthewcroughan_> there aren't that many :D
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102321 → bdf2sfd: 1.1.4 -> 1.1.5 → https://git.io/JTQgB
<energizer> man configuration.nix
<matthewcroughan_> minimalism woo
<tsujp69> Does anyone here run LUKS on LVM?
<matthewcroughan_> energizer: wow it's all in there!
<tsujp69> The official installation guide is only LVM on LUKS
<matthewcroughan_> tsujp69: I cannot, but I can encourage you to use zfs which is a lot simpler.
<matthewcroughan_> And the docs for that are very good.
<matthewcroughan_> I can even help you do that myself, since my system uses it. I know nothing about LVM.
<matthewcroughan_> Yes, I mean LUKS + ZFS, maybe there's a difference? I don't know what the difference is.
<etu> ZFS also has built in encryption
<matthewcroughan_> you wouldn't want to use that for boot
<matthewcroughan_> which I assume tsujp69 wants
<matthewcroughan_> tsujp69: https://termbin.com/q4k2
<matthewcroughan_> Here's my notes on installing ZFS on root with luks
<etu> Well, most of us run EFI and need a separate ESP anyways?
<tsujp69> I was planninng to do LUKS on LVM and then XFS on that LUKS, but I can look at ZFS now
<matthewcroughan_> ZFS is the greatest filesystem ever.
<matthewcroughan_> LVM is highly illogical.
<matthewcroughan_> Datasets are more intuitive and basically accomplish the same thing
<etu> ZFS is a great lifestyle
<tsujp69> XFS is better for parallel I/O no and finding files much faster? How does ZFS compare for that?
<etu> I use it on most of my nixos machines (ZFS)
<matthewcroughan_> ZFS is faster than XFS because of compression.
<matthewcroughan_> I expect it to be, anyway.
<matthewcroughan_> I think you could find benchmarks to back that up.
<etu> The ARC is excellent as well
<matthewcroughan_> Yes, of course, it'll be faster because it uses all of your RAM as cache by default.
<matthewcroughan_> "uses" does not mean it gets in the way. It does not consume that RAM, it uses what you're not using is a better way to think of it.
<etu> But unused RAM is wasted RAM
<matthewcroughan_> Yes, that's the point :P
<tsujp69> yeah dw we aint windows plebs here "hurrr durr my precious ram being used"
<tsujp69> unsued memory is indeed wasted memory
<matthewcroughan_> tsujp69: https://github.com/openzfs/zfs/pull/9735
<tsujp69> zfs looks cool, in-built encryption, in-built LVM
<{^_^}> openzfs/zfs#9735 (by c0d3z3r0, 45 weeks ago, closed): Introduce ZSTD compression to ZFS
<tsujp69> why would I use LUKS as well as ZFS if ZFS already has the encryption?
<matthewcroughan_> If you add zstd-fast to your root dataset, expect massive I/O increases, as the data is compressed on disk, meaning less I/O to perform.
<etu> tsujp69: It's the only filesystem i haven't had a data loss on
<matthewcroughan_> tsujp69: You might not want to. I prefer using LUKS for full disk encryption.
<tsujp69> So you're using LUKS for the full disk encryption and ZFS for the filesystem then
LnL- has joined #nixos
LnL- has quit [Changing host]
LnL- has joined #nixos
<tsujp69> As I see in your nontes you make a crypted volume and thenn put your zpool on that crypted volume
LnL has quit [Ping timeout: 260 seconds]
<matthewcroughan_> that's right tsujp69
<matthewcroughan_> I mean, if I wanted more encryption, I would make a dataset (logical volume) and then encrypt that.
<etu> The nice thing with ZFS encryption is that when you go ZFS send to backup a dataset, that dataset it's encrypted by default
<tsujp69> `compression=lz4` can instead be `compression=zstd-fast` right?
<matthewcroughan_> But in order to encrypt the root, such that I can boot from it and decrypt it on boot, it's far simpler to use LUKS
<matthewcroughan_> tsujp69: that's right, but the benchmarks would indicate that zstd is a better choice in a lot of scenarios.
<tsujp69> ah just `zstd` instead of `zstd-fast` then?
<matthewcroughan_> yes, sorry :D
<tsujp69> Gotcha
<tsujp69> Before I try this out is this of any use in comination with your notes? https://gist.github.com/walkermalling/23cf138432aee9d36cf59ff5b63a2a58
<tsujp69> It's just a gist I found on nixos LUKS, but that's with LVM so I take it not useful since ZFS instead
<matthewcroughan_> Not useful, correct
<tsujp69> ok time to nuke this LVM stuff and redo my nix install
<matthewcroughan_> Oh of course, you'll need the right hardware config
<tsujp69> I'll be here still (on laptop) for any more Qs
<tsujp69> Ooo nice
<matthewcroughan_> generate a new hostId with the following command therefore and use it as your value instead of copying mine.
<matthewcroughan_> head -c 8 /etc/machine-id
<tsujp69> And nicne @ the networking host ID
<matthewcroughan_> here's my hardware-configuration in case you need to compare your system
<tsujp69> im runnning an AMD ryzen cpu, any hw configs for that?
<tsujp69> I need to lookup those linux flags to get better performance too
<matthewcroughan_> no I mean when you run nixos-install this is gonna be generated
<tsujp69> Yeah true
<matthewcroughan_> so if you see that the available kernel modules or nything is different or weird, you'll be able to see the difference
<matthewcroughan_> but it really should just be: 1. Use my notes to make your disk properly, 2. L41-L46 of my configuration.nix
<matthewcroughan_> That should be all that's required to do LUKS on ZFS on Root with NixOS.
<tsujp69> base for say `/dev/sda2` is just Linux from fdisk? Or is a special filesystem type required?
<matthewcroughan_> No idea what you're saying :P
<tsujp69> when formatting a partition before putting LUKS on it, does the partition format matter at all?
<etu> No
<matthewcroughan_> I expect not, as my notes literally completely massacre the disk.
<matthewcroughan_> and my notes are all you need to create that disk
<clever> i prefer using blkdiscard to completely massacre the disk
<clever> that tells the drive firmware to just assume the block is worthless, and to return 0's next time you try to read
<clever> but older drives dont support it
<etu> Disk format matters tough, gpt vs msdos depending if you boot EFI or MBR
<tsujp69> GPT here for UEFI
<etu> Then you have to have an esp, but that can be used as /boot as well, so you only need two partitions
<tsujp69> What is the motivation for argon2id
<tsujp69> yeah I've got nvme0n1p1 EFI system, and nvme0n1p2 where I am putting all this
<tsujp69> argon2id seems to be argon2i + more protection from side channel attacks from a quick wiki read
<tsujp69> nice
<bqv> https://github.com/MatthewCroughan/nixcfg/commits/master possibly the best commit history i've ever seen
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4e57249fc36 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4e57249fc36 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<matthewcroughan_> Oh, please. Everyone does that.
<matthewcroughan_> :D
<matthewcroughan_> It's like, I completely screwed every pooch, it's nothing but fixing syntax/indentation/typo
<matthewcroughan_> You're not a body.
<matthewcroughan_> Therefore my comment does not apply to you :D
<bqv> this might compare
<bqv> i guess i kinda lost steam after 4 years
<etu> matthewcroughan_: but I'm also crazy: https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/
<bqv> and then there's https://github.com/bqv/aoc which i to this day wish i finished
<matthewcroughan_> Oh YOU are that person etu
<etu> Yes
<matthewcroughan_> I sent that to a FreeBSD dev and he said "Oh, so kinda like NanoBSD"
<bqv> etu: oh that was you that came up with that, i use it
<bqv> the concept, at least
<etu> No, i didn't come up with it
Wulfsta has quit [Remote host closed the connection]
<bqv> it's satisfying until you realise there's 7 commits and the top one says fifth
<etu> cole-h: Yes, that article is slightly older than mine. But mine is more "step by step" instructions :)
<cole-h> I was more using Graham's article to refute the "oh that was you that came up with [the concept]" statement :P
<etu> Yeah :)
<etu> People had been using it for months before this
<bqv> yeah i mean i know it's not original
<bqv> i just remember etu's name while looking at the premade code for it somewhere
<bqv> also, for the love of fuck, looking at my github history if you squint you might be mistaken into thinking i used to be smart
CynicalManifest has quit [Quit: Leaving...]
cole-h has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @poscat0x04 opened pull request #102322 → Xsessions rework → https://git.io/JTQVW
<tsujp69> etu and matthewcroughan_ I am in :)
<matthewcroughan_> tsujp69: all worked?
<tsujp69> all worked
<matthewcroughan_> My NixOS install should be THE wiki page.
<etu> Cool :)
<matthewcroughan_> for luks on zfs on root
<matthewcroughan_> Like seriously, my script actually comes from cole-h
<matthewcroughan_> The wiki over-complicates so many simple things
<clever> my laptop is using zfs+swap on lvm, then lvm on luks
<tsujp69> one more noob question, how do I go from this state now to more things installed, say I want firefox by default now etc just `nixos-install` again from my current system (not the live USB)?
<clever> tsujp69: if you want to modify the current os, you use nixos-rebuild
<matthewcroughan_> No, that would be imperative.
<danderson> Edit the config in /etc/nixos/configuration.nix and `nixos-rebuild switch`
<clever> tsujp69: nixos-install is basically just a script to run nixos-rebuild in a chroot, to target the non-current os
<matthewcroughan_> tsujp69: If you were able to install everything the way you just said you want to, that would be known as imperative. Yknow, apt-get, pacman, yum, apk.
<danderson> nixos-rebuild has a bunch of other options too. `switch` makes the new config live immediately, and also sets it to be the default when booting
<danderson> other useful ones are `test` (apply the config to the running system, but keep the boot config to be the previous one - if it goes horribly wrong just reboot to undo)
<amosbird> Hello, is nixos a suitable choice to build static binaries?
<matthewcroughan_> tsujp69: Imperative is the opposite of Nix. You can use nix-env to install things imperatively, but if you want it to permanently stick around, you put it all in /etc/nixos/configuration.nix, for example.
<matthewcroughan_> e.g: nix-env -iA nixpkgs.firefox
<danderson> and `nixos-rebuild boot` changes the bootup config without changing the running one. It's handy if you're making a very intrusive change that needs a reboot anyway.
<etu> amosbird: No, but nix is. You don't need the os part
<tsujp69> Gotcha, I'll edit my configuration.nix to have all the stuff I want by default and then I'll test that and if it reboots and isn't borked etc I can run `nixos-rebuild switch` to make it my new default
<tsujp69> then commit that configuration.nix and boom
<matthewcroughan_> you can think of it as a commit, you may even go as far as to commit your change to github once you're sure it works okay
<matthewcroughan_> nixos-rebuild switch will make your current configuration.nix true, errors will be printed
<danderson> tsujp69: nixos also sets up your bootloader to list previous versions of configuration - so if you get into a bad state, you can reboot and select the previous config at the bootloader
<matthewcroughan_> If you ever need to figure out a package..
<danderson> very nice to get out of trouble. I did that once when an upgrade completely broke my video output. One reboot and selection of the previous gen later, I was back in the game.
<tsujp69> how do you get that list of previous configs, say the previous 3, on the bootloader danderson?
<tsujp69> Nice matthewcroughan_ checking out now
<etu> tsujp69: "nix search firefox" for local searching :)
dbmikus has joined #nixos
<etu> It's slow the first time when it builds the index
<etu> tsujp69: the bootloader generations will be there on boot, you'll see it when you have more than one :)
chambln has quit [Ping timeout: 260 seconds]
<danderson> yeah, the previous generations show up magically. I think there's an option somewhere to limit how many you get, but by default it's "lots" :)
<tsujp69> `environment.systemPackages` is for system default packages, and `users.users.<name?>.packages` is for packages for a specific user
dbmikus has quit [Ping timeout: 246 seconds]
<tsujp69> and `nix-env` is imperative only (not affecting configuration.nix)?
<etu> tsujp69: yes, pro tip: don't install things with nix-env, it's weird ;)
<danderson> ... I upgraded to 20.09 on release day, how do I already have 2GiB of updates to install
<tsujp69> how would I easily use something without having to rebuild if I just wanted to install and try something out then etu?
<etu> tsujp69: if you want something temporary and not in your config, you can use nix-shell
<clever> tsujp69: nix-shell -p firefox
<tsujp69> gotcha
<clever> that will add firefox to $PATH for only that shell
<clever> and once you exit nix-shell, its basically gone
<etu> :)
<danderson> but also, you're welcome to use nix-env if you want to. It won't _break_ anything to use it.
<danderson> you just won't have a nice portable list of installed software anywhere
<danderson> but it can be handy for test-driving some stuff
<tsujp69> very cool
<danderson> my user's nix-env is actually full of crap. I should clear it out.
<matthewcroughan_> tsujp69: You can go even further and just have this stuff for the period of the active shell
<matthewcroughan_> nix-shell
<danderson> 57 packages installed in nix-env. So that's 57 packages I would be missing if I reinstalled my laptop from my checked-in configs
<matthewcroughan_> similar to nix-env, although everything done with nix-shell is only persisted for that literal spawn of the instance of the shell
<matthewcroughan_> danderson: just run nix-env -e '.*'
<matthewcroughan_> you will thank me :D
palo1 has joined #nixos
<matthewcroughan_> Did you do it?
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
<energizer> nix-env does break stuff by causing conflicts
<energizer> they can be fixed by uninstalling the nix-env things
<tsujp69> is there any safe way to include a password for a user in configuration.nix
<danderson> matthewcroughan_: planning to, once I move some of those things into my nixos config :)
<matthewcroughan_> tsujp69: you can refer to that topic broadly as keeping secrets
<matthewcroughan_> and there are many ways, and they are all fairly complex
<{^_^}> [nixpkgs] @harendra-kumar opened pull request #102323 → Add benchmark support in shellFor → https://git.io/JTQrT
<matthewcroughan_> There is this https://github.com/Mic92/sops-nix
<Mic92> I am hoping to get back one to this soon to add support for ed25519 keys, now that sops support age encryption
<Mic92> That will easier than gpg to use
<matthewcroughan_> Oh hey, it's the one who made the thing
<matthewcroughan_> What a twist
dbmikus has joined #nixos
<tsujp69> oooo
<Mic92> my irc client pings everytime someone posts my projects as it contains my username
<energizer> tsujp69: you can include a hashed password
<energizer> dont need fancy tooling
<energizer> if your password is good
dbmikus has quit [Ping timeout: 240 seconds]
<tsujp69> my password is good
<energizer> check the hashedPassword options
<tsujp69> cheers
<tsujp69> what is the syntax for a `let .. in` within the `with pkgs; [ ]`?
<Mic92> this should work: with pkgs; let .. in []
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102324 → cargo-outdated: 0.9.11 -> 0.9.13 → https://git.io/JTQr7
<Mic92> but also the other way around
growpotkin has quit [Quit: ZNC 1.8.2 - https://znc.in]
<tsujp69> where it says `my-hello` I can just add another line for vim etc, and if I had another custom package just another block within the let scope
<tsujp69> I assume
<{^_^}> [nixpkgs] @bryanasdev000 opened pull request #102325 → popeye: 0.8.10 -> 0.9.0 → https://git.io/JTQoW
<amosbird> etu: hmm interesting
<amosbird> how can I use nix to build static inaries?
<amosbird> binaries*
<siraben> I failed to cross-compile qtbase with error "Cannot find command getent", what does that mean?
<siraben> it's an overlay that can be used to make static binaries
<amosbird> # Not all packages will build but support is done on a
<amosbird> # best effort basic.
<amosbird> heh
<siraben> Heh, open a PR!
<tsujp69> hmm with regards to fetchFromGitHub and the sha256 of the "extracted directory"
<tsujp69> how do ytou get a sha of a directory
<tsujp69> wouldn't that be of all the directory contents?
<siraben> tsujp69: you can use the nix-prefetch-git tool
<tsujp69> thank you siraben
<matthewcroughan_> tsujp69: let me see your repo when you're done with your adventure
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102326 → checkstyle: 8.36.2 -> 8.37 → https://git.io/JTQKN
hjarvard has quit [Ping timeout: 268 seconds]
<tsujp69> i have a problem now matthewcroughan_ just getting a paste ready
<{^_^}> [nixpkgs] @peterhoeg merged pull request #101073 → pev: 2018-07-22 -> 2020-05-23 → https://git.io/JT4B4
<{^_^}> [nixpkgs] @peterhoeg pushed to master « pev: 2018-07-22 -> 2020-05-23 »: https://git.io/JTQKh
<tsujp69> matthewcroughan_ I am getting a syntax error when attempting to inline define a package from github http://ix.io/2CF8
<tsujp69> coreutils is read as undefined, as is wget etc so I have borked something there. I am unsure of the exact syntax, I have done it this way instead of seperate files because I have quite a few git specific packages to install so just want them all there instead of as 500 files all being imported
<tsujp69> hang on, its because `with pkgs` is within the let scope only
<siraben> tsujp69: you should split out the zig derivation into a separate file
<tsujp69> but if I have say 50 of these deviations I then need 50 files no?
<tsujp69> I guess that is the sane thing to do I suppose
<siraben> there's already zig in nixpkgs, you could use that
<tsujp69> that's zig 0.6.0
<siraben> alternatively if you want to use a newer commit, just override the rev and sha and you can inline it
<tsujp69> I am going to be used a tiled wm which depends on zig HEAD
<tsujp69> how would I do that siraben?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102327 → chezmoi: 1.8.7 -> 1.8.8 → https://git.io/JTQ64
<siraben> lemme make an example
<jdnixx[m]> <tsujp69 "how would I do that siraben?"> here's what i hve in my configuration.nix
<siraben> tsujp69: http://ix.io/2CF9
<siraben> the assumption here is that the build steps are the same as in 0.6.0
cfricke has joined #nixos
<jdnixx[m]> oh forgot with what I posted, you'd have to specify newerNixpkgs.zig inside the [] brackets
<jdnixx[m]> but I like that as an easy way to have any packages I need straight from master
<jdnixx[m]> and to update the tar you just do nix-prefetch-url --unpack https://<the url on the 3rd line>
<siraben> Does anyone know how to fix this compilation error? https://github.com/siraben/nix-remarkable/runs/1337858447
<jdnixx[m]> to get the sha256 I mean***
<siraben> missing getent, somehow
<siraben> tsujp69: overlays were invented for this purpose, so that you can basically say "use the derivation from nixpkgs with a few changes (newer source, disabling features, etc.)"
<tsujp69> I shouild put this new package override file in `/etc/nixos` alongside `configuration.nix` correct?
<siraben> oh you can inline it
<siraben> just replace your let body with the body of my lambda
<siraben> `let zig = pkgs.zig.overrideAttrs ...`
grumboo is now known as grumble
<siraben> ooh, looks like this build fails because newer zig needs newer clang
<tsujp69> yeah there was this fuckaround I don't quite understand but basically its fixed after zig 0.7.0
<tsujp69> until then certain stuff needing newer zig has to be built from the HEAD and have a newer clang etc etc
<siraben> hm, you could try looking at the error message and add more overrides or write a new derivation entirely using the one from nixpkgs as a template
mzcore_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102328 → compactor: 0.12.2 -> 1.0.0 → https://git.io/JTQiP
yinfeng has joined #nixos
<tsujp69> I have to wrap the nixpkgs one in with import pkgs?
<tsujp69> with import <nixpkgs> {};*
waleee-cl has quit [Read error: Connection reset by peer]
NekomimiScience has quit [Read error: Connection reset by peer]
waleee-cl has joined #nixos
NekomimiScience has joined #nixos
dsal has quit [Read error: Connection reset by peer]
dsal has joined #nixos
<siraben> you can omit that line
<tsujp69> copy pasting that template gives me not of type package
<tsujp69> I added it to the array as [ (import ./zig-overlay.nix) ];
<tsujp69> let me get a paste
Heirlung has quit [Quit: ZNC - http://znc.in]
<tsujp69> ix.io/2CFi
<tsujp69> the error is with ` (import ./zig-overlay-2.nix)`
<siraben> what's the contents of zig-overlay-2
<tsujp69> they are:
<siraben> oh so you're gonna want to change that line to `(callPackage ./zig-overlay-2.nix {})`
<siraben> it would be misleading to call it `zig-overlay-2` btw, call the file `zig-updated.nix` or something
<siraben> since this is no longer an overlay but an entire package
<tsujp69> oh right
Heirlung has joined #nixos
<siraben> yeah this is probably the easiest way to go if it involves a lot of changes
<siraben> and if you manage to get it to build, do submit a PR to nixpkgs
<tsujp69> wrt to your overlay from before too I was getting a syntax error for that file for line 1 column 30
<siraben> yeah because it's a lambda, you'd have to wrap the whole thing in parens to be parsed as an expression
<siraben> I'll explain the structure of what you're looking at in your `zig.nix` file
<siraben> the whole thing is basically a big lambda that takes an attribute set (i.e. like python dictionary) as an input
<siraben> then calls `llvmPackages.stdenv.mkDerivation` with a set `rec { ... }`, the rec indicates that the set can refer to its own attributes
<siraben> what `(callPackage ./zig-overlay-2.nix {})` does is call the nix file with the appropriate dependencies and the `{}` indicates if you want to pass parameters manually
<siraben> tsujp69: hope that helps
<tsujp69> Does a bit, cheers
malook has joined #nixos
<siraben> tsujp69: see https://nixcloud.io/tour/
<siraben> (to understand the nix language)
<tsujp69> Will do
yinfeng has quit [Quit: yinfeng]
<{^_^}> [nixpkgs] @gnidorah opened pull request #102329 → mame: 0.225 -> 0.226 → https://git.io/JTQPd
<tsujp69> it appears zig fails to build due to LLVM being 7.x instead of 11.x, how can I easily patch this?
<{^_^}> [nixpkgs] @vbgl opened pull request #102330 → ocamlPackages.checkseum: 0.1.1 → 0.2.1 → https://git.io/JTQXf
dansho has joined #nixos
Skeleswant is now known as Swant
yinfeng has joined #nixos
jonringer has quit [Ping timeout: 264 seconds]
sangoma has quit [Ping timeout: 264 seconds]
eahlberg has joined #nixos
<amosbird> Using sandbox (recommended): yes
<amosbird> what does this imply?
<matthewcroughan_> tsujp69: How's your nix config coming along? :D
<tsujp69> trying to compile zig using LLVM 11, slow progress so far
<matthewcroughan_> tsujp69: At least when you do it, it'll be 100% reproducible :D
<dansho> anyone know of an svg viewer or image viewer capable of displaying svg? i was using mirage but it was removed in 20.09
<dansho> for now i open with firefox, maybe thats best?
<{^_^}> [nixpkgs] @gnidorah opened pull request #102331 → vkquake: 1.04.1 -> 1.05.0 → https://git.io/JTQ1q
hjarvard has joined #nixos
<matthewcroughan_> danderson: gwenview
<matthewcroughan_> in the KDE suite
zupo has joined #nixos
eahlberg has quit [Quit: Lost terminal]
zupo has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
zupo has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102332 → doppler: 3.15.0 -> 3.16.0 → https://git.io/JTQMk
dansho_ has joined #nixos
sangoma has joined #nixos
zupo has joined #nixos
lcvass has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
dansho has quit [Ping timeout: 260 seconds]
lcvass has joined #nixos
<tsujp69> The default bootloader is systemd-boot right? How does one also add Windows to the list of bootable OS' in the firmware for that
<tsujp69> from the configuration.nix
<tsujp69> I can see an example for grub but what about just systemd-boot?
<clever> tsujp69: i dont think systemd-boot can run windows
<clever> i just always use grub for my bootloader
<tsujp69> might try rEFInd then if that fails try gru
<tsujp69> grub*
lewo` has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<amosbird> Hello, could anyone help me build a simple static binary using nix?
<matthewcroughan_> colemickens: Why do you think cole-h uses this file? https://github.com/cole-h/nixos-config/blob/nixus/users/vin/modules/default.nix
<colemickens> because imports are normally listed explicitly like this.
<matthewcroughan_> Yes, but even for the user? Why?
zupo_ has joined #nixos
ManiacOfMadness has quit [Ping timeout: 240 seconds]
<colemickens> I don't understand what you mean.
<colemickens> It's still a nix file
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to staging-next: https://git.io/JTQMA
<matthewcroughan_> If you don't want it to be available to the user, don't even put it in your user's profile, right?
<matthewcroughan_> Is this not the idea of your ../../mixins?
<colemickens> I really have no idea what you're sasking
<colemickens> the 'vin' user presumably wants those configs
<matthewcroughan_> Well, I just think it'd be more work right?
<colemickens> something somewhere imports ./modules/
<matthewcroughan_> If you're defining it, you obviously want it, so why have to import it explicitly?
<matthewcroughan_> Actually, sorry, can you just import the whole folder's contents with a glob?
Jonathan74 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @gebner merged pull request #99421 → Electron updates → https://git.io/JUQTe
<{^_^}> [nixpkgs] @gebner pushed 5 commits to master: https://git.io/JTQMh
<matthewcroughan_> Or better yet, exclude rather than include?
FRidh has joined #nixos
<matthewcroughan_> What I am actually saying is that I would prefer excludes, rather than explicit inclusion via import.
<colemickens> "because imports are normally listed explicitly like this"
<colemickens> yes, okay
<colemickens> I don't know that syntax off the top of my head
<matthewcroughan_> It's possible to do though? Just wanting to know.
<matthewcroughan_> I'll figure it out at some point.
<matthewcroughan_> It just seems like a lot of work, to me, to have to include everything explicitly, considering I already am mentally including it by making a nix file for it.
<colemickens> bqv's flake does it somewhere or something
<matthewcroughan_> yeah, looking at that now
<colemickens> I don't know what to tell you it's how nix works, nothing about nix ever auto discovers files except for inferring a default.nix afre a slash
<{^_^}> [nixpkgs] @FRidh pushed 56 commits to staging-next: https://git.io/JTQDk
<matthewcroughan_> Yes, that's fine, I just want to glob it if possible.
yinfeng has quit [Quit: yinfeng]
zupo has quit [Ping timeout: 272 seconds]
<matthewcroughan_> And exclude, because I'm going to seriously have a lot of packages.
<typetetris> amosbird: You could try to use `nixpkgs.pkgsMusl.stdenv` instead of `nixpkgs.stdenv` if your project already has a nixexprs to build it. Might not be enough though.
<{^_^}> [nixpkgs] @FRidh pushed 441 commits to staging: https://git.io/JTQDO
<matthewcroughan_> colemickens: Hehe, this is why having one single massive configuration.nix is awesome :P
<colemickens> I actually don't know about glob importing nixos modules.
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #102102 → cshatag: init at 2019-12-03 → https://git.io/JTDjD
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JTQDn
cfricke has quit [Quit: WeeChat 2.9]
fendor has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
euandreh has joined #nixos
malook has quit [Remote host closed the connection]
eric_ has joined #nixos
eric_ has quit [Client Quit]
<typetetris> So with flakes, nixpkgs doesn't declare all its sources as inputs. For the evaluation of the nixexprs I assume, nix with flakes activated, should fail on something like `fetchUrl` without a `sha256` argument? Otherwise, whats the point?
<typetetris> Otherwise the nixexprs evaluation wouldn't be reproducible, wouldn't it?
eahlberg has joined #nixos
<tsujp69> is there a wiki page on writing nix packages>
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
<FRidh> fixed-output derivations always need a hash. Special functions for fetching expressions, such as fetchTarball don't, unless --pure mode is used. Flakes work by default using pure mode.
gnidorah has joined #nixos
eahlberg has quit [Client Quit]
<{^_^}> #100485 (by gnidorah, 2 weeks ago, open): iortcw: init at 1.51c
eahlberg has joined #nixos
eahlberg has quit [Client Quit]
<typetetris> What does that mean? Someone tried to manipulate the cache here? Maybe more a bug somewhere. https://www.irccloud.com/pastebin/eKCZal9y/
stree has quit [Quit: Caught exception]
stree has joined #nixos
eahlberg has joined #nixos
alp has joined #nixos
spookyscarysphal is now known as sphalerite
<{^_^}> [nixpkgs] @prusnak opened pull request #102333 → Electron 20.09 → https://git.io/JTQyz
<{^_^}> [nixpkgs] @iblech opened pull request #102334 → agda-categories: Unbreak the build (trivial hash change) → https://git.io/JTQyV
<typetetris> What is going on with flakes? The RFC has been withdrawn.
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4e5e46061e5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
<{^_^}> Channel nixpkgs-20.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/4e5e46061e5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.09-darwin)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/26d3fbf2156 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @gebner merged pull request #102333 → [20.09] Electron updates → https://git.io/JTQyz
<{^_^}> [nixpkgs] @gebner pushed 4 commits to release-20.09: https://git.io/JTQy6
noudle has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102335 → flameshot: 0.8.4 -> 0.8.5 → https://git.io/JTQSf
Jackneill has quit [Read error: Connection reset by peer]
yinfeng has joined #nixos
aniketd[m] has joined #nixos
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @bb2020 opened pull request #102336 → discrete-scroll: added myself as maintainer → https://git.io/JTQSI
<matthewcroughan_> typetetris: what do you mean?
yinfeng has quit [Client Quit]
<tsujp69> So do you test your nix package `.nix` by doing `nix-build package.nix`?
<matthewcroughan_> What do you mean test?
eahlberg has quit [Remote host closed the connection]
<tsujp69> as in check it works etc
<tsujp69> does it build etc
<matthewcroughan_> you can do that
yinfeng has joined #nixos
<matthewcroughan_> nix build builds the output of the given nix file in the ced
<matthewcroughan_> cd*
<tsujp69> im getting non default value for stdenv
<matthewcroughan_> nixos-rebuild switch will do multiple steps for you
<matthewcroughan_> and activate that build on your live system for you
<tsujp69> hang on im confused, im trying to package a program I used on arch for nix and I have written a nix expression file for it called greetd.nix
<tsujp69> I want to test if it builds and installs etc
<{^_^}> [nixpkgs] @KaiHa closed pull request #63527 → tor-browser: remove --no-remote option → https://git.io/fjV0u
<tsujp69> running `nix-build greetd.nix` gives me the following error: cannot auto-call a function that has an argument without a default value ('stdenv')
<colemickens> tsujp69: is it just a package derivation or did you write a nixos module?
<tsujp69> I think I've written my own module? the top level scope is `rustPlatform.buildRustPackage`
<colemickens> tsujp69: So, it sounds like you wrote a package definition. Those are usually meant to be "built" via nixpkgs, with callPackage
<colemickens> tsujp69: is this something you plan to upstream to nixpkgs?
yinfeng has quit [Client Quit]
<matthewcroughan_> Ah ok, I am not talking about building a package like that.
<tsujp69> yes I plan to sumit a PR to have it included in nixpkgs
<tsujp69> submit*
<matthewcroughan_> I'm not familiar with doing what you are doing, colemickens certainly is though :D
yinfeng has joined #nixos
<colemickens> tsujp69: okay, so I would go ahead and test it by staging it into a nixpkgs tree, adding it to pkgs/top-level/all-packages.nix and then building it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102337 → fly: 6.6.0 -> 6.7.0 → https://git.io/JTQSw
<matthewcroughan_> colemickens: What does it mean that the RFC for flakes has been withdrawn?
<colemickens> if you read up in the RFC for flakes there is some context
<tsujp69> im really new to nix is there a wiki or something for that process colemickens?
<colemickens> that's all I know. as far as I know flakes is still progressing just fine on master
<colemickens> tsujp69: the nix command line, including the flakes parts, are documented on the nixos wiki
<colemickens> Flakes itself is also documented on the wiki, but it's a bit unorganized IMO
<matthewcroughan_> OK, so "withdrawn" does not mean rejected.
<colemickens> Oh you meant the RFC process... idk, maybe nixos/rfcs
<{^_^}> rfcs#49 (by edolstra, 1 year ago, closed): [RFC 0049] Flakes
<tsujp69> does flakes apply to me O.o
<matthewcroughan_> No, and it's confusing I know :D
<tsujp69> Ah I see, clone nixpkgs, add it to the tree, at the root of the tree `nix-build -A pkgname`
lcvass has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<colemickens> yeah you got it
<matthewcroughan_> Flakes would apply to you if you wanted to NOT submit this to Nixpkgs and host it on your own though. tsujp69
<colemickens> tsujp69: you have to list it in pkgs/top-level/all-packages.nix explicitly too, for that attribute to be there.
<tsujp69> bugger forgot to install git lmfao, switching ;)
lcvass has joined #nixos
yinfeng has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @FRidh merged pull request #102126 → openblas: 0.3.10 -> 0.3.12 → https://git.io/JTy4Z
<{^_^}> [nixpkgs] @FRidh pushed commit from @TredwellGit to staging « openblas: 0.3.10 -> 0.3.12 »: https://git.io/JTQ9e
<matthewcroughan_> colemickens: So, earlier I was asking how I could discover whether home-manager has extensions for a given package?
<matthewcroughan_> In the repl, how could I do this?
<tsujp69> what is home-manager? Is it useful?
<matthewcroughan_> I don't really fully know my self yet what it truly does.
<{^_^}> [nixpkgs] @FRidh merged pull request #102029 → groff: set "operating system" for mdoc pages → https://git.io/JTMpS
<{^_^}> [nixpkgs] @FRidh pushed commit from @alyssais to staging « groff: set "operating system" for mdoc pages »: https://git.io/JTQ9J
<colemickens> I don't know, I don't tend to use the repl, sorry. I just google "home manager options" every single time and then click the first option. :|
<matthewcroughan_> The idea, at least afaik, is that it's a portable manner of configuring packages to be used via nix, separate from nixos entirely.
<{^_^}> [nixpkgs] @FRidh merged pull request #101934 → [staging] hidapi: 0.9.0 -> 0.10.0 → https://git.io/JT1Is
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to staging: https://git.io/JTQ9T
<matthewcroughan_> Whereas your configuration.nix might describe your system, laptop. You might then have another configuration.nix for another machine, you would *not* define your packages in there.
<matthewcroughan_> Instead, you would say "I want a user named matthew, and he should have vim." And you would even configure vim inside of this "vim.nix"
<matthewcroughan_> vim.nix would also therefore replace the dotfiles for vim.
FRidh has quit [Remote host closed the connection]
<matthewcroughan_> So at this point, you have 3 primary structures. You have your hardware-configuration.nix, configuration.nix and users/various-stuff.nix
<colemickens> the quick answer is : nixos->/etc => home-manager->/home/user
<matthewcroughan_> hardware-configuration.nix and configuration.nix define your hosts, as colemickens has here. https://github.com/colemickens/nixcfg/tree/main/hosts
mniip has quit [Ping timeout: 600 seconds]
<matthewcroughan_> Notice how little is defined in his main laptop's configuration.nix https://github.com/colemickens/nixcfg/blob/main/hosts/pinebook/configuration.nix
<matthewcroughan_> colemickens: wait, hmm, what is ../../mixins/common.nix in this concept?
<matthewcroughan_> Is that all the programs you expect to have on any given machine?
<colemickens> matthewcroughan_: some common nix settings that I expect on all machines. It sort of overlaps conceptually with profiles/core.nix. There are some specifics that I don't always keep straight. I have some machines I try to keep super minimal where home-manager isn't even deployed.
<matthewcroughan_> settings, but not programs.
<matthewcroughan_> Got it.
<{^_^}> [nixpkgs] @FRidh merged pull request #101369 → kdeApplications: Use latest qt515 by default → https://git.io/JTgIS
<{^_^}> [nixpkgs] @FRidh pushed 19 commits to master: https://git.io/JTQ9C
<colemickens> matthewcroughan_: To add extra nuance, though, my very base "profile" is profiles/user.nix and it skips h-m but does still make sure I have nvim/tmux/htop in systemPackages so I have my essentials even if I don't deploy an actual profile with any apps.
<matthewcroughan_> So your pinebook only has sway and some other small things? o.O colemickens
<matthewcroughan_> you really have almost nothing on it
<matthewcroughan_> OH!!! So you do everything else with home-manager?
<{^_^}> [nixpkgs] @FRidh pushed 22 commits to staging-next: https://git.io/JTQ9l
<matthewcroughan_> So the lack of stuff I'm seeing is really just because you do everything else in home-manager?
<colemickens> profiles/sway.nix includes profiles/gui.nix which contains common gui stuff, which is maybe what you're expecting?
<matthewcroughan_> lack of imports*
<{^_^}> [nixpkgs] @FRidh pushed 23 commits to staging: https://git.io/JTQ9E
<matthewcroughan_> Well, where do you install vim?
alp has quit [Ping timeout: 264 seconds]
<colemickens> matthewcroughan_: I mean, "in home-manager" mostly just means it's "home-manager.users.cole.X" instead of "services.X", that's it.
<colemickens> matthewcroughan_: like, nothing about my directory structure has any relationship to whether something is installed/configured with nixos or home-manager
<colemickens> it's in mixins/neovim.nix
<matthewcroughan_> yes, I know that much
<matthewcroughan_> I know at least that everything must be included somehow somewhere
<matthewcroughan_> but it's obscured by your dir structure, certainly
<colemickens> the profiles cascade include each other, sway is the top level one
<colemickens> I mean, it is literally documented in the readme
<matthewcroughan_> because dir structures are useful to imply things, like how cole-h has users/ and a default.nix in every folder as an entrypoint to define vars.
<colemickens> not each one explicitly but..
<colemickens> yeah, which is why my readme specifically says its not a multi-user layout ;)
<matthewcroughan_> I like the look of this a lot more than cole-h's thus far, because it gets rid of that default.nix entrypoint which is a bit of boiler plate that could be done away with, I think.
<matthewcroughan_> uh, in the users folder, which you've probably seen before.
m0rphism has joined #nixos
<matthewcroughan_> top level nix files = users, folders = programs those users have access to
<matthewcroughan_> in reality, like you've said before, it all ends up in a big output in nix, but the dir structure can help a lot mentally
vonfry has joined #nixos
<colemickens> I think bqv's in similarish to mine, but more cleanly laid out with regards to keeping home-manager profiles nicely separate
eoli3n has joined #nixos
<matthewcroughan_> colemickens: Earlier, I got rid of everything I ever installed with nix-env. I want now to see about putting this all into home-manager.
<colemickens> but also, there are just some things that span nixos/home-manager configuration, so then you end up having ot make sure you simultaneously import both the nixos+h-m modules in your repo... or... you throw in the towel and stick them together.
<matthewcroughan_> One example application I got rid of is tmate. How do I know whether this is worth doing?
<matthewcroughan_> Why would I put it in home-manager if home-manager doesn't do anything special with it? How do I know if I even can?
<tsujp69> dafook im using nix-prefetch-git but I am getting incorrect length for sha256 from fetchgit in my package definition?
<tsujp69> how is that possible...
<colemickens> matthewcroughan_: fwiw, there's basically zero functional difference in moving the pkgs from environment.sysPkgs to h-m. AFAIK. Other than a warm feeling. I did it too, just warning you.
<evax> I'm packaging a proprietary binary that has bad release practices (the dowloadable file is updated in place for minor versions, so it breaks hashing). Is there a standard way to deal with this in nixpkgs, maybe caching the files properly?
<tsujp69> I double checked the hash and it's the one nix-prefetch-git is spitting out
<matthewcroughan_> And portability colemickens
<matthewcroughan_> I'm in it primarily for that.
<colemickens> matthewcroughan_: once you start playing, you'll find there are a number of things that can be done in both and you will just have to choose how you want to paint the shed.
<colemickens> matthewcroughan_: mmm, that's a good point, I hadn't thought about that.
<matthewcroughan_> Being able to go from my laptop, to someone else's laptop, to my phone with nix-on-droid, yes, that's delicious :P
<colemickens> tsujp69: use --unpack
<matthewcroughan_> To be able to share shells with my friends. So much better than docker.
<matthewcroughan_> Docker is an absolute behemoth compared to this approach, although of course has some of the same benefits.
<matthewcroughan_> Also needs a LOT more data LOL
<matthewcroughan_> My God the amount of space needed for all this Nix stuff is ungodly.
sangoma has quit [Ping timeout: 260 seconds]
<matthewcroughan_> And the bandwidth requirements, my friend in Florida would have no chance :D
<tsujp69> unpack isn't a flag for nix-prefetch-git
<colemickens> tsujp69: oops, sorry, thought you meant nix-prefetch-url, did't look close enough
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102338 → ft2-clone: 1.36 -> 1.37 → https://git.io/JTQ9h
<colemickens> tsujp69: still, there might be a relevant flag that affects how it unpacks/processes the checkout?
<vonfry> Could nixos module write systemd unit with "@"? For example, A service named "service_name@" with "User=%I". I try to read document and the source of systemd module, but I cannot find how.
<matthewcroughan_> vonfry: I actually figured that out in Yocto a few days ago, rather than Nix haha
<tsujp69> well this isn't that the hash doesnt match, it's saying its an incorrect length for a sha256 hash
rprije has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh pushed to master « kdeApplications.okteta: remove alias »: https://git.io/JTQHO
<colemickens> can you pastebin the file/error?
FRidh has joined #nixos
yinfeng has joined #nixos
<matthewcroughan_> colemickens: I'll look into this myself, but what exactly is the magic bit of home-manager?
<matthewcroughan_> Wasn't there some thing about how home-manager has some magic extensions for certain software? Let's you configure it more?
<tsujp69> hold up it was an error for cargoSha256 and not the fetchgit sha256... ugh. All good now colemickens
<colemickens> uh home-manager just does what nixos does for /etc, it writes out symlinks for config files to nix store paths
civodul has joined #nixos
<colemickens> it just does it for stuff in /home/user/ instead
<matthewcroughan_> yes, and so does this interface with nixos too?
<matthewcroughan_> so can a user have systemd services, and stuff?
<colemickens> matthewcroughan_: some of the home-manager moduels configure user-systemd services, yeah
mananamenos has joined #nixos
<matthewcroughan_> and I'm going to guess that would never work on other OS', yet at least
<colemickens> that runs spotifyd as a systemd user service
<matthewcroughan_> at least until this is a thing, your home-managed systemd user service is never going to work on anything other than nixos though right?
sangoma has joined #nixos
<colemickens> matthewcroughan_: I think it works on non-nixos linux, but don't quote me
<matthewcroughan_> omg, is that how you declare systemd services in any configuration.nix?
luc65r has joined #nixos
<matthewcroughan_> services.<placeholder> = { someshit }
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102339 → gcsfuse: 0.30.0 -> 0.32.0 → https://git.io/JTQH6
<colemickens> matthewcroughan_: services.X are the highlevel wrappers. if you look at the source for those, you'll find that inside they internally configure systemd services via: https://search.nixos.org/options?channel=unstable&from=0&size=30&sort=relevance&query=systemd.services.
<colemickens> so if you want to write your own systemd service, you would do something like that ^
<vonfry> matthewcroughan_: I find an example in nixos-containers using "@" with systemd, it uses a map function to generate each service.
<vonfry> thx
<matthewcroughan_> vonfry: have you got a link to that? :D
<matthewcroughan_> colemickens: this is exactly what I wanted to query
<matthewcroughan_> I wanted to query whether tmate has any home-manager features or not
<vonfry> <nixos/modules/virtualisation/nixos-containers.nix>:716
<colemickens> seems like not, but you could write one
<{^_^}> nix-community/home-manager#1562 (by colemickens, 1 week ago, open): meli: init module
<matthewcroughan_> Well, my question is, should I bother putting my stuff in home-manager if it isn't integrated?
<colemickens> matthewcroughan_: do you want to have to run two tools on a new machine or one?
<colemickens> it's up to you, I chose to go all in.
<matthewcroughan_> one :D
<matthewcroughan_> two tools though? What are you referring to exactly?
<colemickens> if you don't use home-manager to install the config files, presumably you're going to use some other dotfile too
<matthewcroughan_> Right.
<colemickens> so might as well use home-manager ot install the tmate file, even if it doesn't have a special built module or it
<colemickens> *for it
<matthewcroughan_> Well, how "supported" does my package need to be to use home-manager.
<colemickens> matthewcroughan_: you should look at the home manager options...
<matthewcroughan_> Tmate exists in nixpkgs. Do I have to do something special to be able to write its config file in home-manager?
<colemickens> matthewcroughan_: again, home-manager is doing the same thing as nixos modules
<colemickens> sigh
<colemickens> please read the docs
<matthewcroughan_> I have, that doesn't make it unconfusing.
mmohammadi9812 has quit [Ping timeout: 272 seconds]
<matthewcroughan_> The docs are verbose. Templates are not, although your guys' repos are complex enough to confuse at my level :P
<matthewcroughan_> For example, here, cole-h has a separate file, which looks like his dotfile for git.
<colemickens> home-manager modules just write config files.
<colemickens> ergo modules can write config files
<colemickens> ergo if there isn't an h-m module, you can still use h-m to install the symlink
<matthewcroughan_> so that's what cole-h has done in this folder?
<matthewcroughan_> some are configured purely in a .nix file, others are not.
<dansho_> how do you use the latest packages on hackage?
<matthewcroughan_> Those that are not, are not "supported" by home-manager, therefore you can't keep it all in the .nix because it won't know how to write the config?
<matthewcroughan_> Why bother even having it support and write the config? Is there any special benefit to this?
<srhb> dansho_: There's callHackageDirect, but you pay a cost of not having the shasums in-tree already as they are in haskellPackages (for whatever stackage lts it was based on)
<matthewcroughan_> I would not mind putting every one of my configs inside of the same dir as my .nix, and using h-m to symlink like you say.
<colemickens> matthewcroughan_: if you look at my meli pr I linked to..
<colemickens> please...
whatisRT has joined #nixos
<colemickens> it will become quite clear what's going on
<dansho_> srhb, random-fu is marked as broken, if i allow broken it wants random 1.2, however there is haskellPackages.random_1_2 in nixpkgs, i can't figure out how to get it to see that
<matthewcroughan_> cole
vonfry` has joined #nixos
<matthewcroughan_> colemickens: a little.. I'm a bit wondering about the . though
vonfry` has quit [Remote host closed the connection]
<gnidorah> FRidh: adjusted, thanks #100485
<matthewcroughan_> How do I figure out what home.file does?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/100485 (by gnidorah, 2 weeks ago, open): iortcw: init at 1.51c
<srhb> dansho_: Get what to see that?
<matthewcroughan_> home-manager doesn't seem to have that?
<matthewcroughan_> nvm, found it.
<colemickens> ;)
vonfry has quit [Ping timeout: 240 seconds]
<srhb> matthewcroughan_: It should be well-documented, it's the most-often-used low-level feature on top of which most of home-manager's modules are implemented, since it's the mechanism that is used to symlink files in place during activation.
<matthewcroughan_> So, your L34 says, in English: "Symlink the output of pkgs.writeText "gdbinit" ''set auto-load safe-path /nix/store'' INTO the user's homedir"
<matthewcroughan_> Is that right?
eoli3n has quit [Remote host closed the connection]
<tsujp69> the nativeBuildInputs is only for `mkDerivation` right? It is not for `buildRustPackage`?
eoli3n has joined #nixos
<colemickens> matthewcroughan_: no, everything nix builds goes in the store
<dansho_> srhb, ghc i guess https://hastebin.com/ukijekuzip
<matthewcroughan_> colemickens: Attribute set of files to link into the user home.
malook has joined #nixos
<matthewcroughan_> I'm confused then. The home-manager docs certainly say that's what it does.
<colemickens> if you look at the meli PR, you'll see that it allows the user to specify freeform Nix, it converts it to TOML and "builds" it to a file. The result of that build is... a nix store path, and then it's symlinked into the home dir later by a service.
<colemickens> just try it
<srhb> tsujp69: Both.
<colemickens> the easiest way to learn this stuff is to just try it
<matthewcroughan_> I don't know how to "just try it"
<matthewcroughan_> You say that as if you don't need 100 lines prior to test this stuff out.
<colemickens> You don't?
<colemickens> There are plenty of blog posts and example repos and even a bare standalone home manager template
<matthewcroughan_> I have no idea what interactive.nix is. I have no idea how to "run it".
<srhb> dansho_: Is this a shell.nix under your control?
<colemickens> I don't think its 100 lines. The manual is not that long. The options are fully indexed on a single html page.
<matthewcroughan_> If I put that in my configuration.nix, I won't have ../../mixins
<matthewcroughan_> If I put that in my configuration.nix, I won't know what to remove and what to keep.
<dansho_> srhb, yes
malook has quit [Client Quit]
<tsujp69> how can I solve an `ld` fail for `lpam`, I don't see a pam package srhb
<srhb> dansho_: Long story short, for single packages you may want to use override to set a version specifically, like `foo.override { random = hpackages.random_1_2; }
<matthewcroughan_> What you have asked me to do isn't possible or easy in the way you think it is, because you have the curse of knowledge, you know what to do and I do not :P
<colemickens> then read the manual
medvid has quit [Quit: WeeChat 2.3]
<matthewcroughan_> I just did.
<matthewcroughan_> I gave you the definition from the manual.
mmohammadi9812 has joined #nixos
<matthewcroughan_> >Attribute set of files to link into the user home.
<matthewcroughan_> home.file does that. It "links into the users home".
<colemickens> if you wuold just follow the first three steps of the home manager readme, activated an option and spent 50 seconds inspecting your sysmt you'd confirm what I've spelled out three times already in this conversation.
<matthewcroughan_> You told me that this does not link to the users home, that it's in /nix/store, I do not understand.
<dansho_> srhb, what would foo be usually?
<colemickens> I've told you like half a dozen times over three weeks that everything nix builds goes into /nix/store, if you don't get that, I don't know how you're going to get nix to click.
<dansho_> this shell.nix comes from cabal2nix --shell i think
<matthewcroughan_> You didn't tell me to follow home-manager's readme. You told me to read the manual. colemickens :D
mniip has joined #nixos
medvid has joined #nixos
<colemickens> K.
<srhb> dansho_: A haskell package.
<matthewcroughan_> Build outputs get put in /nix/store. What does that have to do with linking?
<matthewcroughan_> what does the home-manager manual mean by "link into the user home." then?
<srhb> dansho_: In this case it looks like it'll be random-source
<matthewcroughan_> Stuff gets linked from /nix/store -> other parts of system, I thought?
<{^_^}> [nixpkgs] @FRidh merged pull request #100485 → iortcw: init at 1.51c → https://git.io/JTmhS
<{^_^}> [nixpkgs] @FRidh pushed commit from @gnidorah to master « iortcw: init at 1.51c »: https://git.io/JTQQ1
<{^_^}> [nixpkgs] @Mic92 merged pull request #102237 → nixos/tlp: Fix deprecation hint → https://git.io/JTHll
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JTQQM
<srhb> dansho_: As always, sharing the nix file may be helpful, along with your version of nixpkgs :)
mananamenos has quit [Read error: Connection reset by peer]
<matthewcroughan_> colemickens: I don't know how I've violated anything about the nix store. Did you just not read what I said?
<{^_^}> [nixpkgs] @mvnetbiz opened pull request #102341 → Anbox linux → https://git.io/JTQQQ
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @oxzi to release-20.09 « nixos/tlp: Fix deprecation hint »: https://git.io/JTQQ7
<matthewcroughan_> home.file = {
<matthewcroughan_> ".gdbinit".source = (pkgs.writeText "gdbinit" ''set auto-load safe-path /nix/store'');
<matthewcroughan_> How does this not mean "Link the output of the thing on the right into the user's home.file"?
<tsujp69> is there a way to match exact results on the nixpkg search website?
<tsujp69> I typed pam and I get 600 results, I typed "pam" and I get 0 results, but the package `pam` does exist
<tsujp69> it unfriendly on the website unless im missing something
<matthewcroughan_> it won't be pam exactly, it'll be security.pam or something
<matthewcroughan_> and it'll probably be an option, not a package
<srhb> matthewcroughan_: It does mean that, at least indirectly.
<matthewcroughan_> srhb: so why is colemickens mad at me? I read the manual, explicitly asked whether my statement was correct or incorrect in order to learn how wrong/right I am in my understanding.
<srhb> matthewcroughan_: I don't want to venture a guess at that, nor do I think it's productive to ask another person in the channel like that without exacerbating whatever was going wrong :)
<dansho_> nixpkgs is 20.09
<matthewcroughan_> srhb: well it's always better to ask another person what you did wrong in a situation, since you can't always see it yourself.
<srhb> matthewcroughan_: I don't disagree about that, just the talking-in-the-third-person in channel :)
<matthewcroughan_> yes, it's an option not a package, I think?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102342 → gleam: 0.11.2 -> 0.12.0 → https://git.io/JTQ7G
<{^_^}> [nixpkgs] @evax opened pull request #102343 → vuescan: 9.7.35 -> 9.7.36 → https://git.io/JTQ7Z
<matthewcroughan_> srhb: is any of the home-manager usage different because of flakes?
<tsujp69> I've got my package done but it's complaining that `tsujp` is undefined
<srhb> matthewcroughan_: I don't know. :)
<tsujp69> `maintainers = with maintainers; [ tsujp ];`
<srhb> tsujp69: Have you added yoursel to maintainers/maintainer-list.nix ?
<tsujp69> derp
<srhb> dansho_: You're unlikely to get that to work, even with an override, because other dependencies excpect a _newer_ random.
<tsujp69> what is the difference between `maintainers = with maintainers; [ tsujp ];` and `maintainers = [ maintainers.tsujp ];`
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102344 → gllvm: 1.2.8 -> 1.2.9 → https://git.io/JTQ7E
<__monty__> tsujp69: The difference is it's less verbose when there's many maintainers.
<{^_^}> [nixpkgs] @felschr opened pull request #102345 → filebot: 4.9.1 -> 4.9.2 → https://git.io/JTQ7z
<srhb> tsujp69: `with foo; expr` brings every attribute of `foo` in scope in `expr`.
<jophish> Is it possible to override nixpkgs with the result of an expression for use with nix-shell -p
<tsujp69> gotcha
<__monty__> jophish: Yes, look at the overlay section in the manual. (At least I think that's what you're asking for.)
<srhb> dansho_: But it looks like maybe both random-fu and random-source will in fact work with a newer random: https://gist.github.com/b406a8e18badfb1f3c8ffce903a1e6e4
<srhb> dansho_: It should be fixed upstream though.
<jophish> __monty__: sorry, not quite. Say for example I have a file, nixpkgs.nix. with something like: import myNixPkgsSource {};
<srhb> dansho_: (I just blindly got rid of the upper bounds in both packages)
<jophish> I'd like to pass that to nix-shell
<__monty__> jophish: Overlays can get you that.
<jophish> I can do it with nix-shell -I nixpkgs=$(nix-instantiate --eval --expr '(import ./nixpkgs.nix).path')
Maxdamantus has joined #nixos
<jophish> but that seems pretty nasty
<jophish> __monty__: oh, but what would I be overlaying?
<jophish> say for example that NIX_PATH is empty
j is now known as jess
<__monty__> `self: super: { myAttr = import ./nixpkgs.nix {}; }` Then nix-shell -p myAttr will pick it up.
<__monty__> Hmm, not sure there's an elegant solution when NIX_PATH is empty.
<jophish> sorry, I'm not trying to do this to override a specific derivation, it's with the goal of pinning a particular nixpkgs
<dansho_> srhb, thank! i would have never gotten that far =)
<jophish> the nix-instantiate solution isn't so terrible really, except that I want to run this in one of those special nix-shell shebangs, which don'
<jophish> t support the command output interpolation which allows that to work
<srhb> dansho_: Sure thing.
<{^_^}> [nixpkgs] @andir opened pull request #102346 → rsync: disable the bundled zlib explicitly → https://git.io/JTQ7j
jabster28 has joined #nixos
jabster28 has quit [Client Quit]
daGrevis has quit [Ping timeout: 260 seconds]
<siraben> clever: my cross-compilation toolchain has Qt support , how do I set the paths correctly? http://ix.io/2CGh
<siraben> Anyone else worked with cross-compiling Qt before?
<{^_^}> [nixpkgs] @srhb merged pull request #102259 → fio: 3.22 -> 3.23 → https://git.io/JTH6n
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/JTQ5H
<{^_^}> [nixpkgs] @cdepillabout merged pull request #102243 → git-mediate: remove broken → https://git.io/JTH4o
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JTQ5N
daGrevis has joined #nixos
<tsujp69> Someone beat me to packaging greetd https://github.com/NixOS/nixpkgs/pull/102242
<{^_^}> #102242 (by luc65r, 19 hours ago, open): greetd: init at 0.6.1
<tsujp69> Argh!
<tsujp69> But also.. yay
<{^_^}> [nixpkgs] @cdepillabout closed pull request #100515 → haskellPackages.optparse-applicative: Fix for compgen error → https://git.io/JTOTY
<tsujp69> Beat me by 19 hours too no less
<jophish> yuck
<jophish> perhaps there's a neater way of doing that
<jophish> doesn't seem like such an unusual thing to want to do
<jophish> lol, seems to screw up GH's syntax highlighting
<__monty__> Tbh, I've given up on shebangs for my haskell.
<{^_^}> [nixpkgs] @NinjaTrappeur merged pull request #102300 → prosody: install prosody-migrator tool → https://git.io/JTQTe
<{^_^}> [nixpkgs] @NinjaTrappeur pushed 2 commits to master: https://git.io/JTQd1
<__monty__> jophish: Well it begins with a bash shebang, so I'll forgive the language detection.
<jophish> heheh
<siraben> Is there a way to patch environment variables?
<jophish> __monty__: I discovered the shh package the other day, it makes writing shell scripts in Haskell pretty good!
<siraben> In Nix for a build
<jophish> siraben: in mkDerivation's argument just define an attr
<jophish> like mkDerivation { FOO="bar"; ... }
<__monty__> jophish: Might be great. My issue with it is nix-shell shebang was so much slower than stack shebang which was already kinda slow. So now I just package all my haskell tidbits with haskell.nix and install them like any other package.
tcunha has quit [Remote host closed the connection]
<jophish> yeah, that's actually what I'm leaning towards this this change, to compile these ahead of time and put into cachix
<jophish> at the moment to run these scripts in CI takes 300MB of download (3GB unpacked!)
<siraben> jophish: Hm, looks like they're not even the usual env variables
<siraben> it's what is returned by `qmake -query`
<siraben> And they have to be set with `qmake -set`
<jophish> sorry, no idea in that case
<jophish> don't go near qmake myself
<siraben> Thing is I don't think I should use the Nix-provided qt5 but instead use the one in the toolchain
<jophish> __monty__: how's haskell.nix? I didn't like it when I last used it, but that's because it broke HIE
<jophish> also I remember it being quite slow, but that might not be a correct memory
<jophish> I'm very used to the regular haskell infra, but my god is it slow
<jophish> the decision to turn on profiling builds by default was a huge mistake imo
whatisRT has quit [Quit: ZNC 1.7.5 - https://znc.in]
<__monty__> I don't experience any slowdown compared to non-nix cabal. But I also don't touch HIE or ghcide. Maybe you remember ending up having to compile GHC (twice) because you weren't hitting the cache?
<__monty__> The most important improvement imo is UX. You have a cabal (or stack) project and it just works (most of the time).
<__monty__> Very different from the nixpkgs infra.
tcunha has joined #nixos
<siraben> Dammit I think I'll just have to set the qmake variables myself
<jophish> cabal.project and all I guess
<__monty__> Yes
<jophish> nice
<jophish> perhaps I should give it another go sometime
<jophish> problem is I know how to use the regular infra
werner291 has joined #nixos
<tsujp69> what is the canonical `pkgname-git` equivalent from the AUR for NixOS?
<tsujp69> To do the overlay yourself? Surely there could be the same `pkgname-git` equivalent packages?
<tsujp69> Or is that moot because overlays exist>?
<srhb> tsujp69: There are some foo-unstable packages, but yes, mostly just your own overlay
<tsujp69> (it could still be useful because now people don't have to define overlays themselves for dependencies?)
<__monty__> If it's not rubbing you the wrong way and you're not much into tinkering with this stuff there's no hurry to switch. It's still moving quite fast so there's a cost in keeping up.
<srhb> tsujp69: Maybe NUR has opinions on this.
<tsujp69> is it just me or is the NUR list of packages extremely small?
Fare has quit [Ping timeout: 260 seconds]
<tsujp69> wrt Arch linux often things get into community which are purely open source and "core" in some sense, and so `community` is very small and AUR is huge
<srhb> tsujp69: Haven't thought about it much. But maybe the ease of adding to nixpkgs, and the ease of overlays has an effect.
<tsujp69> For NixOS (and im new as of today) nixpkgs seems huge and the NUR seems tiny
<srhb> Yes, that sounds right, and I think the cause is likely coupled to what I just mentioned.
werner291 has quit [Client Quit]
<tsujp69> Seems like the main place to add pkgs is nixpkgs and not NUR, no? The NUR packages I saw were all these deviant-weird builds?
<srhb> Right.
<srhb> tsujp69: There's also something to be said for the integrity of the monorepo; one commit hash gives you a bunch of confidence of interoperability because everything from packages to tests are encompassed in just that one string
<{^_^}> [nixpkgs] @FRidh opened pull request #102347 → kdeApplications: Use latest qt515 by default → https://git.io/JTQbk
<srhb> tsujp69: When you split things out, you need more data for the same confidence. eg. I used this commit of nixpkgs, and this of nur.
<tsujp69> true, and so having a decoupled overlay that references some hash would be against that
<tsujp69> as is including every single possible overlay vs just doing it yourself
<srhb> Right.
cfricke has joined #nixos
dansho_ has quit [Ping timeout: 264 seconds]
<srhb> It's a balance and there's pros and cons. I lean in the "yay monorepo" camp.
<srhb> Flakes might slightly alleviate the decoupling a little, I'll have to ask: "what's your lockfile" instead of: "what's your nixpkgs commit", and I'll have to check a lot of permutations instead, but the gain is some flexibility.
<tsujp69> where can I read more about flakes?
<srhb> Honestly there's no great single source right now. I'd advice to hold off, but otherwise: The wiki, the tweag blog posts.
<tsujp69> Will wait until stable then
da_dada has quit [Ping timeout: 260 seconds]
da_dada has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #102346 → rsync: disable the bundled zlib explicitly → https://git.io/JTQ7j
<{^_^}> [nixpkgs] @FRidh pushed commit from @andir to staging « rsync: disable the bundled zlib explicitly »: https://git.io/JTQNl
jabster28 has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #102270 → [20.09] firefox{,-bin}: 82.0 -> 82.0.2 → https://git.io/JTH1i
<{^_^}> [nixpkgs] @andir pushed 3 commits to release-20.09: https://git.io/JTQN7
ris has joined #nixos
nschoe has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #102345 → filebot: 4.9.1 -> 4.9.2 → https://git.io/JTQ7z
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQA8
MmeQuignon has joined #nixos
<{^_^}> [nixpkgs] @marsam closed pull request #102290 → filebot: 4.9.1 -> 4.9.2 → https://git.io/JTHN1
<nschoe> Hey everyone :)
<nschoe> I just wanted to know if it was also okay for NixOS, or there was a better, declarative way in configuration.nix.
<nschoe> I'm using i3 and xfce (as desktop manager only). I works all right, but I'd like to install icons and themes (namely https://github.com/robertovernina/NordArc). Now the "normal linux" way is to put icons and themes in either ~/.icons and ~/.themes or ~/.local/share/themes and ~/.local/share/icons.
<nschoe> (I am not using home-manager)
<matthewcroughan_> I have a feeling that home manager would be the way to handle that declaratively nschoe
<nschoe> matthewcroughan_: yeah I figured as much. But I'm not yet ready to switch to home-manager. I will, but later.
<siraben> Alternatively... I could just drop the entire Qt provided toolchain and see what happens if I go with Nixpkgs's...
<{^_^}> [nixpkgs] @marsam merged pull request #102339 → gcsfuse: 0.30.0 -> 0.32.0 → https://git.io/JTQH6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQAQ
<tsujp69> How can I become a nixOS team member? I realise that is a broad question so for example I know as a package maintainer I just have to e maintaining a few packages and then I can apply what aobut other things
<tsujp69> NixOS is something I feel I can sink my teeth into
<tsujp69> feels end-game
<nschoe> But I see that we have soem packages like xfce.xfce4-icon-theme and papirus-icon-theme so maybe I can look at their packages and see how they are "properly installed"?
<{^_^}> [nixpkgs] @marsam merged pull request #102337 → fly: 6.6.0 -> 6.7.0 → https://git.io/JTQSw
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQAh
<{^_^}> [nixpkgs] @marsam merged pull request #102327 → chezmoi: 1.8.7 -> 1.8.8 → https://git.io/JTQ64
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQxI
<matthewcroughan_> tsujp69: with flakes, you may find that unnecessary
<matthewcroughan_> maintaining packages can now be done outside of the nixpkgs git repo because of flakes
<{^_^}> [nixpkgs] @marsam merged pull request #102324 → cargo-outdated: 0.9.11 -> 0.9.13 → https://git.io/JTQr7
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQxs
<__monty__> Not as if they couldn't pre-flakes.
<matthewcroughan_> you may want to, for whatever reason, help upstream, but there's no hard requirement to anymore, as previously there kind of was.
<__monty__> And you may still want the binary caching that comes with being part of nixpkgs.
<matthewcroughan_> __monty__: yeah, but it was very biased pre-flakes?
<matthewcroughan_> now anyone's github url is as good as nixpkg itself, it is equal.
<__monty__> Let's agree to disagree.
<matthewcroughan_> I thought anyone could host their own cache now too?
<{^_^}> [nixpkgs] @marsam merged pull request #102328 → compactor: 0.12.2 -> 1.0.0 → https://git.io/JTQiP
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQx2
<__monty__> That's always been possible.
<__monty__> Both with hydra and more recently cachix.
<matthewcroughan_> Hmm, so what's the real point of flakes then?
<{^_^}> [nixpkgs] @marsam merged pull request #102314 → tmuxp: 1.5.6 -> 1.5.8 → https://git.io/JTQW6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQxK
<__monty__> Flakes kinda include your configuration in the built system.
<matthewcroughan_> ah yes, declarative channels basically right?
<matthewcroughan_> channels were not declarative, they were imperative, so therefore wrong
<FRidh> management of nix expressions so it is *easier* to have them distributed. It has been possible in the past, but less convenient.
<__monty__> Yeah, many UX improvements all around.
<matthewcroughan_> and the flake.lock means reproducible build context over time in a repo
<srhb> That was also always possible, though perhaps less practical
<FRidh> flake.lock now contains parts that otherwise should have been in your other nix expressions in the repo
<srhb> Though there are those of us that consider the flakes approach less practical :)
<matthewcroughan_> I watched some talk about how it wasn't practical, and there was some third party tool to handle it
<FRidh> niv
<{^_^}> [nixpkgs] @marsam merged pull request #102326 → checkstyle: 8.36.2 -> 8.37 → https://git.io/JTQKN
<matthewcroughan_> yes
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQx5
freezeboy has joined #nixos
<freezeboy> hi, I' currently struggling with a python program which test wants to set the locale and apparently, it breaks, anyone had this experience ?
cfricke has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @marsam merged pull request #102291 → facter: 3.14.13 -> 3.14.14 → https://git.io/JTHAV
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQpI
<{^_^}> [nixpkgs] @marsam merged pull request #102283 → geekbench: 5.2.3 -> 5.2.5 → https://git.io/JTHHV
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQpY
<{^_^}> [nixpkgs] @marsam merged pull request #102289 → fnotifystat: 0.02.06 -> 0.02.07 → https://git.io/JTHNm
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQpl
nschoe has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #102292 → flyway: 6.5.5 -> 7.1.1 → https://git.io/JTHxK
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQpu
dansho_ has joined #nixos
jabster28 has quit [Ping timeout: 240 seconds]
jabster28 has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alp has joined #nixos
ninjin has quit [Ping timeout: 240 seconds]
ninjin has joined #nixos
malook has joined #nixos
CyberManifest has joined #nixos
malook has quit [Client Quit]
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #102299 → cde: update expression → https://git.io/JTQUf
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JTQjn
<{^_^}> [nixpkgs] @marsam merged pull request #102288 → fet-sh: 1.7 -> 1.8 → https://git.io/JTHF3
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JTQjR
<symphorien[m]> <freezeboy "hi, I' currently struggling with"> Add glibcLocales as buildInputs ?
<freezeboy> symphorien[m] checkInputs are enough or build too ? (the bug happens during the tests)
jabster28 has quit [Quit: ZNC 1.8.2 - https://znc.in]
CyberManifest is now known as anger
<symphorien[m]> Yes you're right
<freezeboy> looks good in checkInputs, thank you
FRidh has quit [Remote host closed the connection]
jabster28 has joined #nixos
<supersandro2000> if it is required at runtime and not pulled in, put it in propogatedBuildInputs
anger is now known as disgusted
<{^_^}> [nixpkgs] @peterhoeg merged pull request #102331 → vkquake: 1.04.1 -> 1.05.0 → https://git.io/JTQ1q
<{^_^}> [nixpkgs] @peterhoeg pushed commit from @gnidorah to master « vkquake: 1.04.1 -> 1.05.0 »: https://git.io/JT7v0
gnidorah has quit [Quit: Connection closed for inactivity]
<freezeboy> supersandro2000 it is really just in the launch script of the test so I guess it is not necessarily useful
jabster28 has quit [Ping timeout: 240 seconds]
jabster28 has joined #nixos
FRidh has joined #nixos
<freezeboy> anyway the test suite looks broken :(
<tsujp69> should `mkDerivative` only be used with `make`-invocable builds?
alexherbo2 has joined #nixos
<tsujp69> This is for a package definition
<tsujp69> `zig build` doesn't have a helper _yet_ so I am just wondering how I should do this
knupfer1 has joined #nixos
Jae[m] has joined #nixos
nschoe has joined #nixos
<tsujp69> `mkDerivation`*
knupfer1 is now known as knupfer
<freezeboy> I think it is the generic function
zupo has joined #nixos
joey has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #102348 → setuptoolsCheckPhase: allow providing arguments via setuptoolsCheckFl… → https://git.io/JT7fS
joey_ has quit [Ping timeout: 240 seconds]
<pinpox> Hello, I'd like to create a package (and pull-request) for a nodejs application. Could anyone give me simple example on packaging node apps?
<Jae[m]> Hey, I don't know if anyone saw it but Thunderbird has timed out during the build https://hydra.nixos.org/build/129299339
<pinpox> It's a terminal tool, I suppose there are other examples of similar packages, any hint on what's "similar" would help me. The app in question is this: https://github.com/faressoft/terminalizer#installation
<freezeboy> change the content of package.json file, run generate-dependencies, maybe some patches in default.nix and it is done
<pinpox> freezeboy: Thanks, will read through that! shouldn't be too difficult
<pinpox> btw, is stuff like this documented anywhere?
<pinpox> The manual is sometimes a bit too broad for specific tasks, even though there might be everything needed in there in theory
zupo has quit [Ping timeout: 264 seconds]
<freezeboy> last time I checked it wasn't in fact I took the pattern from spacegun package :D
alp has quit [Ping timeout: 268 seconds]
<pinpox> I have written down a bit of nix-stuff in my personal blog, I just feel this could help much more people if it were at some official source of information.
<siraben> Is it a good idea to pin nixpkgs in my NixOS/home-manager configuration?
<pinpox> siraben: I personally find it too much work to update the pinned version on my personal notebook, that is why I don't. Not meant as a general recommendation though
<siraben> But I could use niv to make it easy right?
<{^_^}> [nixpkgs] @mweinelt opened pull request #102349 → zigbee2mqtt: 1.15.0 -> 1.16.0 → https://git.io/JT7Jb
sangoma has quit [Ping timeout: 264 seconds]
<siraben> I wonder what's the point of `nix-channel --update` then, hm.
<gchristensen> if you're not using channels, there isn't a need for nix-channel --updat
dansho_ has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @flokli merged pull request #101886 → systemd: introduce more options for a more minimal build → https://git.io/JTPpZ
<{^_^}> [nixpkgs] @flokli pushed 29 commits to staging: https://git.io/JT7Ug
<pta2002> https://gist.github.com/pta2002/7cff3ebd1cbc63572661b8c145599073 i have this on .config/nixpkgs/config.nix
<pta2002> how do i apply this
<pta2002> i've gotten home-manager to work, just curious about this way
Chiliparrot has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #102350 → nixos/tests/prometheus: remove invalid thanos config flag → https://git.io/JT7UN
jabster28_ has joined #nixos
<tsujp69> how can I use a custom version of a package in the nativeBuildInputs for another package?
jabster28 has quit [Ping timeout: 268 seconds]
<tsujp69> I want to compile a package which requires a very specific version of a package not in nixpkgs
<tsujp69> Do I callPackage and then the package definition inside nativeBuildInputs?
<tsujp69> That would require `nativeBuildInputs = with pkgs; [ ]` right?
<{^_^}> [nixpkgs] @ryantm merged pull request #102298 → gnu-pw-mgr: 2.4.2 -> 2.7.4 → https://git.io/JTQJc
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JT7Ik
orivej has quit [Ping timeout: 272 seconds]
knupfer has quit [Ping timeout: 268 seconds]
Henson has joined #nixos
<etu> tsujp69: The package used in nativeBuildInputs in the package you want to change is probably getting that dependency as an input to the function
<etu> tsujp69: Then you should be able to use attributeName.override to change some of the inputs
<tsujp69> im confused by that etu
<Henson> I'm having an issue having upgraded from NixOS 20.03 to 20.09. I've got an Intel video card and have had no problems with 20.03. Upon upgrading to 20.09 display-manager.service wouldn't start, with xorg having a "/dev/dri/card0: failed to set DRM interface version 1.4: Permission denied" error....
<etu> tsujp69: The { ... }: at the top of a nix file shows you that it's a function declaration, and the params there are inputs to that function
<tsujp69> To name names, I'm trying to build a wm that needs a version of zig from the master branch, I have my own `zig-head.nix` which works and compiles and installs, now I want my `wm.nix` to use my `zig-head.nix` as it's `nativeBuildInputs` for `zig`
<tsujp69> I see
<Henson> I gave up one night and started trying the next day with a minimal NixOS config and gradually enabled things. It eventually worked with the original config fully reproduced...
<Henson> I booted back into 20.03 to try something and now 20.09 isn't working anymore. Does anybody have any suggestions?
<Henson> after the 20.09 config worked I used it for a week and it was totally fine.
<etu> tsujp69: If I wanted to build that with a very specific GTK version, I could do: (stupidterm.override { gtk = myGtk; })
<etu> tsujp69: And that would work, because the gtk attribute is passed as an argument to that function
jabster28_ has quit [Ping timeout: 265 seconds]
<freezeboy> any idea why, when splitting to mutliple outputs the $dev/lib/cmake/*.cmake files are not pointing to $dev but still $out ? (no custom rules to generate these files)
<tsujp69> So etu `nativeBuildInputs = [ (stupidterm.override { gtk = myGtk; }) ];` for instance
<tsujp69> and I can further do `gtk = (import ./my-gtk.nix)`?
<etu> tsujp69: Nah, that override would happen in your configuration.nix where you install that package
<tsujp69> giving `nativeBuildInputs = [ (stupidterm.override { gtk = (import ./my-gtk.nix); }) ];``
<tsujp69> Ah, well for now I am testing it in nixpkgs
<etu> ah, I see
<tsujp69> How do I do this wrt nixpkg then?
<etu> you can do overrides in nixpkgs as well, but we tend to avoid that
<etu> But for testing it's fine
jabster28 has joined #nixos
<etu> tsujp69: What do you want to change?
<tsujp69> would that be like 15.10.2.5 from here https://nixos.org/manual/nixpkgs/stable/#chap-trivial-builders
<tsujp69> So currently in nixpkgs there is zig 0.6.0 but recently zig had an issue with llvm or something I am not sure and the long story short is the creator of the language Andrew Kelly is very sorry and this will be fixed in Zig 0.7.0 but until then for all not-old Zig stuff we should be using the HEAD of the master branch of zig. So I have a
<tsujp69> `zig-head.nix` package which builds zig from the head and installs it and that's done and dusted as of earlier today
<tsujp69> Now I want to compile a tiling window manager that is written in zig, and this wm needs the master branch of zig to do so
Jackneill has quit [Ping timeout: 272 seconds]
<tsujp69> But nixpkgs doesn't have that type of zig, it only has zig 0.6.0 (which is fine that's the latest release) but in this case I need to `nix-build` this wm with my `zig-head.nix` file
<tsujp69> So that its compiled with the correct zig version
<etu> tsujp69: I see
sangoma has joined #nixos
Neo-- has joined #nixos
<etu> tsujp69: Then you probably want to use .overrideAttrs
<etu> tsujp69: nativeBuildInputs = [ (zig.overrideAttrs( oa: { src = fetchFromGitHub { ... }; })) ];
jabster28 has quit [Ping timeout: 272 seconds]
<etu> tsujp69: That would override the src attribute of zig, then you can specify where to fetch it from and get a different zig put into that nativeBuildInputs
<tsujp69> I cannot only do that since I also need to set doCheck to false in that case, there is some other weird issue with XDG_CONFIG_HOME with nix (its an open issue on zig's github)
<tsujp69> The total diff is `doCheck = false` and then of course just a different `rev` within `fetchFromGitHub`
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<etu> Then add "doCheck = false;" alongside with src
<tsujp69> I have that in `zig-head.nix` is there a way to pass that file in instead of copy-pasting it into `src = ...`
<tsujp69> oh ok nice
zarco has joined #nixos
<tsujp69> food just became ready and I know if I don't stop now I'll end up eating a cold meal again, such is the tinkerers life ;)
<tsujp69> I'll do this after dinner and post back with any problems
<tsujp69> Thank you for the help thus far etu
<etu> tsujp69: :)
<etu> tsujp69: You've come quite far since your install this (for me) morning ;)
<tsujp69> nix is great fun, I've just been looking through the nixpkg repo and trying out various snippets from the docs
<tsujp69> I really should read them in-order sometime though hehe
disgusted is now known as CyberManifest
Henson has joined #nixos
katrin has quit [Quit: ZNC 1.7.5 - https://znc.in]
zupo has joined #nixos
katrin has joined #nixos
<Henson> I figured it out. I had to explicitly specify the driver to use services.xserver.videoDrivers = [ "intel" ]; Now 20.09 works but 20.03 doesn't, haha. Probably just a driver autodetection and conflict issue between the two versions.
sangoma has quit [Ping timeout: 258 seconds]
jabster28 has joined #nixos
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #102351 → digikam: fix double wrapping → https://git.io/JT7Ym
<aasg> supersandro2000 (IRC): you around? Got a bunch of new fixes in #102230
<{^_^}> https://github.com/NixOS/nixpkgs/pull/102230 (by AluisioASG, 1 day ago, open): retroarch: fix build on Darwin
davidv7 has quit [Ping timeout: 240 seconds]
<supersandro2000> aasg: yes
bennofs1 has joined #nixos
<supersandro2000> nixpkgs-review is running
Fare has joined #nixos
jabster28 has quit [Ping timeout: 264 seconds]
<jophish> nix-prefetch-url is failing with an error message I don't understand: https://github.com/expipiplus1/update-nix-fetchgit/pull/41/checks?check_run_id=1338562437#step:10:490
<jophish> I'm running nix-prefetch-url mirror://hackage/blah/blah
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
noudle has quit []
<{^_^}> [nixpkgs] @evax opened pull request #102352 → python3Packages.ppscore: init at 1.1.1 → https://git.io/JT738
<{^_^}> [nixpkgs] @KaiHa opened pull request #102353 → [20.09] git-mediate: 1.0.8 -> 1.0.8.1 → https://git.io/JT73R
ericsagn1 has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
zupo_ has joined #nixos
mullein[m] has left #nixos ["User left"]
philr has quit [Ping timeout: 268 seconds]
zupo has quit [Ping timeout: 256 seconds]
tv has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @bhipple merged pull request #102336 → discrete-scroll: added myself as maintainer → https://git.io/JTQSI
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JT7Z0
<{^_^}> [nixpkgs] @bhipple merged pull request #102325 → popeye: 0.8.10 -> 0.9.0 → https://git.io/JTQoW
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JT7Zu
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #102354 → extra-container: init at 0.5 → https://git.io/JT7Zi
<yurb> hm, I can't find a way to set the io scheduler via configuration.nix (i.e. set `/sys/block/sda/queue/scheduler`)
<freezeboy> do you know how to list all the buildtime dependencies of a nix expression ?
cosimone has joined #nixos
<freezeboy> in my ci, I would like to isolate the build of the deps from the build of my project
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Jae[m]> Anyone can restart the build of thunderbird? https://hydra.nixos.org/eval/1623393?filter=thunderbird&compare=1623258&full=
<symphorien[m]> > hm, I can't find a way to set the io scheduler via configuration.nix (i.e. set `/sys/block/sda/queue/scheduler`)
<symphorien[m]> I think you are supposed to use a udev rule
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:3
<yurb> symphorien: thanks, also found this - https://github.com/NixOS/nixpkgs/issues/57577
<{^_^}> #57577 (by CMCDragonkai, 1 year ago, open): Request to add options for configuring the IO scheduler for NixOS
<supersandro2000> freezeboy: nix-tree $(nix-instantiate -A package) ?
<pta2002> Does anyone here run nixos on the pi3
<pta2002> it's been slow, nix-env -i takes over 20 minutes (!!!) and nix-shell -p [something] takes a few minutes to run too
<freezeboy> supersandro2000 didn't know this command, I check if the output is nice, thank you
<{^_^}> [nixpkgs] @Ma27 merged pull request #101553 → Nextcloud: fix ldap integration → https://git.io/JTVp1
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/JT7nX
Henson has quit [Ping timeout: 246 seconds]
jumper149 has joined #nixos
<FRidh> pta2002: always use -iA, not -i
<pta2002> yeah but -iA is quite slow too
<pta2002> actually
<pta2002> not what i meant
<pta2002> it doesn't seem to do what i want it to do
<pta2002> like, nix-env -iA htop
<pta2002> doesn't find htop
<pta2002> trying to install arion, it also just completely hangs
<pta2002> when it gets to "evaluating file '/nix/store/03g5z9d5pwbsffjw7y778cx03fxwawp1-cabal2nix-arion-compose/default.nix'"
tv has joined #nixos
<pta2002> seems like it's pinning hte cpu at 100%
<pta2002> idk i'll see how long this takes
<LnL-> you need to prefix attributes with their channel name
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-20.09: https://git.io/JT7cP
<LnL-> or eg. nix-env -f '<nixpkgs>' -iA htop
<pta2002> ahh
<freezeboy> supersandro2000 hum this command also give me the main output, and it looks like it runs nix path-info
<pta2002> yeah that latter one worked
<pta2002> LnL-: would prefixing mean nix-env -iA nixpkgs.htop?
<pta2002> because i tried that and it did not work
<LnL-> depends on the platform, on nixos the channel is named nixos
<LnL-> my example works everywhere
<supersandro2000> pta2002: I know a Pi4 with NixOS. In sort: never use unstable channel.
<pta2002> LnL-: so if i didn't want to do -f, i'd do nix-env -iA nixos.htop?
<pta2002> sorry im new to this
sangoma has joined #nixos
<pta2002> supersandro2000: yea im on stable
<supersandro2000> the one I know freezes everytime anything unstable is done with it
<LnL-> yeah that's equivalent (assuming it's on nixos)
<pta2002> saw some warnings about not even stable being perfect on the pi, so i decided to not risk the unstable
<pta2002> i moved hte pi to a better power supply and now it seems to be chugging along a lot better
<pta2002> though ram is full and an sd card makes for terrible swap
<pta2002> need to get myself one of those 8GB pi 4s
pushqrdx has joined #nixos
<pushqrdx> can someone help me understand where i can install a patched binary firmware that i normally install under /usr/lib/firmware, it's supposed to patch some alsa-firmware binaries for glitchy audio on ca0132 chip
<pushqrdx> i'd really appreciate any help
<pushqrdx> what i tried already is creating a derivation for it and placing it beside configuration.nix, then specifying hardware.firmware in my config
Neo-- has quit [Ping timeout: 260 seconds]
alp has joined #nixos
<pushqrdx> it appears to have copied the binaries under /nix/var/nix/<current gen>/lib/firmware however the audio is still glitchy as if it's not applied
CyberManifest has quit [Quit: Leaving...]
<{^_^}> [nixpkgs] @Mic92 opened pull request #102355 → systemd: 246.6 -> 247-rc1 → https://git.io/JT7W8
<{^_^}> [nixpkgs] @freezeboy opened pull request #102356 → python3Packages.pyside,python3Packages.pysideTools,python3Packages.pysideShiboken,pysideApiExtractor,pysideGeneratorrunn… → https://git.io/JT7W4
<{^_^}> [nixpkgs] @marsam opened pull request #102357 → skim: 0.9.1 -> 0.9.2 → https://git.io/JT7Wi
cosimone has quit [Quit: cosimone]
Rusty1 has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
fl0_id has quit [Quit: ZNC]
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37179 has joined #nixos
endformationage has joined #nixos
troydm has joined #nixos
cr4y1 has joined #nixos
<aasg> supersandro2000 (IRC): another update, this time I marked the ones I didn't yet get to as broken so nixpkgs-review doesn't try to build them
<NieDzejkob> pushqrdx: is the original firmware normally present in /nix/var/nix/<current gen>/lib/firmware?
<pushqrdx> yes
<aasg> The MAMEs should work as well since I copied the dependencies from our MAME derivation
<pushqrdx> it's part of alsa-firmware
<pushqrdx> NieDzejkob: but after doing the derivation i noticed that the 2 binaries are now linked to my patch, however they aren't loaded because i still have broken audio
<pushqrdx> for some reason
<NieDzejkob> hmm. Maybe alsa-firmware is getting pulled in somewhere else too?
<pushqrdx> can i uninstall alsa-firmware
cr4y1_ has joined #nixos
<pushqrdx> just to give it a try though i am sure it's not the way
<NieDzejkob> not really, that's not how nix works
<NieDzejkob> I'd want to figure out whether the original alsa-firmware is in the closure of your current generation
fl0_id has joined #nixos
<NieDzejkob> also consider making your modified alsa-firmware an overlay: https://nixos.wiki/wiki/Overlays
<{^_^}> [nixpkgs] @Mic92 closed pull request #102348 → setuptoolsCheckPhase: allow providing arguments via setuptoolsCheckFl… → https://git.io/JT7fS
<pushqrdx> what should i do then, been trying to fix that audio thing for almost half a day now so frustrating
orivej has joined #nixos
<pushqrdx> i just want audio, then i'll feel good to optimize the nix config,
<NieDzejkob> I mean, the overlay is what has a chance of making it work in the first place
<NieDzejkob> it will replace the original alsa-firmware and anything that wants to use it, even outside of the /lib/firmware symlink, will use your modified version
cr4y1 has quit [Ping timeout: 260 seconds]
<pushqrdx> but will it selectively just replace those 2 files?
<pushqrdx> and leave the rest as is
<NieDzejkob> if you write your derivation like that, then yes
<pushqrdx> because in normal installations that is what i normally do, just drop the 2 bins in usr/lib/firmware
pushqrdx has quit [Quit: pushqrdx]
werner291 has joined #nixos
<{^_^}> [nixpkgs] @mweinelt opened pull request #102359 → openldap: add patch to fix nullptr dereference in slapd → https://git.io/JT74y
Henson has joined #nixos
jonringer has joined #nixos
kueckieben[m] has quit [Quit: Idle for 30+ days]
demoulin[m] has quit [Quit: Idle for 30+ days]
<{^_^}> [nixpkgs] @FRidh merged pull request #102356 → python3Packages.pyside,python3Packages.pysideTools,python3Packages.pysideShiboken,pysideApiExtractor,pysideGeneratorrunn… → https://git.io/JT7W4
<{^_^}> [nixpkgs] @FRidh pushed 6 commits to master: https://git.io/JT7BS
<{^_^}> [nixpkgs] @asbachb opened pull request #102360 → openjdk:openjdk8: 1.8.0_265 -> 1.8.0_272 → https://git.io/JT7Bd
g-w1 has joined #nixos
<{^_^}> [nixpkgs] @jonringer closed pull request #100389 → [Draft] Make python310Packages usable → https://git.io/JTt4i
Henson has quit [Ping timeout: 256 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #nixos
<fendor> can I generate a dockerfile for a nix expression?
g-w1 has left #nixos ["WeeChat 2.3"]
<simpson> fendor: Trivially, you can use `FROM nixos/nix`, and then COPY arbitrary Nix expressions into the container and RUN nix-env or nix-build.
<simpson> But perhaps you had something more intricate in mind?
werner291 has quit [Remote host closed the connection]
<fendor> Not sure what I had in mind is really sensible, I have a project that can be built with nix, a friend wants to deploy via docker and I want would like that the container only includes the required run-time dependencies and no build dependenices
<simpson> Ah, perhaps you'd like the nixpkgs support for building Docker-compatible containers directly: https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTools
kreyren has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @ehmry merged pull request #102212 → ocamlPackages.mirage-profile: init at 0.9.1 → https://git.io/JT9dD
<{^_^}> [nixpkgs] @ehmry pushed 2 commits to master: https://git.io/JT70D
<{^_^}> [nixpkgs] @ehmry merged pull request #102330 → ocamlPackages.checkseum: 0.1.1 → 0.2.1 → https://git.io/JTQXf
<{^_^}> [nixpkgs] @ehmry pushed 3 commits to master: https://git.io/JT705
<tsujp69> etu I also need to pass llvmPackages = llvmPackages_11
<tsujp69> I was doing this before in configuration.nix via (callPackage) ubt I am unsure how to do it with that inline overrideAttrs
<fendor> simpson, good idea, thanks!
<{^_^}> [nixpkgs] @ehmry merged pull request #101738 → ocamlPackages.gapi_ocaml: 0.3.19 → 0.4.1 → https://git.io/JToF0
<{^_^}> [nixpkgs] @ehmry pushed 2 commits to master: https://git.io/JT70h
<etu> gchristensen: Do you remember the PNG you used to describe which overrides which was good for different things on NixCon last year?
<{^_^}> [nixpkgs] @ehmry merged pull request #93826 → ocamlPackages.bitstring: 3.0.0 -> 3.1.1 → https://git.io/JJBZ2
<{^_^}> [nixpkgs] @ehmry pushed commit from @r-ryantm to master « ocamlPackages.bitstring: 3.0.0 -> 3.1.1 »: https://git.io/JT7EL
<supersandro2000> I get a few "error: unexpected end-of-file" lately while doing nix-build with a remote worker. Anyone any idea? I only found really old issues
<supersandro2000> mixing nix 2 and 3 btw
sangoma has joined #nixos
<etu> tsujp69: I think you can find that link from gchristensen interesting :)
<{^_^}> [nixpkgs] @ehmry merged pull request #102132 → ocamlPackages.lacaml: 11.0.6 → 11.0.8 → https://git.io/JTyKp
<{^_^}> [nixpkgs] @ehmry pushed commit from @vbgl to master « ocamlPackages.lacaml: 11.0.6 → 11.0.8 »: https://git.io/JT7E2
<tsujp69> slide 21 and 22
<tsujp69> I swear I saw some syntax earlier that was like `{ ... }{ arg = value; }`
mrueg has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<freezeboy> anyone knows if it is possible to ask go to compile the dependencies in order ? (or add more info in the logs)
<freezeboy> one of the deps is using pkg-config to find python2 but I don't know who is guilty
<supersandro2000> what are you trying to build?
<tsujp69> I can't get it :\ etu, `cannot coerce a function to a string` for my attempted override
<tsujp69> from `root/nixpkgs/pkgs/stdenv/generic/make-derivation.nix` which I haven't touched
<etu> tsujp69: Pastebin the file you're editing?
<supersandro2000> are you missing () arround a functon to add strings?
jess has quit [Quit: brb]
<{^_^}> [nixpkgs] @xy2iii opened pull request #102362 → simplescreenrecorder: 0.3.11 -> 0.4.2 → https://git.io/JT7ul
<tsujp69> http://ix.io/2CHK etu
jess has joined #nixos
timotheel-f[m] has left #nixos ["User left"]
<etu> tsujp69: You're trying to make an overlay into those deps
<{^_^}> [nixpkgs] @r-ryantm opened pull request #102363 → cloud-utils: 0.31 -> 0.32 → https://git.io/JT7ug
<etu> tsujp69: I haven't evaled this, but maybe something like that: http://ix.io/2CHL/nix
<etu> tsujp69: Remove "/nix" from the end to get it as plaintext
<{^_^}> [nixpkgs] @veprbl merged pull request #102329 → mame: 0.225 -> 0.226 → https://git.io/JTQPd
<{^_^}> [nixpkgs] @veprbl pushed commit from @gnidorah to master « mame: 0.225 -> 0.226 (#102329) »: https://git.io/JT7uS
<aasg> Question: the Nixpkgs manual says "[super] should be used either to refer to packages you wish to override, or to access functions defined in Nixpkgs", and calls out callPackage specifically
<aasg> but grahamc's talk uses self.fetchzip, and I see others use self.callPackage as well
<tsujp69> Ah yeah so when I tried this before I got `called without required argument 'owner'` so overrideAttrs isn't passing through the rest of the attributes, no?
<aasg> so does it matter if I use super.callPackage or self.callPackage? I guess the latter will use dependencies overriden in later overlays, but maybe it does that regardless?
<tsujp69> It's stripping them and only setting what is explicitly there etu (and see above message forgot to tag)
<gchristensen> aasg: my rule of thumb is use self until you hit an error, then change that one use of self to super.
<gchristensen> until you hit a recursion error*
<etu> tsujp69: ah, no, you have to provide all the attrs to fetchFromGitHub
<tsujp69> Ooooooh
Neo-- has joined #nixos
Enderger has joined #nixos
<tsujp69> I assumed it was a "will pass through everything that existed and replace anything that did exist with what you set now" whereas it's more of a clean-slate
<tsujp69> etu ^
<etu> yeah, it does, but not recursively :)
<tsujp69> Ah, always good to limit recursion hehe
<tsujp69> Something something infinite something
<etu> Because it's actually not that simple. fetchFromGitHub is a function and the {} is an attribute set sent as an argument to that function
<etu> So what src contains isn't that attribute set, it's the result of that function
<tsujp69> I see
FRidh has quit [Remote host closed the connection]
<Enderger> Hi, I am trying to configure full system backups for my NixOS machine over WebDav, however to do so I need to store credentials in /etc/davfs2/secrets. Is there any way to do this using the configuration.nix file?
davidv7 has joined #nixos
Acou_Bass has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos
<gchristensen> Enderger: yes but it isn't a good idea, because the secret credentials will be publicly readable if you do it via Nix
alp has quit [Ping timeout: 260 seconds]
growpotkin has joined #nixos
<Enderger> Ok, thanks. Is there any way to store them securely, as I intend to have the script run via a cron job and cannot interactively type in the credentials myself.
sangoma has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @FRidh opened pull request #102364 → kdenlive: fix build → https://git.io/JT7z5
mmohammadi9812 has quit [Quit: Quit]
sangoma has joined #nixos
jess has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jonringer opened pull request #102365 → glslviewer: 2019-04-22 -> 1.6.8, use python3 → https://git.io/JT7gt
jess has joined #nixos
cole-h has joined #nixos
Acou_Bass has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #101984 → python37Packages.css-parser: 1.0.5 -> 1.0.6 → https://git.io/JT1js
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « python37Packages.css-parser: 1.0.5 -> 1.0.6 »: https://git.io/JT7gP
<simpson> Is there a documented approach to having Nix run benchmarks? I am okay with the precondition that I am responsible for quieting the machine beforehand, and that multiple benchmarks running at once may interfere with each other.
mrueg has joined #nixos
<{^_^}> [nixpkgs] @mweinelt opened pull request #102366 → youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT72m
hyper_ch2 has quit [Read error: Connection reset by peer]
Fare has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #102284 → google-app-engine-go-sdk,google-cloud-sdk,google-compute-engine: Refactor to python3 → https://git.io/JTHHQ
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JT722
evils has joined #nixos
cransom has quit [Quit: WeeChat 2.7.1]
<{^_^}> Channel nixpkgs-20.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1c50dc407cf (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.09-darwin)
<{^_^}> [nixpkgs] @teto opened pull request #102367 → neovim: dont wrap when configure is null → https://git.io/JT72p
pushqrdx has joined #nixos
cransom has joined #nixos
domogled has joined #nixos
<pushqrdx> i have a couple of questions as i am kinda lost on what is doing what in nixos
<pushqrdx> so if i have nixos why would i need home-manager?
<hyper_ch> push: nixos handles services and insttalled programs
<hyper_ch> home-manager handles (some) of your dot files
<hyper_ch> like settings for certain programs and stuff
<pushqrdx> but it handles installed programs too
<pushqrdx> for user
<pushqrdx> afaik home manager replicates what nixos does on a user level, which is nice for other distros but is this needed if am already running nixos
<hyper_ch> you can install programs globally or as user
<woffs> home-manager is for crazy nix freaks who want to define even the contents of their dotfiles in nix language
<hyper_ch> for some things like .tmux.conf or .bashrc it's nice
<pushqrdx> alright so it's just that it replicates the same thing that nixos does at OS level, but only for my home directory
<pushqrdx> having generations etc
<pushqrdx> but afaik nixos can do what home manager does already right? like i can specify user specific packages perhaps even stuff in home dir?
<srhb> pushqrdx: It cannot, really.
<{^_^}> [nixpkgs] @bhipple opened pull request #102368 → pythonPackages.plaid-python: 6.0.0 -> 7.1.0 → https://git.io/JT7a2
<srhb> pushqrdx: The big difference is that NixOS does not know how to link things into your homedir at activation time
<srhb> pushqrdx: Which is exactly the fundamental building block that home-manager _does_ know how to do.
<pushqrdx> but regarding user specific programs nixos does have that functionality right?
<srhb> pushqrdx: Yes.
<Ke> hmm, your activation script can run arbitrary code?
<pushqrdx> ok things are getting a bit more clear to me
<srhb> pushqrdx: It does so by manipulating /etc/
<gchristensen> Ke: packages don't have activation scripts
mmohammadi9812 has joined #nixos
<pushqrdx> can someone give me a quick nix stack tourist overview, like there's 22 nix- tools available, i just want to know (nix vs nix-shell vs nix-store vs nix-env)
da_dada has quit [Ping timeout: 272 seconds]
<srhb> pushqrdx: Your best bet is the manual really. But in short, nix-build for building, nix-shell for shells, nix-store for manipulating the store (the names are pretty accurate)
<srhb> pushqrdx: nix-env is more tricky, it's for manipulating profiles ("env", I guess)
da_dada has joined #nixos
<pushqrdx> what about just nix
<srhb> It's an experimental interface.
<srhb> I recommend not using it except maybe for `nix search` -- searching packages.
<woffs> and nix show-derivation
<pushqrdx> so the main reason i discovered nix was trying to get a handle on my all over the place and sometimes clashing dependencies, my ultimate goal is to have a per directory mini environments where i can throw all kinds of garbage there without polluting my system
<pushqrdx> so my OS is kept clean, and each project is self contained
<gchristensen> yeah, nix-shell is great for that
orbekk has quit [Ping timeout: 264 seconds]
<pushqrdx> so nix-shell is the thing responsible for giving me a directory specific shell where i can do what i described?
<gchristensen> ye
<pushqrdx> nix-env is my user environment (a more general scope)
<pushqrdx> where things specified by nix-env will be available inside nix-shells?
<gchristensen> it may be surprising that most nixos users don't know how to use nix-env, because they don't use nix-env for anything
<MichaelRaskin> nix-env is cool for some advanced things, and -i / -iA is just doing things slightly wrong anyway
<pushqrdx> what about quickly installing a user dependency without rebuilding a generation, i think nix-env does that
<MichaelRaskin> Why do you want to install it? Maybe you just want to _use_ it?
<MichaelRaskin> Then nix-shell
<woffs> nix-env -i / -iA leads to chaos
<woffs> nix-env -qaPA is fine
<MichaelRaskin> Even on its own terms it leads to chaos
<pushqrdx> so to say that if i want cmake for instance, i either really want it globaly at which case i might just edit my configuration.nix to include that
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
nixy has quit [Quit: ZNC 1.8.1 - https://znc.in]
<srhb> You probably do not want it globally.
<gchristensen> again you'd probably want to use nix-shell for that
<pushqrdx> or i just want it inside a specific project so i just use nix-shell for it?
<srhb> Right.
<MichaelRaskin> -i is Really Slow, -iA uses names for installation that you cannot use with -e for removal (sometimes)
<pushqrdx> so nix-env is essentially polluting everything just as if i did apt-install on a regular distro
<srhb> pushqrdx: To use your project you need all its dependencies anyway. If it needs cmake, the shell should have cmake.
Acou_Bass has quit [Ping timeout: 272 seconds]
<srhb> pushqrdx: In the extreme, yes.
<gchristensen> my installed packages are: vim, git, file, gpg, and ripgrep
<woffs> pushqrdx: but you are right, things you need globally go into configuration.nix (on nixos) to get managed declaratively
<srhb> pushqrdx: (It's usually easier to clear up than on a regular distr though)
nixy has joined #nixos
<MichaelRaskin> I have a ton of kind of installed packages, via multiple buildEnv's via nix-build because nix-env is just not good enough to manage all that
<srhb> pushqrdx: And on the other extreme, the parts of it that deal with profile generations are quite essential, though mostly hidden from you anyway.
<pushqrdx> oh, i though nix-env -e deals with cleanly uninstalling a thing
<srhb> pushqrdx: That's also right.
<MichaelRaskin> Well, you need to give it a different name than to -iA
<srhb> pushqrdx: It's just.. Rather unnecessary most of the time :)
<MichaelRaskin> By the standards of people who stick with Nix that's already not quite clean
<srhb> pushqrdx: You lose declarative handling of things, and you don't get the ephemeral environments that the shell provides. It's an odd middle ground that's often really not that useful.
<{^_^}> [nixpkgs] @Mic92 merged pull request #102359 → [staging] openldap: add patch to fix unauthenticated nullptr dereference in slapd → https://git.io/JT74y
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/JT7wI
<srhb> That said, my nix-env -q almost always has something that I haven't decided whether I really need yet.
<srhb> ymmv
<srhb> Sometimes I just nuke it all. :-)
Acou_Bass has joined #nixos
<gchristensen> same
<{^_^}> [nixpkgs] @vbgl opened pull request #102369 → ocamlPackages.cryptokit: 1.14 → 1.16.1 → https://git.io/JT7wq
<pushqrdx> so just to make sure i got the idea, if i really want something persistent like ripgrep or neovim but for all users => systemPackage. If i want it for a specific user => user packages. but if it's a per project tool perhaps cmake for the lack of better example then it's probably nix-shell is what i need
<srhb> pushqrdx: Sounds exactly right.
<pushqrdx> and if i use cmake in multiple projects nix-shell will reuse the cmake it downloaded previously?
<srhb> pushqrdx: And I would add: home-manager is not something to be avoided.
endformationage has quit [Ping timeout: 240 seconds]
<srhb> pushqrdx: If it's the same version of nixpkgs and therefore cmake, yes
<pushqrdx> so home manager really completes the circle here, the missing part that nix-env kinda covers
<srhb> pushqrdx: Which you can ensure is the case by pinning the version of nixpkgs each shell uses.
<srhb> pushqrdx: Right
sangoma has quit [Ping timeout: 272 seconds]
<pushqrdx> sweet! i really like the control nixos gives never felt in control of dependencies like that before
<srhb> pushqrdx: Yes, it's a game changer. :)
<pushqrdx> my macOS is literally at a point where i just need to format and do a clean install because i just can't fix it
Jae[m] has left #nixos ["User left"]
<srhb> Yeah, I remember that feeling.
<pushqrdx> it's all over the place with dependencies and homebrew can't manage it anymore
<srhb> Nix is a high up-front payment, but it really is up-front and just keeps paying off, in my experience.
<pushqrdx> yeah i feel the learning curve is kinda steep, like i need to understand the nix language yet
<pushqrdx> but at least now i have a mental model of the os
<pushqrdx> thanks for the detailed explanations i really appreciate it
<srhb> The language is actually deceptively simple, I recommend this tour: https://nixcloud.io/tour/?id=1
<pushqrdx> one irritating thing about the language or maybe just because it's unfamiliar, is the let foo **in** syntax
<srhb> The conventions are harder. :)
<pushqrdx> like what is *in* is doing here idk lol
<pushqrdx> why not just let foo as a global
<srhb> pushqrdx: Yeah, nothing, except delimiting multiple "let" bindings.
zupo has joined #nixos
<pushqrdx> so *in* doesn't put the let inside the object on the rhs like i though it would hh?
Fare has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @mweinelt opened pull request #102370 → [staging-20.09] openldap: add patch to fix unauthenticated nullptr dereference in slapd → https://git.io/JT7wM
<srhb> Don't quite think I follow. It brings the bindings in scope in the expression following "in"
<pushqrdx> yeah that is what i meant, ok makes sense
nixy37179 has joined #nixos
<pushqrdx> one thing that is still confusing to me is that some people are talking about direnv
<pushqrdx> why would i need direnv instead of nix-shell
<aasg> supersandro2000 (IRC): is that the whole log for mame2016? I can't find the error there
b has joined #nixos
<MichaelRaskin> I think direnv is to invoke nix-shell in relevant directories, no?
<MichaelRaskin> There is also lorri
<dutchie> you can use direnv to automatically enter a nix-shell in that directory
<dutchie> or you can just run nix-shell each time
<dutchie> lorri+direnv is great ime
rajivr has quit [Quit: Connection closed for inactivity]
<pushqrdx> yeah i was just going to ask what the heck is lorri, too many little tools that seem important but i am missing the point of each
<pushqrdx> also flakes
<srhb> pushqrdx: One annoyance to some people is that nix-shell basically forces you into bash. With direnv you can "import" the shell environment into your current shell in a much nicer way
mallox has joined #nixos
<srhb> pushqrdx: It's really just a lot of complimentary tools
<{^_^}> [nixpkgs] @teto merged pull request #102367 → neovim: dont wrap when configure is null → https://git.io/JT72p
<{^_^}> [nixpkgs] @teto pushed to master « neovim: dont wrap when is null »: https://git.io/JT7wh
<srhb> pushqrdx: flakes are also highly experimental.
<srhb> pushqrdx: I would not worry about them.
sangoma has joined #nixos
<MichaelRaskin> I kind of worry that their rollout will break too many actually working things
<srhb> pushqrdx: And frankly with just nix-shell for dev environment, you'll be busy for quite a while without grabbing any extra nice-to-haves :-)
<srhb> pushqrdx: Besides it'll be clearer why you want them when you want them.
<MichaelRaskin> That's the only modality of worrying about flakes that makes sense without following development closely
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pushqrdx> srhb nice
<MichaelRaskin> Also, by then it will be clearer _what_ are the flakes you might want
<srhb> pushqrdx: Sorry, I didn't mean for that to come off as sounding hostile. What I meant to say was: nix-shell in itself is already _very_ powerful
<{^_^}> [nixpkgs] @dywedir merged pull request #102357 → skim: 0.9.1 -> 0.9.2 → https://git.io/JT7Wi
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JT7rG
<pushqrdx> srhb no problem i didn't interpret it as hostile at all, really glad for your help and other people helping too
<srhb> Ok, good :)
<{^_^}> [nixpkgs] @mweinelt opened pull request #102371 → [staging-20.03] openldap: add patch to fix unauthenticated nullptr dereference in slapd → https://git.io/JT7rB
<pushqrdx> the problem with nix is that searching online often leads on a very strange tangents
<srhb> Yes, that really is an issue.
<srhb> Someone™ should make a `Nix: The basics`
<MichaelRaskin> Weren't nix-pills a shot at that?
<pushqrdx> like i came across direnv, lori etc and i thought to myself wth that's a lot of mental overhead also lots of choices which as you many people might feel is overwhelming
<srhb> MichaelRaskin: A lot of it is very nixpkgs implementation specific
<srhb> Good knowledge, but centered around mkDerivation and callPackage.
<srhb> pushqrdx: Yeah... I think it's hard to avoid. But coming here is a good choice. :)
<MichaelRaskin> Well, if you want the basics of pure Nix, that's how you end up reading The Thesis
<{^_^}> [nixpkgs] @ajs124 merged pull request #102217 → exim: unconditionally build with dsearch lookups enabled → https://git.io/JT9p9
<{^_^}> [nixpkgs] @ajs124 pushed 2 commits to master: https://git.io/JT7rQ
<srhb> What I was looking for was more like.. in 2020, what is the minimal setup (but including what I see as killer features, like home-manager) where you can really reap the benefits without a thousand addons.
<srhb> Maybe home-manager is already too opinionated there
<srhb> But I just think it's so convincing :)
<sphalerite> I think it's also a case of nix being too flexible for there to be one killer usecase for everybody.
<srhb> True.
<MichaelRaskin> Meh. NixOS, home-manager. Who needs all that, we have buildEnv!
Fare has joined #nixos
<srhb> But I'm also sort of alluding to the payoff increasing the more you make the buy-in. But maybe that _is_ a wrong approach.
<srhb> In a dev shop, nix-shell in itself is often _the_ killer feature.
<MichaelRaskin> Well, you can buy in in different directions
<srhb> Sure.
hnOsmium0001 has joined #nixos
<MichaelRaskin> I somehow ended up having my own scripts slightly pre-dating nix-shell and never migrating
<sphalerite> something something myEnvFun
<pushqrdx> what nix really needs is a canonical "nix post installation guide" where it briefly tells you what we just discussed, like things you will frequently use nix-shell, configuration.nix, etc, (foot note check out home manager as it eases blablabla)
hjarvard has quit [Ping timeout: 268 seconds]
<srhb> pushqrdx: This is where I go "indeed" <wink wink nudge nudge> :-)
justanotheruser has joined #nixos
<pushqrdx> aand i feel bad for not getting the joke :))
<srhb> Heh, I was implying "you should totally write this!"
domogled1 has joined #nixos
<MichaelRaskin> There is also a running joke that people who are past the learning curve have … interesting views on what is the hard part
<pushqrdx> hhh, yes i am already adding all this to a note about nix, perhaps i will make it available after i get the hang of things
<MichaelRaskin> Especially when not having immediate feedback
<srhb> pushqrdx++
<{^_^}> pushqrdx's karma got increased to 1
<srhb> And yes, I also have a feeling I'm too far gone. :-P
domogled has quit [Ping timeout: 264 seconds]
<MichaelRaskin> Basically you selecting the quotes that were most helpful to you from the log — that's something you can do now and review/discuss later. Afterwards the state of mind will be lost
bennofs1 has quit [Ping timeout: 240 seconds]
<MichaelRaskin> pushqrdx++
<{^_^}> pushqrdx's karma got increased to 2
<pushqrdx> i really believe in assessing the difficulty of software by getting someone completely new to try it
<srhb> For sure!
<srhb> fwiw I think most seasoned nixers can appreciate that nix _is_ hard to get into. Just not _why_ that is :P
<pushqrdx> in my case the installation itself was a breeze, post installation though, pretty rough
da_dada has quit [Ping timeout: 256 seconds]
* srhb nods
domogled has joined #nixos
<MichaelRaskin> I got into it early enough that back the number of layers was tolerable
sangoma has quit [Read error: Connection reset by peer]
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
<pushqrdx> because you're just left on your own with the manual :D and searching the internet often leads you to more confusion that it solves
nixy37179 has joined #nixos
<srhb> I vaguely remember a "what now" -- being unable to create my own expressions from scratch (or maybe thinking I had to do that)
<MichaelRaskin> But I also got to it from A/B LFS with funionfs to spearate packages into union slices, and with a maths background.
domogled1 has quit [Ping timeout: 256 seconds]
<srhb> MichaelRaskin: *head explode gif*
<MichaelRaskin> I think even now reading the Nix manual still gives you enough to write a simple expression
<MichaelRaskin> A/B LFS = Automated + Beyond Linux From Scratch
<srhb> Ah, I see :)
shabius_ has quit [Quit: Leaving]
da_dada has joined #nixos
<MichaelRaskin> It's another story that right now there are fewer cases where a package is simple to package and missing and relevant to your needs
wallacer3 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<srhb> True. But I think what I wanted back then was "make a build for my custom project" and it was hard.
<srhb> Or, knowing what to even begin investigating was hard.
<srhb> (The answer is: steal steal steal)
<MichaelRaskin> Well, if it is well-packaged in general…
Chiliparrot has joined #nixos
<MichaelRaskin> On the other hands, builds are a mess globally, and Nix kind of highlights this by putting everything about builds into a single construction
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @alyssais merged pull request #102366 → youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT72m
<{^_^}> [nixpkgs] @alyssais pushed commit from @mweinelt to master « youtube-dl: 2020-09-20 -> 2020.11.01.1 »: https://git.io/JT76a
<hyperfekt> i think a big problem with letting people get into writing their own nix expressions is the inversion of control
<hyperfekt> apart from the obvious reasons like tons of magic
<simpson> I think that the main barrier to taming that sort of wilderness-feeling is going to only come when the toolchains and modules that we're packaging become themselves more structured.
<jbal[m]> `ungoogled-chromium` seems to break often on hydra (and consequently often when I update, it turns my laptop into a toaster trying to build it), is there an easy way of just getting the latest working version of a package?
sangoma has joined #nixos
<{^_^}> [nixpkgs] @mweinelt opened pull request #102373 → youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT76j
<MichaelRaskin> nix-store -r $( curl "$( curl https:/hydra.nixos.org/job/nixpkgs/trunk/"$1".x86_64-linux | grep Succeeded | head -n 1 | tr '"' '\n' | grep https://hydra.nixos.org/build/ )" | grep /nix/store/ | tr ' ' '\n' | grep /nix/store | head -n 1 ) --add-root "${2:-/tmp/hydra-downloads-$USER/$1}" --indirect
<{^_^}> [nixpkgs] @mweinelt opened pull request #102374 → youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT7iI
<MichaelRaskin> jbal[m]: First parameter is package attribute name (well, Hydra job name), the second is where to put the reference
<supersandro2000> aasg: nope. log was to long and truncated. Added a file which is competle
<{^_^}> [nixpkgs] @Mic92 pushed commit from @mweinelt to release-20.09 « openldap: add patch to fix unauthenticated nullptr dereference in slapd »: https://git.io/JT7iC
sss2 has quit [Quit: Leaving]
emacsomancer has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Mic92 pushed to release-20.09 « Revert "openldap: add patch to fix unauthenticated nullptr dereference in slapd" »: https://git.io/JT7i8
<{^_^}> [nixpkgs] @Mic92 merged pull request #102370 → [staging-20.09] openldap: add patch to fix unauthenticated nullptr dereference in slapd → https://git.io/JT7wM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging-20.09: https://git.io/JT7i4
<{^_^}> [nixpkgs] @jonringer opened pull request #102375 → csv_fast_export: use python3 → https://git.io/JT7iB
<{^_^}> [nixpkgs] @Mic92 merged pull request #102371 → [staging-20.03] openldap: add patch to fix unauthenticated nullptr dereference in slapd → https://git.io/JT7rB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging-20.03: https://git.io/JT7iR
<{^_^}> [nixpkgs] @andir merged pull request #102266 → firefox{,-bin}: 80.0 -> 80.0.2 → https://git.io/JTHPD
<{^_^}> [nixpkgs] @andir pushed 3 commits to master: https://git.io/JT7io
<{^_^}> [nixpkgs] @felschr opened pull request #102376 → nixos/cfdyndns: add apikeyFile option → https://git.io/JT7iP
<jbal[m]> That's a doozy. I'm guessing the only way to do that declaratively, would be a cron job that pushes to a git repo?
<MichaelRaskin> Well, it depends whether you want to have a revision of Nixpkgs where things are available in the cache, or just include the paths from the cache in an environment built from a different revision
<MichaelRaskin> But sure, you need that scraping, scraping by cron and saving the results sounds reasonable
emacsomancer has joined #nixos
<pushqrdx> so currently in my configuration.nix i have `environment.shells = [ pkgs.zsh ]` however i noticed that it still using bash
shabius has joined #nixos
cosimone has joined #nixos
<MichaelRaskin> This setting actually controls what shells the users can choose via chsh
Rusty1 has quit [Quit: Konversation terminated!]
ManiacOfMadness has joined #nixos
<pushqrdx> huh, but if i cat /etc/shells sh, bash, zsh
<{^_^}> [nixpkgs] @marsam merged pull request #98838 → tre-command: 0.3.2 -> 0.3.3 → https://git.io/JUVmI
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JT7P4
<typetetris> Hi there I try to try flakes on my nixos machine. But `nixos-rebuild switch` complains about git and `nixos-rebuild switch --flake /etc/nixos#my-machine-name` complains abourt `--experimental-features` being an unknown flag.
<jbal[m]> You want `users.users.$USER.shell`
<typetetris> What do I need to do?
<{^_^}> [nixpkgs] @andir merged pull request #102350 → nixos/tests/prometheus: remove invalid thanos config flag → https://git.io/JT7UN
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JT7Pz
<jbal[m]> If you have fetchfromgit, you need git in the path. fetchfromtarball and fetchfromgithub don't need git iirc
<{^_^}> [nixpkgs] @jonringer merged pull request #102365 → glslviewer: 2019-04-22 -> 1.6.8, use python3 → https://git.io/JT7gt
<{^_^}> [nixpkgs] @jonringer pushed to master « glslviewer: 2019-04-22 -> 1.6.8, use python3 »: https://git.io/JT7PV
<cole-h> typetetris: You need `nixUnstable` on your PATH, probably, as well as to have your `nix.package` set to `nixUnstable`/
<jbal[m]> you also need to make sure you're using nixUnstable if you want to use flakes
<typetetris> jbal[m]: have git in path, I am not using fetchfromgit in my configuration (but I don't know, wether some of the stuff from nixpkgs I use, uses it). Have `nix.package = pkgs.nixUnstable` and `nix.extraOptions` contains ` experimental-features = nix-command flakes `.
<{^_^}> [nixpkgs] @jonringer merged pull request #102247 → uutils-coreutils: Use Python3 sphinx for docs → https://git.io/JTHEr
<{^_^}> [nixpkgs] @jonringer pushed commit from @prusnak to master « uutils-coreutils: Use Python3 sphinx for docs »: https://git.io/JT7PD
eahlberg has joined #nixos
<typetetris> jbal[m]: Sorry, nixos-rebuild switch (trying to install nixUnstable) says : `fatal: couldn't find remote ref refs/heads/HEAD`.
<typetetris> Somehow my system is in a strange state.
<{^_^}> [nixpkgs] @jonringer merged pull request #102248 → ndn-cxx: 0.6.3 -> 0.7.1 → https://git.io/JTHu3
<{^_^}> [nixpkgs] @jonringer pushed commit from @prusnak to master « ndn-cxx: 0.6.3 -> 0.7.1 »: https://git.io/JT7P7
<{^_^}> [nixpkgs] @marsam opened pull request #102377 → xonsh: 0.9.23 -> 0.9.24 → https://git.io/JT7Xv
<jbal[m]> Is your /etc/nixos a git repo?
<typetetris> Yes, it is. If I remove `nix.package = pkgs.nixUnstable` and `experimental-features = nix-command flakes` it works just as it worked before trying flakes. (So normal nix).
<jbal[m]> So there is a .git in /etc/nixos?
<typetetris> yes, there is.
<boogiewoogie[m]> hey! I'm trying to package this derivation https://hastebin.com/idukereyuv.nix. it builds fine manually in the nix-shell, however when trying to `nix-build` it, it seems to fail due to not finding java. is there anything I may need to do extra for java-dependent packages?
sangoma has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #102375 → csv_fast_export: use python3 → https://git.io/JT7iB
<{^_^}> [nixpkgs] @jonringer pushed to master « csv_fast_export: use python3 »: https://git.io/JT7X3
<{^_^}> [nixpkgs] @freezeboy opened pull request #102378 → Refactor rabbitvcs → https://git.io/JT7Xs
<typetetris> I tried to follow that: https://www.tweag.io/blog/2020-07-31-nixos-flakes/
boogie_ has joined #nixos
<jbal[m]> Do you mind sharing the inputs of your flake.nix?
<{^_^}> [nixpkgs] @CrystalGamma opened pull request #102379 → jsoncpp: 1.9.2 -> 1.9.4 → https://git.io/JT7Xg
<typetetris> My whole flake.nix I am trying to use. https://www.irccloud.com/pastebin/qC9HkX6q/
<typetetris> Ah, maybe I need something different in `inputs.nixpkgs.url`?
<{^_^}> [nixpkgs] @doronbehar opened pull request #102380 → musescore: 3.5.0 -> 3.5.2 → https://git.io/JT7XX
zupo has joined #nixos
<{^_^}> [nixpkgs] @MetaDark opened pull request #102381 → linuxPackages.xpadneo: 0.8.3 -> 0.8.4 → https://git.io/JT7X9
Fafnir[m] has joined #nixos
<jbal[m]> That does look right
<typetetris> But If I put `flake.nix` in `/etc/nixos` it complains `error: 'flake' is not a recognised command`, so I try without flake.nix first and then there is the error about git.
medvid has quit [Ping timeout: 260 seconds]
pushqrdx has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @doronbehar opened pull request #102382 → tectonic: 0.2.0 -> 0.3.0 → https://git.io/JT7X5
alp has joined #nixos
cosimone has quit [Remote host closed the connection]
berberman_ has quit [Ping timeout: 240 seconds]
berberman has joined #nixos
cosimone has joined #nixos
medvid has joined #nixos
cjpbirkbeck has joined #nixos
sangoma has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #102349 → zigbee2mqtt: 1.15.0 -> 1.16.0 → https://git.io/JT7Jb
<{^_^}> [nixpkgs] @mweinelt pushed 2 commits to master: https://git.io/JT71G
<jbal[m]> I'm still new to nix and flakes myself, so I don't know if I'm 100% on the right track though. I'm using my laptop to test nixos out and get everything how I want it, and when I deploy it to my desktop I'm going to try writing a full installation guide
<typetetris> jbal[m]: Ok. Have a working configuration in /etc/nixos. It is a git depot, but there is no `flake.nix`. `nixos-rebuild switch` worked.
jd has joined #nixos
nixer|28 has joined #nixos
<jbal[m]> Alright, now try putting flake.nix back, `git add` it (when using flakes, nix only cares about things it sees in git) and try a rebuild with --flake again
<typetetris> But I haven't set `nix.package = pkgs.nixUnstable` yet ?
<jbal[m]> first
<jbal[m]> And do a rebuild, so your nix command is nixUnstable and you have flake support enabled.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1c50dc407cf (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
<typetetris> Okay, so I put the `nix.package = pkgs.nixUnstable` and the `experimental-features = nix-command flakes` in my /etc/nixos/configuration.nix, but no flake.nix yet. `nixos-rebuild switch` fails with the errors about git ...
<typetetris> The `fatal: couldn't find remote ref refs/heads/HEAD` despite /etc/nixos being a git repo.
<{^_^}> [nixpkgs] @peti opened pull request #102383 → Update Haskell package set to LTS 16.21 (plus other fixes) → https://git.io/JT719
<cole-h> typetetris: Please paste the full error. (with and without --show-trace)
<cole-h> There's a high likelihood that it's not your config repo that is having issues, but something else you're referring to
<typetetris> without --show-trace https://www.irccloud.com/pastebin/lBJL5C6Z/
alexherbo20 has joined #nixos
<jbal[m]> Ah. It's possible your configuration.nix isn't compatible with nixUnstable
<typetetris> So its probably some poetry / python stuff .. :( https://www.irccloud.com/pastebin/lUcXkZTF/
alexherbo2 has quit [Ping timeout: 258 seconds]
alexherbo20 is now known as alexherbo2
<typetetris> Will try without that in an our
<srid> I set up my VPS with nixos, and had forgot to manually set a password for the non-root user. Am I locked out of it from doing root things? `sudo` requires password. Is there a way to patch things up without starting from scratch?
<srid> (non-root user was created declaratively; the root of evil here)
<srid> (and I disabled root login in ssh declaratively as well)
<srid> (root user has my ssh key authorized, fwiw)
<jbal[m]> Does your VPS have console access?
<srid> 'tis a shame even `ssh root@localhost` is refused
<srid> oh
<srid> i'm on digitalocean
<srid> but what's the root password. installed via https://github.com/elitak/nixos-infect
<srid> the droplet was created using my ssh key. no password was explicitly set anywhere in the process
<jbal[m]> Try resetting the root password via digitalocean console. https://www.digitalocean.com/docs/droplets/resources/console/
alp has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #102384 → mkcert: 1.4.1 -> 1.4.2 → https://git.io/JT7Mk
<jbal[m]> I don't know if it will work, but it's worth a try
<gchristensen> using the console you might be able to just roll back a generation at the bootloader
<cole-h> In the future, you might want to keep root login enabled, but just disable password authentication. That way you can still SSH into it with your key :P
<srid> Trying... i wonder how that works non-DigitialOcean distros ...
<srid> * Trying... i wonder how that works on non-DigitialOcean distros ...
<jbal[m]> Or that.
<neothefox> Let's say I made a package that builds a library, and I want to add a bit to /etc/profile.d that injects it with LD_LIBRARY_PRELOAD, adding a file to $out/etc/profile.d doesn't seem to do the trick, so is there another way?
<jbal[m]> Any VPS without console access is not worth using
<neothefox> I like the name, nixos-infect is a great name
<gchristensen> jbal[m]: so not the biggest cloud providers on the planet? :P
<MichaelRaskin> Do you even need any extra reasons why each of them three is bad?
<srid> password reset email arrived, but new password doesn't work. fuck it, doing fresh install
<MichaelRaskin> I assume passwd from under user does expect something as an opld password?
<jbal[m]> I'd try generation rollback from console first, but shrug
<{^_^}> [nixpkgs] @roconnor merged pull request #101945 → OSCAR: init at 1.2.0 → https://git.io/JT1n7
<{^_^}> [nixpkgs] @roconnor pushed 2 commits to master: https://git.io/JT7Mu
<MichaelRaskin> I think the problem is in the first generation anyway
pushqrdx has joined #nixos
<pushqrdx> can i reset the generation number back to zero :D?
<jbal[m]> If so, then yeah.
<pushqrdx> it's irritating that even though i deleted all older generations i am still at gen 7
nixer|28 has quit [Quit: Connection closed]
<gchristensen> pushqrdx: time to become zen about it :)
<pushqrdx> good god no my OCD hurts
<pushqrdx> llol
* bqv winces
<MichaelRaskin> I think manually moving the link to make it 1 will actually work
<{^_^}> [nixpkgs] @hjones2199 opened pull request #102385 → indilib: 1.1.0 -> 1.8.6 → https://git.io/JT7M1
<pushqrdx> moving what link, the closer thing i got is manually modifying /boot/loader/entries however once i build a newer gen it seems to remember the number anyways
otulp has joined #nixos
<boogiewoogie[m]> can i somehow reference input derivations' out paths in an expression?
<MichaelRaskin> There is /nix/var/nix/profiles/system-…-link
<bqv> gchristensen: any interest in #102320 ?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/102320 (by MatthewCroughan, 14 hours ago, open): nixos/activation: expose activation scripts
<MichaelRaskin> boogiewoogie[m]: yes, "ls ${input-package}" should work, for example
<MichaelRaskin> (evaluation-time evaluation of things inside ${})
<pushqrdx> i have two links now one that is just called system and another that is called system-7-link, now i have two questions, what is that system one, second is it safe to rename the system-7 link and rename the boot loader configs to go back to 0
<gchristensen> there is never a 0th generation
<{^_^}> [nixpkgs] @seppeljordan opened pull request #102386 → nix-prefetch-github: v3.0 -> v4.0 → https://github.com/NixOS/nixpkgs/pull/102386
<MichaelRaskin> I think it is safe to move 7 to 1, then call its bin/switch-to-configuration boot
<boogiewoogie[m]> MichaelRaskin: okay, yep, thanks
<MichaelRaskin> I have at some point removed all the numbered links, and run a nixos-rebuild switch
<MichaelRaskin> But note, it has been _long_ time since I have last used actual NixOS
<pushqrdx> oh, the system link just points to the system-<number>-link which is the head, now before i bork my install what i will do is rename the 7-link to 1-link then run `/nix/var/nix/profiles/system-7-link/bin/switch-to-configuration boot`
<bqv> AIUI only the bootscripts actually care about them
<bqv> MichaelRaskin: your system fascinates me
<pushqrdx> MichaelRaskin what system are you using if not NixOS?
<bqv> I'm building something vaguely similar, but based closer on nixos
<MichaelRaskin> bqv: maybe once rfcs#78 gets somewhere it will become even easier
<{^_^}> https://github.com/NixOS/rfcs/pull/78 (by 7c6f434c, 2 weeks ago, open): [RFC 0078] System-agnostic configuration file generators
<freezeboy> I am trying to combine nix-build-uncached and <nixpkgs/maintainers/script/build.nix>, but it is not build, just showing the dry-run output, any idea ?
<bqv> MichaelRaskin: I hadn't seen that, awesome
<MichaelRaskin> pushqrdx: Nixpkgs for packages, hand-written bootscripts with paths inserted by Nix, Common Lisp daemon for most of the system management stuff
<MichaelRaskin> Composed by overlay-style makeExtensible
<MichaelRaskin> NixOS instances evaluated in the process just to steal soem configs from there. That part will probably go away with RFCs#78 replacing it
<{^_^}> https://github.com/NixOS/rfcs/pull/78 (by 7c6f434c, 2 weeks ago, open): [RFC 0078] System-agnostic configuration file generators
<bqv> MichaelRaskin: in fact, frustratingly, if that RFC is implemented, my stuff becomes pointless
<MichaelRaskin> Hmm, isn't my use-from-nixos.nix enough for you then?
<bqv> I was doing it because I assumed nixpkgs was joined at the hip to systemd with no reprieve
<MichaelRaskin> RFCs#78 does not impede NixOS from going merrily further into systemd blackhole
<{^_^}> https://github.com/NixOS/rfcs/pull/78 (by 7c6f434c, 2 weeks ago, open): [RFC 0078] System-agnostic configuration file generators
<bqv> Well I'm attempting to make a shim to convert systemd scripts to s6, with an init system to boot
<MichaelRaskin> It's just about configuration files, that are the actual valuable knowledge set
<bqv> If theres no need for the shim, that becomes trivial
<bqv> Because the intermediate format would be in nixpkgs itself
<MichaelRaskin> I think RFCs#42 is definitely enough for your purposes then?
<{^_^}> https://github.com/NixOS/rfcs/pull/42 (by Infinisil, 1 year ago, open): [RFC 0042] NixOS settings options
<{^_^}> [nixpkgs] @vcunat pushed 0 commits to firefox-82.02: https://git.io/JT7D2
<bqv> MichaelRaskin: howso? Options are fine, I just reuse them from nixpkgs. I just want to rip out systemd.* and replace it's use everywhere
<MichaelRaskin> Well, 42 already gives you the config files for stuff
<MichaelRaskin> And 78 just assymes the scripts are trivial once you have the proper configs
<bqv> To wit, #102320 would allow me to pinch activation scripts too
<{^_^}> https://github.com/NixOS/nixpkgs/pull/102320 (by MatthewCroughan, 14 hours ago, open): nixos/activation: expose activation scripts
<bqv> MichaelRaskin: I'm endeavouring to not rewrite everything, just basically have a compatibility layer to translate systemd-init and services to s6-init and services
<bqv> So I can reuse the entirety of nixpkgs
<bqv> But also not have systemd
ilmu has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @symphorien opened pull request #102387 → nixos: mutually exclusive services; application to acme → https://git.io/JT7Dy
<MichaelRaskin> Thne 78 doesn't really help, as NixOS wants to use upstream unit files as is
Enderger has quit [Ping timeout: 245 seconds]
<bqv> MichaelRaskin: I was looking at this:
<bqv> Define generic service abstraction for non-`systemd` systems, possibly with aconvertor from `systemd` units.
mmohammadi9812 has quit [Read error: Connection reset by peer]
boogie_ has quit [Quit: Leaving]
mmohammadi9812 has joined #nixos
<MichaelRaskin> That's future work in no way detailed by this RFC
<MichaelRaskin> IT is not unresolved question
<bqv> Implement a complete service abstraction not tied to global system-wide
<bqv> Ah
<bqv> Guess I skimmed too fast
<MichaelRaskin> This is in no way stipulated by the current RFC
<MichaelRaskin> Just made simpler with the reusable part cleanly abstraxted
magnetophon has quit [Ping timeout: 260 seconds]
<bqv> Yeah
<bqv> Well, there's always nix-processmgmt, wherever that goes...
<bqv> gchristensen: I take it that's a no, by the way?
<{^_^}> [nixpkgs] @jonringer merged pull request #102250 → python3Packages.ovito: 3.0.0 -> 3.3.1 → https://git.io/JTHal
<{^_^}> [nixpkgs] @jonringer pushed commit from @prusnak to master « python3Packages.ovito: 3.0.0 -> 3.3.1 »: https://git.io/JT7yT
sangoma has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
<bqv> Ok
ilmu has joined #nixos
<cole-h> Graham is very busy at the moment (and has been since having a baby...), so probably not the best person to be pinging for things that aren't mission critical :)
<cole-h> s/at the moment/recently/
<{^_^}> [nixpkgs] @hrdinka merged pull request #102078 → [20.09] libretro.mame2016: fix build with gnumake-4.3 → https://git.io/JTD12
<{^_^}> [nixpkgs] @hrdinka pushed 3 commits to release-20.09: https://git.io/JT7y6
zupo has joined #nixos
brettgilio has quit [Remote host closed the connection]
_rvl has quit [Ping timeout: 260 seconds]
rprije has joined #nixos
alp has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @kevincox merged pull request #91792 → kakoune: rework plugin support → https://git.io/JJf40
<{^_^}> [nixpkgs] @kevincox pushed 3 commits to master: https://git.io/JT7SI
ransom has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #102389 → pipreqs: use python3 → https://git.io/JT7Ss
brettgilio has joined #nixos
<gchristensen> bqv: sorry, that isn't really my wheelhouse
eahlberg has quit [Remote host closed the connection]
zupo has joined #nixos
<bqv> fair enough
zupo has quit [Client Quit]
pr06lefs has joined #nixos
zupo has joined #nixos
<pr06lefs> is there a command for removing just one package from the nix store? I'm testing and I'd like to force it to rebuild. I'm doing nix-collect-garbage but it removes all the deps too.
ericsagn1 has quit [Ping timeout: 264 seconds]
<bqv> you could try --rebuild
<bqv> i'm not sure what range of commands and versions have that, as of now
andymandias_ has joined #nixos
zupo has quit [Client Quit]
andymandias has quit [Ping timeout: 272 seconds]
cole-h has quit [Ping timeout: 264 seconds]
<srhb> pr06lefs: nix-build and --check should do the trick, or you can use nix-store --delete to delete a single path. (However, unless you're testing for reproducibility, deleting it by hand should never be necessary, any change should cause a rebuild in and of itself)
astylian has joined #nixos
<{^_^}> [nixpkgs] @RonanMacF opened pull request #102390 → update vimPlugins and add vim-LanguageTool → https://git.io/JT79c
freezeboy has quit [Remote host closed the connection]
zupo has joined #nixos
ransom has quit [Ping timeout: 268 seconds]
growpotkin has quit [Quit: ZNC 1.8.2 - https://znc.in]
ericsagn1 has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #102391 → haxor-news: use python3, fix build → https://git.io/JT79D
freezeboy has joined #nixos
jabster28 has joined #nixos
<freezeboy> supersandro2000 do you know why python.libPrefix is sometimes prepended with an "m" ?
pushqrdx has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Gabriel439 opened pull request #102392 → Change idiom for overriding Dhall package version → https://git.io/JT7Hm
<jonringer> pr06lefs: nix-store --delete is what you're looking for
kreyren has joined #nixos
<jonringer> freezeboy: the m suffix has largely been removed from convention
<{^_^}> [nixpkgs] @ardumont opened pull request #102393 → mediatomb: Allow users to customize duktape/js script imports → https://git.io/JT7HP
woffs has joined #nixos
<{^_^}> [nixpkgs] @ardumont closed pull request #101296 → mediatomb: Allow users to customize duktape/js script imports → https://git.io/JTuN4
kreyren has quit [Remote host closed the connection]
<freezeboy> jonringer the problem is there is no variable to make the right folder :(
kreyren has joined #nixos
<freezeboy> I am adding a * to match both cases
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #102353 → [20.09] git-mediate: 1.0.8 -> 1.0.8.1 → https://git.io/JT73R
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to release-20.09: https://git.io/JT7Hd
<freezeboy> jonringer supersandro2000 I force pushed on PR #102378 following your comments
<{^_^}> https://github.com/NixOS/nixpkgs/pull/102378 (by freezeboy, 1 hour ago, open): Refactor rabbitvcs
brettgilio has quit [Quit: Long live IRC! <https://brettgilio.com>]
jabster28 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #102386 → nix-prefetch-github: v3.0 -> v4.0 → https://git.io/JT7QZ
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JT7Qn
brettgilio has joined #nixos
abathur has quit [Quit: abathur]
<{^_^}> [nixpkgs] @prusnak opened pull request #102394 → treewide: remove superflous format string when a variable can be used directly → https://git.io/JT7Qb
luc65r has quit [Quit: WeeChat 2.9]
supersandro2000 has quit [Ping timeout: 240 seconds]
lunik11 has joined #nixos
nii has joined #nixos
lunik1 has quit [Ping timeout: 268 seconds]
lunik11 is now known as lunik1
nii has quit [Remote host closed the connection]
nii has joined #nixos
cosimone has quit [Quit: cosimone]
Fare has quit [Ping timeout: 260 seconds]
Acou_Bass has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
nii has quit [Remote host closed the connection]
Acou_Bass has joined #nixos
freezeboy has quit [Remote host closed the connection]
Acou_Bass has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #102319 → ansible-lint: 4.3.5 -> 4.3.6 → https://git.io/JTQuM
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « ansible-lint: 4.3.5 -> 4.3.6 »: https://git.io/JT77x
<{^_^}> [nixpkgs] @jonringer merged pull request #102390 → update vimPlugins and add vim-LanguageTool → https://git.io/JT79c
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JT77j
Neo-- has quit [Ping timeout: 240 seconds]
shabius has quit [Ping timeout: 268 seconds]
<omasanori[m]> Hello, just curious but has anybody already tried packaging GTK 4 yet?
supersandro2000 has joined #nixos
jabster28 has joined #nixos
astylian has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @prusnak closed pull request #102394 → treewide: remove superflous format string when a variable can be used directly → https://git.io/JT7Qb
damjan has joined #nixos
shabius has joined #nixos
supersandro2000 has quit [Ping timeout: 260 seconds]
Acou_Bass has joined #nixos
<typetetris> hmm, without a poetry2nix app I can switch to flakes. But now it complains about `<nixpkgs/nixos/modules/installer/scan/not-detected.nix>` in my configuration.nix. I don't know what that path does and with what to replace it, or maybe I can just delete it?
vykook has joined #nixos
h0m1 has quit [Quit: WeeChat 2.9]
<typetetris> Hmm, looks that just turns `hardware.enableRedistributableFirmware`.
h0m1 has joined #nixos
<l33[m]> I've been playing with lib.attrsets.genAttrs (map (i: "user${toString i}") (lib.lists.range 1 10)) (_: { isNormalUser = true; }) This strings list, but can i adapt this in nixos to create unix users in configuration.nix. like users.users.myuser = { isNormalUser = true;};
shibboleth has quit [Quit: shibboleth]
vykook has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #102382 → tectonic: 0.2.0 -> 0.3.0 → https://git.io/JT7X5
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JT7di
<{^_^}> [nixpkgs] @marsam merged pull request #102377 → xonsh: 0.9.23 -> 0.9.24 → https://git.io/JT7Xv
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JT7d9
vykook has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #101319 → xmlsec: fix build on macOS → https://git.io/JTzmn
<{^_^}> [nixpkgs] @marsam pushed commit from @caleb to master « xmlsec: fix build on macOS (#101319) »: https://git.io/JT7d7
<srhb> l33[m]: Yes. In fact, this is (approximately) how the nixbld users for the nix-daemon are generated.
<srhb> l33[m]: You could check out that module nix nixpkgs/nixos/modules/services/misc/nix-daemon.nix
<bqv> l33[m]: see also: nix#3600
<{^_^}> https://github.com/NixOS/nix/pull/3600 (by edolstra, 23 weeks ago, open): Automatic UID allocation
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #102373 → [20.09] youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT76j
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to release-20.09: https://git.io/JT7db
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #102374 → [20.03] youtube-dl: 2020-09-20 -> 2020.11.01.1 → https://git.io/JT7iI
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to release-20.03: https://git.io/JT7dA
vykook has quit [Ping timeout: 272 seconds]
vykook has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #102395 → kernel/manualConfiguration: add variant metadata → https://git.io/JT7Fa
pushqrdx has joined #nixos
philr has joined #nixos
<pushqrdx> i kinda hit another brick wall need someone's help :D
_rvl has joined #nixos
<pushqrdx> i installed ddcutil (to control monitor brightness/contrast etc) and i added my user to the i2c group in configuration.nix
<pushqrdx> however it appears that ddcutil can't detect my monitor
<pushqrdx> because i don't have /dev/i2c or something like that
<{^_^}> [nixpkgs] @prusnak opened pull request #102396 → treewide: src cleanup → https://git.io/JT7F6
ece has joined #nixos
<srhb> pushqrdx: You probably want boot.kernelModules = [ "i2c-dev" ];
<srhb> pushqrdx: Without a udev wrapper you might need to create your own udev wrapper to provide ownership to that group of the node
vykook has quit [Ping timeout: 240 seconds]
<srhb> er, udev rule*
<pushqrdx> i don't understand the last line
<{^_^}> [mobile-nixos] @samueldr opened pull request #234 → stage-1: Add interactive LUKS decrypting → https://git.io/JT7Fx
<srhb> pushqrdx: I think that loading the kernel module will only provide you with the device nodes, owned by root/root
_rvl has quit [Ping timeout: 264 seconds]
<srhb> pushqrdx: Meaning, your group membership won't suffice to grant your user access (yet)
<srhb> pushqrdx: services.udev.extraRules can be set up to cause udev to alter eg. the group of the node
<srhb> pushqrdx: Does that clarify?
supersandro2000 has joined #nixos
<pushqrdx> so normally what i do for ddcutil `sudo usermod myuser -aG i2c` to assigm myself tothe i2c group or sometimes i have to create the group myself
bennofs1 has joined #nixos
<pushqrdx> now in nix i added i2c under extraGroups, and added the i2c kernel module as you specified
vykook has joined #nixos
<srhb> pushqrdx: What I'm trying to say is that the device node is probably not _owned_ by i2c by default, but you can check.
<pushqrdx> ok i will first build using i2c-dev alone and see if that works
<srhb> pushqrdx: You will need a reboot for boot.kernelPackages to take effect
<pushqrdx> wait kernelPackages? not kernelModules
<srhb> kernelModules, sorry
<pushqrdx> btw what is the difference between kernelModules and extraModulePackages
<srhb> pushqrdx: kernelModules is essentially just modprobe (of modules already in the kernelPackages)
<srhb> pushqrdx: extraModulePackages are packages providing extra modules
pushqrdx has quit [Remote host closed the connection]
cr4y1_ has quit [Ping timeout: 240 seconds]
cr4y1_ has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
growpotkin has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #102398 → [staging] asciidoc: 8.6.9 -> 9.0.4 → https://git.io/JT7Ne
<{^_^}> [nixpkgs] @jonringer opened pull reque