<notgne2[m]>
bbigras: it might be easier to just not have it be a submodule at all, and instead use it as a flake input
<bbigras>
notgne2: could it be a conditional flake input? I don't want to include it when building with github actions
growpotkin has quit [Ping timeout: 246 seconds]
cosimone_ has joined #nixos
<notgne2[m]>
huh I don't think so, and if there is I wouldn't rely on it, I think that goes against the idea of flakes somewhat
<ar>
/31
cosimone has quit [Ping timeout: 260 seconds]
cosimone_ is now known as cosimone
rajivr has joined #nixos
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #105300 → Convert Emacs documentation from XML DocBook to Commonmark → https://git.io/JkNX6
ZaraChimera has joined #nixos
<bbigras>
notgne2: just to be clear, my private stuff is only things like my passwords, hostnames, privates ip adresses from work, ssh config, vpn stuff.
acarrico has joined #nixos
<bbigras>
I'll ask on the forum.
SomeoneSerge has quit [Quit: WeeChat 3.0]
vidbina has joined #nixos
oxalica1 has joined #nixos
<{^_^}>
[nixpkgs] @antifuchs opened pull request #105301 → zsh: Disable compiling in /usr/local/... as the site-function directory → https://git.io/JkN1t
oxalica has quit [Ping timeout: 256 seconds]
oxalica1 is now known as oxalica
shibboleth has quit [Quit: shibboleth]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mateon1 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #105302 → Convert Kakoune documentation from XML DocBook to Commonmark → https://git.io/JkN1N
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkNQy
<rogerr>
why doesn't `home.sessionPath = ["~/.local/share/foo/"];` work (echo $PATH doesn't show it in list) when i rdp into the system but it does when i ssh in? my rdp startwm.sh https://termbin.com/i1gq and .xprofile https://termbin.com/mcxp how can i debug this pls? i so desperate
<simpson>
So does this make more sense? Nix refuses to prepare your nix-shell environment because one of the packages that you requested can't build. It's not just marked broken; it *is* broken.
<fyr_>
Could be worse, I have a package that's failing to build but still thinks it succeeded ;)
<simpson>
I asked for `nix-build -A haskellPackages.advent-of-code-api` from my local nixpkgs.
<iqubic>
Cool. Thanks.
<iqubic>
Do you know which version of GHC (Haskell Compiler) nix attempts to use?
ris has quit [Ping timeout: 256 seconds]
<iqubic>
If the answer is no, I'd like to know that.
<simpson>
Yes, I do.
<cole-h>
> haskellPackages.ghc.version
<{^_^}>
"8.10.2"
<infinisil>
simpson: Nice lol
<fyr_>
extremely stupid question: what command would you run to evaluate that expression?
<iqubic>
Which version of GHC was attempting to use when you tried building the library that and generated that error message?
<simpson>
fyr_: Or, `nix repl <nixpkgs>` and then type it at the prompt.
<simpson>
iqubic: 8.10.2, like cole-h points out. I wasn't doing anything tricky; I was using the standard `haskellPackages`. I just pulled fresh nixpkgs (and over 3GiB of Nix store) just for you~
<iqubic>
Oh, thanks.
<fyr_>
ooh yup, `nix repl` was a command I was looking for earlier ty!
<iqubic>
Time to message the library maintainer
<eacameron>
Is there a way set up nix profile stuff for a new user, obviously not on NixOS?
<infinisil>
eacameron: If you did a multi-user install of Nix, that should work out of the obx
<infinisil>
box*
<eacameron>
infinisil: How does that get setup in multiuser installs?
<rogerr>
i want to rdp into my full env. what do i need to add to configuration.nix: services.xrdp.enable=true; home.nix: programs.xsession.scriptPath="startwm.sh"; home.sessionPath=["~/.foo"];? right now i can rdp into i3wm but ~/.foo isn't in $PATH, but it is if i ssh in. (startwm.sh https://termbin.com/i1gq .xprofile https://termbin.com/mcxp)
<{^_^}>
[nixpkgs] @Ericson2314 pushed 425 commits to staging: https://git.io/JkNAN
<Raito_Bezarius>
any idea in a makeTest-VM I get a "rebooting in 1 second" and nothing else for a while?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkAgd
aasg has quit [Client Quit]
aasg has joined #nixos
aasg has quit [Client Quit]
aasg has joined #nixos
<iqubic>
So, a haskell library that I want to use has just been updated on Hackage. How long after now should I expect this package to be available for use on Nix's Unstable Branch?
<dominikh>
I'm having an issue with environment.enableDebugInfo = true in my nixos configuration. /run/current-system/sw/lib/debug only contains entries for packages that I explicitly added to systemPackages, but none for their dependencies. nix does download cached -debug packages for the dependencies, and I do see them in /nix/store, but they don't get linked into /run/current-system/sw/lib/debug and
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<srhb>
gnidorah: The fetchers may or may not manipulate the sources before hashing in some way, so always use that method.
iH8c0ff33 has quit [Ping timeout: 260 seconds]
<gnidorah>
srhb: thank you! i've corrected the hash and pushed changes
<srhb>
gnidorah: Also, just an aside, github actually generates ".patch" urls for PRs too, which may be helpful for understanding the context of a patch later on, if a PR exists that represents that change :)
<TheSirC[m]>
I tried `nix-build` and `nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}"` without sucess...
<TheSirC[m]>
The first one do execute but does not output any link to the result
iH8c0ff33 has joined #nixos
<patagonicus>
How can I set up sway to start automatically? I want autologin, but setting up an X displaymanager just to start sway seems silly. Can I change what command is run on tty0 via the nixos config?
alp has quit [Ping timeout: 272 seconds]
rolodex________ has left #nixos [#nixos]
<TheSirC[m]>
<TheSirC[m] "srhb: Little question concerning"> With some random tries it seems that `nix-instantiate --eval --strict ./default.nix` works but now I want to understand _why_ ...
<srhb>
TheSirC[m]: Yeah, that's about right. It's only the evaluation part of modules, so nothing to build. I use `nix eval -f thefile` but `nix-instantiate --eval` is basically the same thin
<TheSirC[m]>
<srhb "TheSirC: Yeah, that's about righ"> Pretty well explained ! Thanks ! Back to the staring !
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fendor>
is the vscode build in nixpkgs with or without telemetry? And vscodium just doesn't have the infrastructure of vscode, e.g. vscode-with-extensions?
SoleSoul has quit [Remote host closed the connection]
ebbertd[m] has joined #nixos
sbock has joined #nixos
<{^_^}>
[nixpkgs] @jupblb opened pull request #105359 → vimPlugins.nvim-lsputils: override with popfix dependency → https://git.io/JkxGO
<fendor>
I see, I can use the vscode-with-extensions to install everything I need.
<ebbertd[m]>
Hello everybody, I am looking for help. I am setting up NixOS for the first time and so far I have a system up and running including GDM for login into a sway session. However, I do have a problem with the keyboard layout. I have the console keymap set to `de-latin1` and the xserver layout is set to `de`. But when I log into sway I still have the English keyboard layout. Does anyone know how to configure German keyboard
<ebbertd[m]>
<srhb "ebbertd: I do not think NixOS ha"> Thanks. I will look into what home-manager is.
<srhb>
ebbertd[m]: It's basically NixOS for your home directory
<srhb>
ebbertd[m]: So you get the ability to generate dotfiles declaratively, like NixOS can generate eg. config files in /etc/
<ebbertd[m]>
That sounds good
<stites[m]1>
Does anyone know of a nix packageset for a router? I am building a new one and it seems like I will need to go with OPNsense (or pfsense) -- would be cool to keep everything in nix
<srhb>
Raito_Bezarius: Short of hardcoding the change in your checkout, I don't see a good way.
<fufexan67>
hello, I have a question regarding TTYs. when I ctrl+alt+{F1..F6} I get no tty, and my monitor turns off, but the X session on tty7 works. why would that be?
iH8c0ff33 has joined #nixos
jonatanb has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 260 seconds]
iH8c0ff33 has quit [Ping timeout: 240 seconds]
fufexan67 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @lukegb to staging « cmake: 3.19.0 -> 3.19.1 »: https://git.io/JkxBt
Dedalo has joined #nixos
iH8c0ff33 has joined #nixos
<rogerr>
i want to rdp into my full env. what do i need to add to configuration.nix: services.xrdp.enable=true; home.nix: programs.xsession.scriptPath="startwm.sh"; home.sessionPath=["~/.foo"]; so ~/.foo is added to $PATH like it is if i ssh in? (startwm.sh https://termbin.com/i1gq .xprofile https://termbin.com/mcxp)
<{^_^}>
[nixpkgs] @FRidh pushed 333 commits to staging-next: https://git.io/JkxBb
<{^_^}>
[nixpkgs] @stigtsp opened pull request #105361 → perlPackages.CryptPerl: init at 0.34 → https://git.io/Jkxua
fufexan43 has joined #nixos
laerling has joined #nixos
<laerling>
Hey guys. Is it possible to 'import' a file not as a nix expression but as a string? Cause I have a very long string that I'd like to separate into its own file.
<MichaelRaskin>
readFile
fufexan43 has quit [Remote host closed the connection]
<MichaelRaskin>
Also, you can write a Nix expression that is just a single string literal
<MichaelRaskin>
The latter might or might not be less prone to breakage if flakes ever get stabilised and pushed too much
<laerling>
I thought of that as well, but I'd like to actually treat it as a valid source file, and to use syntax highlighting etc. I'll try readFile, thanks.
<Reventlov>
MichaelRaskin: well the store is working nicely, as long as it's on a single machine (nfs or not)
<Reventlov>
but ok.
<matthewcroughan_>
Why does colemickens install mako in his mixins/ folder, but also in sway.nix?
<lukegb>
Reventlov: you could, in theory, do something complicated involving an overlay mount, but it would be completely unsupported and likely to break
<Reventlov>
yeah, thought about that
<Reventlov>
the easiest would be to just duplicate the stores
<Reventlov>
(as i'm using a non-root installation, that would be doable I think, but too much hassle)
<{^_^}>
[nixpkgs] @siraben opened pull request #105364 → doc/stdenv/cross-compilation: convert to markdown → https://git.io/Jkxow
<srhb>
Is there an example of a _nicely_ packaged library that provides python modules on top of some c/cpp/fortran stuff? I feel like I'm always hacking this together.
<rawtaz>
it seems that services.nixosManual.showManual is no longer in 20.09, where did it go?
<MichaelRaskin>
I think it just disappeared
<rawtaz>
i tried to find it being removed in some specific PR or issue but havent found it yet :)
<rawtaz>
MichaelRaskin: do you think it is not *supposed* to be missing?
<MichaelRaskin>
I think the removal was intentional
<MichaelRaskin>
Like aaaa, so how do we secure no-login-required browser running on a forgotten VT
<raghavsood>
Looks like it was meant to be documented in https://github.com/NixOS/nixpkgs/pull/83651, but it never made it into 20.09 - not sure if another PR did document it before the release was cut though
<rawtaz>
i guess that's no biggie. or do you think it needs to be post-documented?
<jophish>
If I have a test which itself uses nix commands, is it possible to run this in a nix build
<jophish>
obviously not mutating the actual store, no need for recursive nix
<jophish>
but pretending
<marble_visions>
hi all, i've installed the nixpkgs xmind package, but I get an error window that tells me to look at the following logfile (contents --> https://pastebin.com/GVkD7Dej)
<marble_visions>
is this bugreport worthy?
cr4y1 has joined #nixos
zupo has joined #nixos
<infinisil>
jophish: You can do evaluations, but no builds. For this you can set `NIX_REMOTE=local?root=$(mktemp -d)`
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
berberman has joined #nixos
berberman_ has quit [Ping timeout: 272 seconds]
<jophish>
infinisil: thanks, I'll see if that's good for me
<infinisil>
I think basically just `nix-instantiate` calls, no `nix-build`'s
<infinisil>
(so derivation instantiation should work)
<jophish>
ah, the thing I'm calling wants access to /nix/var :(
<davidtwco>
Will #98541 be backported to the 20.09 branch? Work is using NixOps pinned to nixos-20.09 and some colleagues cannot enter the nix-shell because 20.09 doesn't have that PR (and we'd rather stick to the stable releases).
<{^_^}>
[nixpkgs] @davidtwco opened pull request #105370 → nixos/wooting: add xinput support → https://git.io/JkxAL
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/JkxA7
nehsou^ has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domogled has joined #nixos
<rawtaz>
where can i find a list of which methods `mkpasswd` in the minimal iso environment supports? there's no `man 5 crypt` in the env, nor `man 3 crypt_gensalt` in case that would be relevant.
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @turboMaCk opened pull request #105371 → elmPackages.elm-review: Init at 2.3.3 → https://git.io/Jkxjh
zupo has joined #nixos
zupo has quit [Client Quit]
<{^_^}>
[nixpkgs] @vbgl opened pull request #105373 → ocamlPackages.odate: init at 0.6 → https://git.io/Jkpeo
mallox has joined #nixos
gustavderdrache has joined #nixos
mallox has quit [Client Quit]
endformationage has joined #nixos
astylian has joined #nixos
<jophish>
infinisil: Solved it by adding a do-nothing nix-env to PATH
<jophish>
:D
iH8c0ff33 has quit [Ping timeout: 256 seconds]
<hexa->
davidak[m]: hey, can I get you to look into the mozilla tts pull request?
astylian has quit [Remote host closed the connection]
<guisanpea>
I am fairly new to nixos and I have a problem which I dont find a solution
<srhb>
guisanpea: Welcome. :) Ask away.
sorki has joined #nixos
<guisanpea>
I am trying to create an environment with home manager and nixos but when I try to create the switch i run into the following erro
<infinisil>
jophish: Hehe nice
<guisanpea>
[nixie@nixos:~/.config/nixpkgs]$ home-manager switch /nix/store/lcg4n8ca3c380drjxgwmv86n173n58qa-home-manager-generationStarting home manager activationActivating checkFilesChangedActivating checkLinkTargetsActivating writeBoundaryActivating installPackagesreplacing old 'home-manager-path'installing 'home-manager-path'building
<guisanpea>
'/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv'...error: packages '/nix/store/k5447y0dd2s1294fpp2cz536mjxxb4k0-git-2.28.0/etc/bash_completion.d/git-prompt.sh' and '/nix/store/57gsbs8hr1bmd6dbb5sdx4c6m4ghzg62-git-2.28.0/etc/bash_completion.d/git-prompt.sh' have the same priority 5; use 'nix-env --set-flag priority NUMBER
<guisanpea>
INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)builder for '/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv' failed with exit code 1error: build of '/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv' failed
<guisanpea>
[nixie@nixos:~/.config/nixpkgs]$ home-manager switch /nix/store/lcg4n8ca3c380drjxgwmv86n173n58qa-home-manager-generationStarting home manager activationActivating checkFilesChangedActivating checkLinkTargetsActivating writeBoundaryActivating installPackagesreplacing old 'home-manager-path'installing 'home-manager-path'building
<guisanpea>
'/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv'...error: packages '/nix/store/k5447y0dd2s1294fpp2cz536mjxxb4k0-git-2.28.0/etc/bash_completion.d/git-prompt.sh' and '/nix/store/57gsbs8hr1bmd6dbb5sdx4c6m4ghzg62-git-2.28.0/etc/bash_completion.d/git-prompt.sh' have the same priority 5; use 'nix-env --set-flag priority NUMBER
<guisanpea>
INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)builder for '/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv' failed with exit code 1error: build of '/nix/store/9r0w7wch48qrcf5hil8xh4vjhgn16jrp-user-environment.drv' failed
<srhb>
guisanpea: Please use a pastebin service for longer pastes next time :)
<guisanpea>
Sorry, sent twice, I dont know why newlines are not sent
sorki has quit [Remote host closed the connection]
<maralorn>
I am slightly annoyed by the installer. I mostly need it in one context. I want to install nixos on a VM were I cannot choose the rescue/install-iso. So I get thrown into a random linux rescue-system. Now I want to install nixos into easy steps 1) install nix in the livesystem 2) install nixos on the VM.
<maralorn>
My issue: The installer does not work as root.
<maralorn>
But I don‘t even have a non-root user in my emergency system and don‘t really want to create one because doing this stuff as root is fine.
<maralorn>
Neither single user nor the multi user install.
<hexa->
> the installer
<{^_^}>
undefined variable 'the' at (string):440:1
<hexa->
are you talking about the install environment?
<UnhinchedMind>
Does someone know, how to change `$out` for symlinkJoin, so that the symlinks won't be installed in the root directory but inside a subdirectory.Normal behaviour:<hash>-symlink-created.drv|- first-linked.drv -> /nix/store/...|- second-linked.drv -> /nix/store/...What I want:<hash>-symlink-created.drv|- DIR/first-linked.drv -> /nix/store/...|-
<UnhinchedMind>
DIR/second-linked.drv -> /nix/store/...Reference to symlinkJoin:https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix#L282-L303
pbb has quit [Ping timeout: 272 seconds]
<hexa->
maralorn: download and execute :)
<hexa->
as root, because kexec
pbb has joined #nixos
<UnhinchedMind>
Does someone know, how to change `$out` for symlinkJoin, so that the symlinks won't be installed in the root directory but inside a subdirectory.A kind of graphical representation of what I want. https://pastebin.com/3KECy2K1Reference to symlinkJoin:https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix#L282-L303
sorki has quit [Remote host closed the connection]
cosimone has quit [Client Quit]
sorki has joined #nixos
bitmapper has quit [Quit: Connection closed for inactivity]
Acou_Bass has joined #nixos
jonatanb has joined #nixos
iH8c0ff33 has joined #nixos
cosimone has joined #nixos
cole-h has quit [Ping timeout: 256 seconds]
iH8c0ff33 has quit [Ping timeout: 246 seconds]
fendor_ has joined #nixos
jonatanb has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
malook has quit [Quit: malook]
fendor has quit [Ping timeout: 272 seconds]
fendor_ is now known as fendor
<bigvalen>
Despite removing mono and wine from my configuration.nix, I'm getting an error - "error: while setting up the build environment: opening file '/nix/store/hhff1g7gzzmn2bzzv8s5bhd5xybf6w2s-system-units.drv.chroot/nix/store/fn1la2j5v58mnjw18wsrfjvyv705lq9r-wine-mono-4.9.4.msi': Permission denied" - how would I work out the shell commands it's trying to run, that's generating that error ?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkpGP
astylian has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<rogerr>
i have home.sessionPath=["~/.foo"]; in home.nix. when i ssh in, $PATH shows it but not if i rdp in. i verified __HM_SESS_VARS_SOURCED=1 on both, so something must be overwriting PATH when i rdp in. how can i figure out what and fix it?
<Reventlov>
so i'm trying to rebuild / switch, and I get this error: https://0x0.st/i78S.txt
<Reventlov>
how should I go to find out why I'm getting this ?
<Reventlov>
"error: build of '/nix/store/cr0cs0hbxgbhnsz8p12h6cl89cckq3iw-sound-theme-freedesktop-0.8.drv' on 'ssh://rgrunbla@brunch.lip' failed: builder for '/nix/store/cr0cs0hbxgbhnsz8p12h6cl89cckq3iw-sound-theme-freedesktop-0.8.drv' failed with exit code 1"
<UnhinchedMind>
Reventlov I think the reason is a few lines down the log. It looks like "ls: cannot access 'conftest.file' No such file or directory" is the problem. checking whether build environment is sane... ls: cannot access './configure': No such file or directoryls: cannot access 'conftest.file': No such file or directoryconfigure: error: ls -t appears to
<UnhinchedMind>
fail. Make sure there is not a brokenalias in your environmentconfigure: error: newly created file is older than distributed files!Check your system clock
<rawtaz>
question: im installing nixos for the first time on this system, and in my config i have: users.users.root = { hashedPassword = "..."; }; , but despite this, nixos-install tells me "setting root password..." and then asks me to provide a root password. why is it that? i would expect that it uses the hashed one i already provided.
<woffs>
rawtaz: nixos-install --no-root-passwd
<infinisil>
Though yeah, that does seem like an oversight in the installer
<{^_^}>
[nixpkgs] @Ericson2314 pushed to more-rustc-musl « rustc: Improve musl support »: https://git.io/JkpWo
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #105383 → rustc: Improve musl support → https://git.io/JkpWX
<rawtaz>
woffs: still though, is there a reason it's not smart enough to look at the config to determine if it's supposed to ask for a root password?
<rawtaz>
infinisil: ah ok
<rawtaz>
hm, now that i have this prompt, should i cancel the process and re-run it, or just enter a password and it wont apply?
<rawtaz>
woffs: btw thanks :D
<Reventlov>
UnhinchedMind: hmm
respawn_ has quit [Quit: Leaving]
<Reventlov>
UnhinchedMind: i don't really know about those files, let me search what they are
<rawtaz>
ah ok, i realize nixos-install before that prompt said Install finished, and now that i accidentally gave it two different passwords it told me it failed to set it, so i guess it should be fine :)
rajivr has quit [Quit: Connection closed for inactivity]
kalbasit has joined #nixos
<infinisil>
rawtaz: nixos-install is always safe to abort and restart. It won't have to do everything again
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkplX
<rawtaz>
good to know :)
ae-mo has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KarlJoad has joined #nixos
nf has joined #nixos
zupo has joined #nixos
<KarlJoad>
I am trying to write an expression to build a package for myself, and need to pull 2 sets of sources into the environment. I found the srcs option, but I don't understand its type.
<rawtaz>
lol here's another silly question: if you made a change to the configuration.nix and want to revert that, is there any way to do that once that file is saved? i dont know what the old value for a setting was, but would like to put it back.
astylian has quit [Remote host closed the connection]
<nf>
why is there both a users.users.<name>.hashedPassword and users.users.<name>.initialHashedPassword ? when does it make sense to set both at the same time ?
<edef>
they are equivalent if users.mutableUsers = false
<nf>
yes
<nf>
what about mutableUsers = true
<edef>
hashedPassword will always overwrite, initialHashedPassword will only overwrite if no password is set already
<shapr>
NixOS is my daily deriver
<infinisil>
rawtaz: Nope, unless you enabled `system.copySystemConfiguration` before
<nf>
oh i see
deadpixels has quit [Client Quit]
<shapr>
lemme guess, someone else has come up with that joke?
<nf>
so it doesn't make sense to set both at the same time, but it makes sense to have the two options available
deadpixels has joined #nixos
<infinisil>
rawtaz: That setting at least "backs up" `/etc/nixos/configuration.nix`
<infinisil>
KarlJoad: A random example that does use `srcs` is pkgs/applications/audio/sisco.lv2/default.nix
<EmoSpice>
So I'm still setting up my dwm derivation (I'm sure some of you were around a few days back when I had other questions), and I'm onto dependencies. For instance: my build depends on `slock` to lock my screen. I can see a reference to slock when running `nix-store -qR $(which dwm)`, but in my user environment, the command is not available. What am I misunderstanding? Is this simply because it's not
<EmoSpice>
symlinked into my environment? Is there a way to say "This executable depends on this other executable at runtime so link it into the user's environment"?
davidv7_ has joined #nixos
<lukegb>
I think usually that's done with `makeWrapper` and asking it to add things to the PATH
<EmoSpice>
I'll read up on that. Thanks for the pointer.
<infinisil>
EmoSpice: If you yourself depend on slock, you need to install slock to your profile
<lukegb>
(if it's required at runtime in all cases; if it's down to user config then I think it's usually the user's prerogative to make sure it's available)
<infinisil>
I don't think makeWrapper is what is being looked for here
<lukegb>
yeah
<KarlJoad>
infinisil: That's exactly what I was looking for!
<infinisil>
EmoSpice: So I guess you have two dependencies: For one dwm depends on slock, but also you yourself want to call slock, that correct?
<infinisil>
I guess s/dependencies/dependency-links
davidv7 has quit [Ping timeout: 256 seconds]
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
iqubic has joined #nixos
<EmoSpice>
infinisil: sort of? I want to be able to call slock from dwm itself but currently that's reliant on a default PATH. I had assumed that slock would be available for my user if it were installed for dwm, but thinking on it more that's probably not true.
<lukegb>
What do you mean by "installed for dwm"
<EmoSpice>
My dwm build currently has it listed both as buildInput and `nix-store -qR $(which dwm)` shows a reference to it, but my keybind for it isn't working.
<infinisil>
Ah, so when you start dwm, that slock would be already in PATH, I think that might be makeWrapper that you're looking for after all!
<infinisil>
At least this is how I understand it now
<EmoSpice>
Well, let me go read up on makeWrapper and come back if I'm still lost
<iqubic>
So, there's a Haskell library on Hackage that was updated yesterday. How long should I expect to wait before the most up to date version of this library is in Nix?
<infinisil>
Although, I can imagine makeWrapper not working because WM's set up PATH with the users session somehow
<EmoSpice>
many wms may do such a thing, but I am positive that dwm does not.
<iqubic>
So, this particular haskell library was recently updated (yesterday) to 0.2.7.1. Is there some way to get the latest version of this into nix (even it if is just my local checkout), so that I may use it?
alp__ has joined #nixos
<EmoSpice>
iqubic: Create an overlay that overrides the version?
<srhb>
iqubic: callHackageDirect + overlays can be useful.
<srhb>
iqubic: It's documented in nixpkgs/lib/fixed-points.nix, but I just treat that bit as a black box for "how to override haskellPackages correctly"
<iqubic>
I see.
<srhb>
Because it really oughtn't be that complex.
<iqubic>
I assume that "yourOverlay" is the name of the file, yeah? And if so, is it local to the directory that my shell.nix is in, or will I have to use ~/hs/aoc20/advent-of-code-api ? to refer to it?
<srhb>
It needn't be a file, you can just `let yourOverlay = self: super: ...; in import <nixpkgs> { overlays = [yourOverlay] }
UnhinchedMind has quit [Remote host closed the connection]
<iqubic>
I think it will be nicer if I put the overlay is different file.
<srhb>
OK, then sure, go ahead :)
<srhb>
It's relative to the shell.nix
<iqubic>
Cool.
<{^_^}>
[nixpkgs] @reedrw opened pull request #105391 → r2mod_cli: init at 1.0.5 → https://git.io/JkpgX
<iqubic>
Now for the moment of truth. Will this work or not?
growpotkin has joined #nixos
<iqubic>
Nope. Not working.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
iqubic: Pastebin the problem? :) Some packages need a little massaging, and callHackageDirect is a bit stupid in that it just tries to callCabal2nix-convert the cabal file to a nix expression on the fly.
<srhb>
(in which case we might have been better off just overriding the source, but depends on the package)
<KarlJoad>
How can I refer to the file locations of extracted tarballs in a derivation?
hlolli_ has joined #nixos
<srhb>
KarlJoad: Depends how you fetched it. If it's just a fetchTarball, you can reference that directly.
<srhb>
KarlJoad: that is, if package `foo` is a `mkDerivation` with `src = fetchTarball ...` then `foo.src` is the path to the unpacked tree.
<iqubic>
Alright. Well, when calling shell.nix, It's never even evaluating the overlay.
alp__ has quit [Ping timeout: 272 seconds]
<KarlJoad>
srhb: Gotcha. That's what I was looking for.
cosimone has joined #nixos
<iqubic>
Even when I remove a few brackets from the overlay file, I'm still only getting the message that the 0.2.7.0 version of the library is broken.
<srhb>
iqubic: Oh sorry, overlays needs to be [(import ./aocAPIOverlay.nix)] I believe
<iqubic>
Ah.
<srhb>
Weird that that doesn't result in an error...
<iqubic>
It doesn't.
iH8c0ff33 has joined #nixos
<iqubic>
And adding the import doesn't work either. It just gives me the same error about the current version being broken.
ae-mo has quit [Ping timeout: 245 seconds]
cosimone has quit [Remote host closed the connection]
<srhb>
Yeah, I think you're hitting yet another very annoying thing in haskellPackages -- your changed package doesn't propagate properly into the other IFD-functions like callCabal2nix
<iqubic>
Yeah, that's annoying.
cosimone has joined #nixos
<srhb>
So you'll need to explicitly override it in your callCabal2nix call
<srhb>
Which makes the overlay more or less useless because you could just have done that directly... Meh.
<iqubic>
Well, that's not working.
<srhb>
As in, same error?
<iqubic>
Yes.
<srhb>
Well, I guess I may be mistaken about the last breakage then, which is something at least.
<jbal[m]>
If I have a derivation at `./derivation.nix` (of the form `{stdenv, fetch....}: stdenv.mkDerivation....`) how can I make that available in a `shell.nix`?
<srhb>
iqubic: oh, it's overlay_s_ in the nixpkgs argument
<srhb>
iqubic: That would explain why it's not giving you an error, too.
<dminuoso>
jbal[m]: You can use nix-shell directly on that.
<srhb>
And then hopefully cabal2nix _does_ really use the updated set.
<iqubic>
srhb: We have different results now: "error: infinite recursion encountered, at undefined position"
<jbal[m]>
I know, but I want other packages in the `shell.nix` too
<srhb>
sigh :)
<iqubic>
I wish I knew what was going on here.
<srhb>
iqubic: If you use hsuper instead of hself in the call to callHackageDirect, I _think_ that'll do it, but I've actually never understood that recursion completely either. It must be because callCabal2nix now depends on that overlay, but... I'm guessing now.
vidbina has quit [Ping timeout: 256 seconds]
<iqubic>
Nope. That doesn't fix it.
<srhb>
Oh, okay.
<iqubic>
Why is Haskell so arcane?
<srhb>
It's not really haskell so much as haskellPackages
<srhb>
It's showing its age unfortunately.
<iqubic>
Yeah. I'd love for that to overhauled.
<srhb>
I can't seem to easily reproduce that error though..
<iqubic>
Why not?
<iqubic>
What happens when you try?
<srhb>
Well I don't have your project at hand, but making a minimal cabal init that depends on that api, things seem to work.
<matthewcroughan_>
Anyone got a working extraConfig in their sway configuration?
<matthewcroughan_>
on home-manager*
<matthewcroughan_>
for me, it seems not to create a .config/sway/config
<iqubic>
"src = pkgs.nix-gitignore.gitignoreSource [] ./.;" I think that's causing the issue, but I'm not too sure.
<srhb>
uhhh. :)
<iqubic>
What?
<srhb>
Just confused why that would cause the issue in general.
<iqubic>
I'm going to try a thing.
<srhb>
Try the thing :-)
orivej has quit [Ping timeout: 256 seconds]
<iqubic>
srhb: I have no freaking clue why, but moving the overlay into my shell.nix and removing the overlay from a different file did actually fix my issue.
iH8c0ff33 has quit [Ping timeout: 265 seconds]
lsix has quit [Ping timeout: 268 seconds]
<srhb>
iqubic: That does sound mysterious. But glad the issue is "fixed"
<iqubic>
Alright. Yeah. It looks like having it in a different file is causing an error.
<iqubic>
I'm so perplexed right now.
<srhb>
iqubic: I just noticed that that file isn't valid as you pasted it too, but you probably fixed that earlier? (extraneous semicolon at the end)
<srhb>
And again, that should have been a syntax error...
<Fare>
I'm trying to run tests in CI, and it looks like they aren't run for me.
<{^_^}>
[nixpkgs] @kisik21 opened pull request #105397 → WIP: nixos/mailman: make Postfix support optional (provided you configure the MTA yourself) → https://git.io/Jkp10
<{^_^}>
#105397 (by kisik21, 52 seconds ago, open): WIP: nixos/mailman: make Postfix support optional (provided you configure the MTA yourself)
<vika_nezrimaya>
I started working on integrating Mailman with other MTAs but I need feedback on the PR before I have enough confidence to allow someone to merge this
<vika_nezrimaya>
I'm pretty sure my Nix writing style is kinda rough and documentation of what I've done here is... lacking
<vika_nezrimaya>
I've never really refactored a NixOS module before after all >.<
elementsmatrix[m has left #nixos ["User left"]
rgrau has joined #nixos
<{^_^}>
[mobile-nixos] @samueldr opened pull request #248 → mruby-builder: Fix `passthru` being required for mruby builder → https://git.io/Jkp1N
<KarlJoad>
How can I unpack 2 different sources (using fetchTarball) to different directories? Also, nix-build is building in the directory of the default.nix file. That feels wrong. Am I doing something wrong?
Dedalo has joined #nixos
<Fare>
where are doCheck and doInstallCheck documented? When should I use them, how do I override them, etc.?
<Fare>
Aha, in the *nixpkgs* manual!
alp__ has joined #nixos
pushqrdx has quit [Read error: Connection reset by peer]
fuiltilt has joined #nixos
jonatanb has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.identify: 1.5.9 -> 1.5.10 »: https://git.io/JkpHb
oida has joined #nixos
fendor has quit [Remote host closed the connection]
aswanson has quit [Ping timeout: 264 seconds]
<Fare>
I would like my default.nix to somehow extract the package name and version from git describe --tags --always and other such information, but is that even possible?
<Fare>
Right now, I extract the information into a file ./version.ss and then have default.nix read that version.ss.
<{^_^}>
[nixpkgs] @arcz opened pull request #105400 → libff: init at 1.0.0 → https://git.io/JkpQ3
<xenophile>
Hello. So I'm wondering how to patch suckless software on nixOS. So I managed to patch st through my nixos config file but when I try to patch dmenu nothing changes. It doesn't even give me an error when I rebuild??
<aasg>
Just to confirm I'm not missing something, is there a function to parse hexadecimal numbers in Nix or Nixpkgs?
<{^_^}>
[nixpkgs] @jonringer pushed 13 commits to python-unstable: https://git.io/JkpQr
aswanson has joined #nixos
philr has joined #nixos
pushqrdx has joined #nixos
duckfullstop has quit [Read error: Connection reset by peer]
<{^_^}>
#104785 (by Xe, 5 days ago, open): nixos/modules/tailscale: add package as an option
<KarlJoad>
How can I unpack 2 different sources (using fetchTarball) to different directories? Also, nix-build is building in the directory of the default.nix file. That feels wrong. Am I doing something wrong?
<infinisil>
KarlJoad: Didn't you ask that earlier already?
<infinisil>
Yeah, did what I suggested before not work?
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #105411 → ucg: init ai 20190225 → https://git.io/JkpN1
veleiro2 has joined #nixos
<KarlJoad>
infinisil: You did answer how to define multiple sources. Now I'm getting an issue where the unpacked sources I downloaded are being placed in the same directory as the default.nix file I'm building with. Because the nix-daemon builder doesn't have access to this directory, it can't write things. In addition, I think they are trying to overwrite each other.
<jdnixx[m]>
^so would this not make for a better overall /nix store?
Guest23542 has joined #nixos
<colemickens>
seems like it'd be useful to replace squashfs in places its used, but /nix fundamentally isn't usually a readonly image
<simpson>
jdnixx[m]: Not overall, because it appears read-only, like squashfs or cramfs or CD ISO images.
<KarlJoad>
infinisil: I can make a Gist of the file so you can see what I'm working with.
<simpson>
colemickens++ for better words
<{^_^}>
colemickens's karma got increased to 47
<{^_^}>
[nixpkgs] @jonringer pushed 7 commits to python-unstable: https://git.io/JkpA1
<Fare>
what's the easiest way to add/override one attribute in an attrset? (x // builtins.listToAttrs [ {name=k; value=v} ]) ?
<jdnixx[m]>
wait wut
<gchristensen>
if you squashfs every path individually, then cpio each squashfs separately, and then cat them all together at the end you get a decently fast enough experience if you use IFD or recurisive nix
<jdnixx[m]>
colemickens: isn't /nix/store basically just a read-only ext4?
<colemickens>
it's not an image, and it's not read-only?
<MichaelRaskin>
It is not, there are builds
<colemickens>
any time you do a nix-build, or update, those write to the store
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
vika_nezrimaya has quit [Ping timeout: 256 seconds]
<Fare>
consAttr = n: v: a: a // listToAttrs [ { name = n; value = v; } ]
<gchristensen>
for the ISO, dwarfs might be interesting
<gchristensen>
but otherwise, no, the /nix/store is not a special filesystem -- it is just your regular filesystem temporarily mounted read-only with a bind mount
<simpson>
> let k = "asdf"; in {} // { "$k" = "test"; } # Fare
<{^_^}>
{ "\$k" = "test"; }
<simpson>
Oh, whoops, something happened to my antiquote.
<simpson>
> let k = "asdf"; in {} // { "${k}" = "test"; } # Fare
<{^_^}>
{ asdf = "test"; }
kalbasit has joined #nixos
<samueldr>
simpson: just so you know { ${"a"} = 1; } -> { a = 1; }; giving the key as a string is not necessary
<simpson>
Cool tool. Also no idea; I can't reproduce the error. I normally use --run instead of --command, but either way, it works. I'm even using the same hash of glances.
<energizer>
i'm on nixos-unstable
<wenngle[m]>
I cannot reproduce the error either. I'm on nixos-unstable as well.
MichaelRaskin has quit [Quit: MichaelRaskin]
<energizer>
isn't that the error for trying to run an x86 executable on ARM?
<energizer>
that's what the internet says
<simpson>
Oh, it's the error for so many things. I think that the bin/glances binary is a shell script. Is it executable and is your store mounted properly?