Scriptkiddi has quit [Remote host closed the connection]
ajs124 has quit [Remote host closed the connection]
das_j has quit [Remote host closed the connection]
kvda has quit [Ping timeout: 260 seconds]
Scriptkiddi has joined #nixos
das_j has joined #nixos
ajs124 has joined #nixos
kvda has joined #nixos
bhipple has quit [Ping timeout: 272 seconds]
<disasm>
I'm trying to get udev to name a usb network interface (usb tethering) something recognizable, but it's not working. This is my extraRules: :ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="06:cf:d2:6e:be:01", NAME="verizon0"
erictapen has quit [Ping timeout: 256 seconds]
bhipple has joined #nixos
<disasm>
dmesg shows [32041.324900] rndis_host 3-2:1.0 enp0s16u2: renamed from usb0 which leads me to believe that there's a higher priority rule somewhere
andi- has quit [Read error: Connection reset by peer]
wucke13 has joined #nixos
<evanjs>
Mic92: added you as you're the last one that made a generic nodePackages update PR :P I also have no clue who to add in terms of nodePackages reviewers
felixfoertsch has quit [Ping timeout: 272 seconds]
<cole-h>
Hi all! I'm extremely new to Nix and have a question (haven't gotten through all the docs, so sorry if this is already answered there): how do I install a local package? E.g. I have a home-manager PR checked out that I want to try. How would I do this?
<dminuoso>
bahamas: For the semantics on a traditional linux system
<eyJhb>
bahamas: how are you setting up your non-interactive shell?
smatting has quit [Ping timeout: 260 seconds]
noudle has joined #nixos
noudle has quit [Client Quit]
<bahamas>
dminuoso: yeah, I found that and added $HOMR/.nix-profile/bin to PATH and the error didn't go away
<bahamas>
err, $HOME/
Synthetica has joined #nixos
eacameron has quit [Quit: Connection closed for inactivity]
<bahamas>
I'm actually trying to test this: https://github.com/nix-community/nixbox/issues/38. in the end, I simply installed nix on my digitalocean droplet, but I got the error I posted in the last comment on the issue
<{^_^}>
nix-community/nixbox#38 (by MaCXyLo, 1 year ago, open): nixbox 18.09 not on Vagrant Cloud
<bahamas>
what kind of Linux do I need to run this command?
<eyJhb>
How can I change the fontsize in Grub? I cannot read the dates..
<eyJhb>
I can see 'boot.loader.grub.fontSize', but it specifies it doesn' work unless 'Ignored unless font is set to a ttf or otf font', but the defualt font doesn't seem to be any of those
o1lo01ol1o has quit [Remote host closed the connection]
lsix has joined #nixos
emacsomancer has quit [Ping timeout: 265 seconds]
<jluttine>
while upgrading my system, i noticed nix downloading a package firmware-linux-nonfree. i haven't allowed nonfree packages so how can this be?
<jluttine>
it's license seems to be licenses.unfreeRedistributableFirmware
<{^_^}>
[nixpkgs] @xwvvvvwx opened pull request #79429 → wireguard: rm libmnl from buildInputs → https://git.io/JvnUe
<{^_^}>
[nixpkgs] @peti merged pull request #78965 → r-modules/generic-builder: Add missing iconv library to fix build on darwin → https://git.io/Jv3lr
<{^_^}>
[nixpkgs] @peti pushed commit from @tricktron to master « r-modules/generic-builder: Add missing iconv library to fix build on darwin (#78965) »: https://git.io/JvnT3
<stteevveen>
Hi! I'm looking at the video "Nix: How and Why it Works" https://www.youtube.com/watch?v=lxtHH838yko&t=179s . It starts with the most "trivial" derivation , but is using the keyword derivation, instead of mkDerivation as I am used to. What is the difference between using derivation and mkDerivation ?
<li_matrix>
stteevveen: derivation is the builtin, mkderiavation is a more elaborate nix wrapper version
__monty__ has joined #nixos
<li_matrix>
mkderivation is in nixpkgs
chagra has quit [Ping timeout: 265 seconds]
<LnL>
li_matrix: basically anything that supports PUT file uploads should work, main limitation is authentication (netrc)
<stteevveen>
li_matrix : where should I look for reference about the nix languages and the builtins and the wrappers ? Is there an API reference ? is it in the code of nixpkgs ?
<LnL>
stteevveen: yeah, so derivation only takes a binary while stdenv.mkDerivation is setup with a compiler and will run the default ./configure && make flow automatically, etc.
<__monty__>
stteevveen: nix manual, nixpkgs manual and for anything more detailed refer to the code, (mostly useful for nixpkgs lib imo).
<{^_^}>
[nixpkgs] @knl opened pull request #79442 → grpcurl: add darwin as a supported platform → https://git.io/Jvnkm
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JvnII
<JWK>
how do I reference cross-compiled mingw64 pthreads from a derivation? apparently it's built from cross-compilation bootstrapping, but I cannot find a reference in stdenv.cc.lib as it would be if it were a native target
<stteevveen>
do you know what --substituters flag is for nix-build ? nix-build --help does not list this flag, it is used in a video.
noudle has joined #nixos
<__monty__>
It's for ssh substituters I think. Before building something nix'll ask substituters whether they already have it available in their store, then copy it over if they do.
<ramses_>
Hey guys, is there any way to do a conditional import insode a module? Something like "imports = mkIf condition [ <nixpkgs>/.../module.nix ];"
<ramses_>
When I try the above, nix complains that it returns a set instead of a list
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
ramses_: How about `if condition then [ imports ] else []`?
<__monty__>
mkIf/Merge etc are combinators for sets.
zupo has joined #nixos
noudle has joined #nixos
Chiliparrot has joined #nixos
<ramses_>
__monty__: I tried "imports = optional condition <nixpkgs/.../module.nix;" but then I get an infinite recursion error...
<ramses_>
I need a way to delay the conditional like mkIf does it for sets
kleisli has quit [Ping timeout: 268 seconds]
<ramses_>
Maybe the only way is to do the import in a separate module, but it feels a bit ugly to create a module just to do an import
<flokli>
anybody managed managed to build flatpak/appimage images with nix?
<sondr3>
flokli: as in make a derivation or just run it?
<flokli>
sondr3: I
<flokli>
sondr3: using nix as a build system to have that image in the output
vika_nezrimaya has quit [Quit: ERC (IRC client for Emacs 26.3)]
<flokli>
so this can be shipped to machines not necessarily running NixOS
chagra has joined #nixos
<sondr3>
ah, sorry, I thought you meant it the other way around
<flokli>
I know we can build docker containers (and I use that), but in that case, it's for graphical applications
cosimone has quit [Quit: Terminated!]
<flokli>
sondr3: yeah, I know about the tooling we have that extracts stuff from these images, in case we want to package something and it gets distributed that way. I'm talking about the other way round
<__monty__>
Anyone know why this might happen? Did I maybe run gdb using sudo and it wrote to the store? Weird to see a .pyc file there: http://ix.io/2aYL
<raboof>
am I right in assuming `config.environment.ld-linux` is a system-wide nixos thing that can't be applied from a shell.nix? What would be a nice way to achieve it 'locally'? Perhaps taking inspiration from 'buildFHSUserEnv' I guess?
peeech has joined #nixos
<{^_^}>
[nixpkgs] @Atemu opened pull request #79452 → ifconfig-parser and jc: init → https://git.io/JvnLH
peeech has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyper_ch2 has joined #nixos
sbetrium has quit [Quit: sbetrium]
hyper_ch2 has quit [Remote host closed the connection]
stteevveen has joined #nixos
<stteevveen>
in examples nix files, there is often {pkgs, config,...} : as input variables, but I only happened to have used `pkgs` IIRC. What does `config` stands for ?
werner291 has quit [Ping timeout: 260 seconds]
<infinisil>
stteevveen: `config` is the result of the module evaluation, so you can use e.g. `config.networking.hostName` to get the final hostname
<infinisil>
Or `config.users.users` to get declared users
<infinisil>
All options have their final value there
<sondr3>
oh lawd, I just realized that using config would've been way easier than what I am currently doing to set and check the hostname
<gchristensen>
nixos channels update as a coherant collection of packages and versions and security updates can't be cherry-picked, no
<simpson>
Because, by default, people usually want package bumps. For example, youtube-dl is basically *only* bumped; it's rare that that package receives security updates. Nonetheless it would be problematic if its bumps weren't sent out to everybody.
<eoli3n>
because nixos seems ready to production, so i want to undertand how it differs from debian
<gchristensen>
nixos is ready for production for sure :)
<eoli3n>
so security updates is a main problematic that needs to be as clear as possible
<simpson>
Well, okay, let's be as clear as possible: Why *don't* you run Debian unstable?
<simpson>
Nix has an alternative route to providing the stability that Debian achieves through their unstable->testing flow.
<eoli3n>
simpson : debian differs because it has a security repo, separated from main updates
b00gpie has quit [Read error: Connection reset by peer]
gustavderdrache has joined #nixos
<multun>
eoli3n: debian's workflow is similar. they provide security updates for older releases, and provide updates to newer ones
<simpson>
eoli3n: Right; why don't they just have one single holistic update flow instead? The reason is because in Debian, updating the version of a package is a different sort of painful operation from adding a new leaf package.
b00gpie has joined #nixos
<simpson>
A security-update-only repo that tries very hard to not change versions, and not change dependency graphs, and thus not incur (much) pain, is a natural desire resulting from business pressures on this sort of package manager.
<simpson>
However, in Nix, *every* change has the same rebuild costs, down (up?) the dependency graph. So it doesn't make sense to try to proffer "security" changes which are meant to be unobtrusive.
<simpson>
(Sorry for writing lots of words in IRC, but I'm not seeing this explicitly written down in the Nix manual.)
logzet has joined #nixos
<eoli3n>
maybe it should :) (be written somewhere)
b00gpie has quit [Read error: Connection reset by peer]
b00gpie has joined #nixos
<gchristensen>
as somebody who cares a lot about security and production employments, I view security-only updates as an expensive anti-pattern which traps users in to ancient versions of software and death-march projects every 5 years figuring out all the ways their software and infrastructure depended on the way of the world 5 years ago
<gchristensen>
and that instead, Nix allows deployers to write tests to verify that their infrastructure works with the software it is using, and makes it safer to deploy updates into prod. if problems and incompatibilities are found, rollbacks and undos are trivial
<gchristensen>
the strict security-only updates model is necessary when rollbacks are very difficult, and integration is hard to test
<simpson>
gchristensen: Indeed. It's to the point where I *assume* that deployments are as fast as possible, and that the low-hanging fruit is to figure out "on-ramps" so that code can get merged without slowing down the flow.
<clever>
gchristensen: i just run nixos-unstable, and only stop updating if things break hard, until its fixed again
<simukis_>
what’s the best way to see what derivations are causing "warning: dumping very large path (> 256 MiB); this may run out of memory" and which paths those are?
<clever>
sqlite> select path,narSize/1024/1024,datetime(registrationTime,'unixepoch') from ValidPaths where narSize > (1024*1024*512) order by registrationTime limit 15;
<clever>
sqlite> .mode column
<gchristensen>
O.o
<clever>
simukis_: this shows all paths in /nix/store, sorted by when they got added, and filters to those >512mb
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<simukis_>
thanks!
<clever>
simukis_: after that warning occurs, the problematic path will be at the bottom of the list from that query (if its >512mb)
<simpson>
energizer: ^^^ Related to our conversation yesterday? Apparently there *is* a way to do this.
<gchristensen>
I think if you pass a certain number of `-v`s it'll tell you
<clever>
yeah, thats also viable, but can be spammy if you have many such paths, or your machine is too fast and copies it quickly
<gchristensen>
yea
<simukis_>
not viable for me as my base derivation is huge
ramses_ has quit [Remote host closed the connection]
dumbintel has quit [Remote host closed the connection]
ddellacosta has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « Revert "nixos/xfce: use sessionPackages" »: https://git.io/JvnYZ
mac10688 has joined #nixos
ddellacosta has quit [Ping timeout: 272 seconds]
<eoli3n>
how to list failed upgrades which automatically rollbacked?
dansho has quit [Ping timeout: 240 seconds]
<clever>
eoli3n: if it fails to boot, then it never applied, so there is nothing to rollback
<clever>
failed to build*
<eoli3n>
so how to list failed builds ?
<clever>
eoli3n: nix doesnt record information about failed things, only successfull things
<eoli3n>
with automatic upgrade i mean
<nikola_i>
i am unable to install emacs-overlay. can someone point out to me a working config for overlay
<simukis_>
clever: so it seems like there are a couple of caveats: you won’t get any useful output if this is not the first instance where you're hitting this (i.e. the paths in question may be way down the list) and also `order by registrationTime DESC` to have newest things show up first.
<clever>
eoli3n: you could try to just `nixos-rebuild build` to make it build again and show the output
<simukis_>
but helped me nevertheless, thanks a lot
<eoli3n>
ok clever thx
<clever>
simukis_: ah oops, was just pulling that out of my sqlite history
<{^_^}>
#75584 (by Infinisil, 8 weeks ago, open): Configuration file formats for JSON, INI, YAML and TOML
sbetrium has quit [Quit: sbetrium]
<Taneb>
sondr3: I wrote one the other day for work
<evanjs>
clever: Trying to unpack rootfs image as initramfs..., rootfs image is not initramfs (write error); looks like an initrd, No filesystem could mount root, tried:
stteevveen has quit [Remote host closed the connection]
<evanjs>
clever: woo! had to make the one of the dep projects output to $out in a more nix-ish manner but programs are now running from the initrd-based system. Thank you!
<clever>
evanjs: nice!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fooooojasdflkj>
How do I merge two attributes but append results to preserve the superset? I tried using mergeAttrs: `nix-repl> (stdenv.lib.mergeAttrs {a=[0];} {a=[1];}).a # result: [ 1 ] # expected result: [0,1]`
noudle has quit []
<fooooojasdflkj>
nevermind it looks like `stdenv.lib.mergeAttrsConcatenateValues` is working now
<clever>
fooooojasdflkj: if your passing it to a nixos option, you want mkMerge
drakonis has joined #nixos
lukash is now known as lukash|away
gagbo has quit [Quit: I'm out !]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
amir has quit [Quit: No Ping reply in 180 seconds.]
cosimone has joined #nixos
ubert has quit [Quit: ubert]
amir has joined #nixos
smatting has joined #nixos
erasmas has joined #nixos
<fooooojasdflkj>
clever: I'm using it to make two different versions of a home manager nix file. I don't think I understand how to use mkMerge: nix-repl> (stdenv.lib.mkMerge {a=[0]; b="foo";} {a=[1]; c="bar";}).a #result: error: attempt to call something which is not a function but a set, at (string):1:2
<fooooojasdflkj>
two different versinos that are merged into the superset with rightmost files overriding left most
<fooooojasdflkj>
so I can have; home.nix, core.nix, personal.nix OR work.nix depending on environment variable
<fooooojasdflkj>
core.nix has git and emacs for instance because I use them everywhere
<fooooojasdflkj>
work.nix customizes my email for work
<fooooojasdflkj>
personal.nix customizes my email for personal
<clever>
fooooojasdflkj: mkMerge returns an attribute set, which the module framework will then merge at a later time
<clever>
fooooojasdflkj: and mkMerge takes a list of sets, not 2 sets as seperate args
<clever>
fooooojasdflkj: what you want, is mkIf, config = lib.mkIf true { ... }; inside all modules, and then just change the condition
<fooooojasdflkj>
clever: I think I know what you mean. I'll give that a try.
<floscr>
does anyone know how I could run it as a user without sudo ?
noudle has joined #nixos
terlar has quit [Ping timeout: 272 seconds]
terlar`` has joined #nixos
<floscr>
Or generally how I could run wg-quick without root rights?
<qyliss>
Probably you'd need to give the user CAP_NET_ADMIN
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JvnCv
<qyliss>
but by doing so you're giving the user a lot of permissions, so be careful
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvnCf
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<floscr>
Hmm yes that's what I was afraid of
<qyliss>
setting up network interfaces is just an inherently priveleged operation
<bdju>
https://github.com/NixOS/nixpkgs/pull/76656 I just noticed that rakudo is a version from 2017, then I saw this PR to update it. Any estimates when that will be merged?
<{^_^}>
[nixpkgs] @peti pushed 16 commits to haskell-updates: https://git.io/JvnCt
<bdju>
https://github.com/NixOS/nixpkgs/pull/77762 I'm also curious about this deluge update. An older issue was closed and then this one opened but it's still just sitting there it looks like.
<infinisil>
bdju: Reviewing and testing PRs is a good way to help out to get them merged sooner
<bdju>
I will consider that, but I don't really have skills in this area... I'm sure there comes a point where learning from 0 knowledge could still get it done faster and then it'd solve the problem for the future, so I won't rule it out just yet.
alexherbo2 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 10 commits to haskell-updates: https://git.io/JvnCF
o1lo01ol1o has quit [Ping timeout: 260 seconds]
fre has quit [Quit: fre: znc bye]
fre has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-cabal2spec: override Cabal to version 3.0.x »: https://git.io/JvnWe
chagra has quit [Ping timeout: 240 seconds]
chagra has joined #nixos
neeasade has joined #nixos
<kraem>
i'm playing around with unbound as a resolver. first unbound-control said the dir /etc/unbound wasn't present so i created, and now it doesn't seem to have access to openssl. looking at the unbound module expression it looks like it is built with openssl. can't find anything about it in the issues in nixpkgs. has anyone got unbound-control to work?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-policeman: don't build this package with ghc-8.6.x »: https://git.io/JvnWz
orbekk has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @wamserma opened pull request #79473 → modules/wireguard: fix typo in documentation → https://git.io/JvnWg
typetetris_ has quit [Quit: Connection closed for inactivity]
chagra_ has joined #nixos
savanni has left #nixos [#nixos]
WilliButz has quit [Remote host closed the connection]
chagra has quit [Ping timeout: 268 seconds]
Chiliparrot has joined #nixos
WilliButz has joined #nixos
<{^_^}>
[nixpkgs] @peti merged pull request #79317 → Update Haskell package set to LTS 14.23 (plus other fixes) → https://git.io/JvZlC
<__monty__>
Hmm, I pass a path that start with ~ to callPackage in most of my overlays. But with this particular overlay I get an error, "string '~/blah/default.nix' doesn't represent an absolute path" Why is this a problem?
zupo has joined #nixos
NoctisLa1 has quit [Read error: Connection reset by peer]
NoctisLa1 has quit [Read error: Connection reset by peer]
NoctisLa1 has joined #nixos
ivan has joined #nixos
domogled has quit [Ping timeout: 265 seconds]
wolfjb has joined #nixos
NoctisLa1 has quit [Ping timeout: 260 seconds]
<wolfjb>
I'm new to NixOS, trying out home-manager, I tried adding home.packages = [ pkgs.apache-maven ] (among other things obviously), but I get the error "error: attribute 'apache-maven' missing". the command `nix-env -qa '.*maven.*'` shows apache-maven-3.6.1, so do I need to add the version number in home.nix?
<gchristensen>
anyone seen their gpg-agent become totally unresponsive and stop working? even new shells, which use gpg-agent in its init, are blocked on creation
<multun>
wolfjb: packages have a name and a version, and are accessed using a nixpkgs attribute name. usually the name and attribute name are the same, but it can differ.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<wolfjb>
multun: thanks, that's good to know... why does `nix search` return different values than `nix-env -qa` ?
<multun>
wolfjb: these are meant to help understand what's going on there
<wolfjb>
cool! Thanks multun!!
<wolfjb>
I appreciate the link to the docs very much
chagra has quit [Ping timeout: 260 seconds]
<multun>
let me try to clarify a bit what's going on there: nixpkgs sort of is a dictionnary mapping package names to package definitions: { mypackage = package { name = "apache-package"; version = "1.0"; }; }
arjen-jonathan has quit [Ping timeout: 272 seconds]
leotaku has joined #nixos
<multun>
mypackage is the way you access it when you want to build / install it, and once it's installed, you don't need the mapping anymore, you just have the "name" field describing the package
stites has joined #nixos
gnidorah has quit [Quit: Connection closed for inactivity]
<wolfjb>
so, hopefully, mypackage will be pretty similar to the actual name value... in this case apache-packge
<wolfjb>
any reason not to make them the same thing?
knupfer has joined #nixos
leotaku has quit [Ping timeout: 272 seconds]
<nikola_i>
anyone using fzf to open files
<nikola_i>
i get zsh: permission denied
<multun>
wolfjb: sometime people just never use the full package name. I never heard anybody say "apache-maven", people just refer to it as "maven"
NoctisLa1 has quit [Read error: Connection reset by peer]
stites has quit [Remote host closed the connection]
NoctisLa1 has joined #nixos
leotaku has joined #nixos
<wolfjb>
multun: that's true. the counter example is the package 'silver-searcher', no one (that I know) calls it that, it's just `ag`, but I don't know of a single linux distribution that packages `ag` - they all package 'silver-searcher'
LysergicDreams has quit [Ping timeout: 256 seconds]
NoctisLabs has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
<wolfjb>
but that is the only example I can think of...
<kraem>
i've defined the `enableUnboundControl` option after the 'in'
<multun>
oh yeah you can't
chagra has joined #nixos
<multun>
you could either move the definition of enableUnboundControl up, or the writeFile down
<multun>
writeText*
nuncanada has quit [Read error: Connection reset by peer]
chagra_ has quit [Ping timeout: 272 seconds]
chagra has quit [Read error: Connection reset by peer]
chagra has joined #nixos
ng0 has joined #nixos
<kraem>
it looks like it's building now.. might have not read the error well enough (had a '[' instead of '{' when opening a block). crossing my fingers :)
fenedor has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chloekek has quit [Ping timeout: 240 seconds]
fendor has quit [Ping timeout: 260 seconds]
<kraem>
multun++
<{^_^}>
multun's karma got increased to 1
<cole-h>
How do I evaluate something from a hand-written .nix file? Say I have helper functions like stripLeadingWhitespace in a let block, and something that calls that in the in block. How would I get the result of that call?
<kraem>
multun: it built :) now i need to learn how to write a wrapper so the executable reads the right config file :)
<multun>
cole-h: let myfile = import ./mynixfile.nix; in myfile.myhelper
<cole-h>
How about from within the repl? :P
<multun>
kraem: have a look at wrapProgram
<cole-h>
Will the fact that I have `{ pkgs ? <nixpkgs>, ...}:` at the top change anything?
<multun>
cole-h: :l yourfile.nix
<multun>
cole-h: yes it will !
ehmry has joined #nixos
<multun>
your file then contains a function that takes a parameter called pkgs that defaults to the path to nixpkgs, and some other ignored parameters
chagra_ has joined #nixos
<cole-h>
Is that a good, bad, or neutral thing when I am trying to evaluate the variable from the `in` block?
<multun>
cole-h: I guess it's neutral / good, it all depends on what you'd like to achieve
chagra has quit [Ping timeout: 268 seconds]
<cole-h>
multun: I removed that and just added `lib = import <nixpkgs> {}.lib` and used `with lib;` in all my functions and that seems to have fixed it.
<cole-h>
Thanks for your help!
<multun>
cole-h: you'd have to do something like (import ./yourfile.nix) {pkgs = pkgs}
wolfjb has left #nixos ["ERC (IRC client for Emacs 26.3)"]
stepcut has joined #nixos
<kraem>
multun: thanks for the tip. the only example i could find in nixos/modules/ was azure-agent.nix - that one seems to package a derivation and call wrapProgram if an option is set. is that the recommended way?
teto has quit [Quit: WeeChat 2.7]
<multun>
kraem: well what do you want to achieve ?
<kraem>
i want to wrap an executable if an option is set.
<multun>
well then it looks like a reasonable option
<multun>
is that executable a systemd service?
Synthetica has quit [Quit: Connection closed for inactivity]
knupfer has quit [Ping timeout: 256 seconds]
sbetrium has joined #nixos
<kraem>
nope. i want to wrap $out/bin/unbound-control in unbound.nix (it's in pkgs, not the module)
v88m has joined #nixos
<multun>
kraem: oh you want to wrap it to add a default path to the config file?
<kraem>
multun: exactly :) i want to add `-c ${stateDir}` where all configs are saved
<multun>
kraem: I don't think that'll work as the module isn't brought into PATH
<multun>
I never tried but I don't think you'll ever find the wrapper you're looking for in your environment
<sondr3>
do I have to reboot for nix.nixPath to start? I'm trying to point it to the correct `nixpkgs` path but it still displays the old
<sondr3>
s/start/change
<sondr3>
oh... I've only been changing it for root and not my user
<sondr3>
whelp
<multun>
kraem: I mean, modules aren't like systemPackages unless you make some specific efforts to make it work
sbetrium has quit [Quit: sbetrium]
<kraem>
multun: oh alright. is there any possibility i can implement it in the /pkgs instead of /nixos that plays nicely with the module? it feels like that would create some weird coupling though
sondr3 has quit [Quit: WeeChat 2.7]
v88m has quit [Ping timeout: 272 seconds]
tilcreator has quit [Ping timeout: 240 seconds]
NightTrain has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
<fresheyeball>
Feb 07 15:53:37 dunlap kernel: mce: [Hardware Error]: CPU 2: Machine Check: 0 Bank 0: 9400004000040150
<fresheyeball>
this looks bad
<fresheyeball>
oh no
chagra has quit [Ping timeout: 256 seconds]
kleisli has joined #nixos
chagra has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
<Yaniel>
,locate libasound.so.2
<Yaniel>
,locate libasound.so
gkmngrgn has quit [Quit: gkmngrgn]
<{^_^}>
Found in packages: alsaLib
<{^_^}>
Found in packages: alsaLib
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
dingenskirchen1 is now known as dingenskirchen
stepcut has quit []
noudle has quit []
<{^_^}>
[nixpkgs] @Ma27 opened pull request #79485 → grocy: init at 2.6.0 → https://git.io/JvnRw
sondr3 has joined #nixos
<sondr3>
hm, I just switched to using home-manager to manage my xsession but it isn't starting up xmonad by default
<sondr3>
I have to run it from the tiny, tiny 80x80 xterm window first
kleisli has quit [Ping timeout: 260 seconds]
kleisli has joined #nixos
<dashkal>
sondr3: I had that problem as well. The "solution" I found was silly. I enabled xfce in configuration.nix. LightDM says I'm going to load into xfce, but I get my xmonad setup instead.
<dashkal>
I'm still hoping to find a better solution.
<sondr3>
dashkal: that's... quite the solution you found :P
<sondr3>
but thanks, it might be the escape hatch I need
<dashkal>
I'm still a bit confused why it worked. It's on my todo to get fixed, but it'll do for now since I have a working system.
<dashkal>
I'm used to ~/.xsession just showing up as another option in the display manager. But I had this beheviour with both LightDM and SDDM.
<multun>
kraem: nop, patching the package in a module is a bad idea. you can create a new package that only contains your wrapper, and unstall it using environment.systemPackages