<iqubic>
clever: I have now gone through and detached /dev/sda5, and turned /dev/sda2 online.
utdemir has quit [Read error: Connection reset by peer]
<iqubic>
What do I do next to give /dev/sda2 the whole rest of the SSD?
<clever>
iqubic: thats what the online command did
<clever>
iqubic: you must resize the sda2 partition to occupy the entire disk, and then do online -e again
shabius has joined #nixos
<iqubic>
Can I safely delete /dev/sda5?
<gyroninja___>
Is there a way for me to manually download the nar.xz and have nix install it into the nix store?
alex`` has quit [Read error: Connection reset by peer]
utdemir has joined #nixos
shandogs has joined #nixos
<{^_^}>
[nixpkgs] @das-g opened pull request #64320 → lazydocker: init at 0.5 → https://git.io/fj6ol
<clever>
iqubic: if its not shown in `zpool status -v`, yes
shabius_ has quit [Ping timeout: 268 seconds]
<clever>
gyroninja___: if you put both the .narinfo and the .nar.xz into a folder, you can `nix copy --from file:///path/to/dir /nix/store/hash-name` to "download" it from that dir
<lordcirth__>
samueldr, hey, I got the image to boot on my RasPi! Thanks! Is there any easy way to insert the final configuration.nix into the image? The one in the repo has lots of stuff, but the built one is basically blank.
stepcut has quit [Read error: Connection reset by peer]
gxt_ has quit [Quit: WeeChat 2.4]
<samueldr>
not really, and there is going to be a change (wip already) to instead put a sample configuration.nix on that installer media
<lordcirth__>
samueldr, also, while it boots, I can't rebuild because it says I need Grub settings
<samueldr>
use nixos-generate-config
<lordcirth__>
Ah ok
<samueldr>
it should pick up that it's the arm system and seed the configuration with the right options for disabling grub and enabling extlinux config stuff
day|flip has joined #nixos
pareidolia has joined #nixos
<lordcirth__>
Yeah, I see that now. cool!
stepcut has joined #nixos
adamantium has quit [Remote host closed the connection]
<switchy>
I'm trying to use nix-shell to provide a build environment (a bunch of packages in a pkgs.buildEnv) for some code I'm working on, but NIX_LDFLAGS has /nix/store/...-shell/lib{,64} rpaths that don't exist (and are not the -L entries for the environment itself) -- is this expected? is there a better way to get the lib/include directories for this environment?
<Shados>
Miyu-chan: I've been reading a late-80s book about some "Factorio in real life" stuff, namely an electronic control system used to minimize downtime and related issues in expensive transfer lines, does kinda make me want a more complicated/detailed Factorio
<clever>
Miyu-chan: ive been wanting to use haskell on an AVR or MIPS thing, and copilot looks like it may work
<Shados>
Huh
<Miyu-chan>
Oh cool. Checking.
<Miyu-chan>
Oh.
<Miyu-chan>
Monad and reflections.
<Miyu-chan>
At least if I understand "reify" correctly.
<Shados>
The control system I've been reading about is kinda like a concurrent FSA framework, where each machine gets logically broken down into 'mechanisms' (a component of a machine that cannot interfere with itself), and then has a kind of state/transition table written for it
<Shados>
I say "kind of" because it doesn't describe what state the mechanism *should* transition to, but what states are valid for it to transition to, and much of the 'state' is real-time physical sensor input
fresheyeball has quit [Quit: WeeChat 2.4]
<Miyu-chan>
clever:-- We need to cast the Word8 to a Float. Note that it is an unsafeCast, as there
<Miyu-chan>
-- is no direct relation between Word8 and Float.
<Miyu-chan>
That's... weird.
<clever>
that is weird
<Miyu-chan>
unsafeCast from Word8 to Float should give you a weird result.
<clever>
i would agree
<Miyu-chan>
I think this is its own implementation?
<clever>
Miyu-chan: i think its mostly designed around a WriterT, which i think is already a free monad?
<Miyu-chan>
Oh. I'm reading it right now. Giff me a few.
<clever>
Miyu-chan: lets also switch to #nixos-chat
zacts has joined #nixos
foxit has left #nixos ["WeeChat 2.4"]
phreedom has joined #nixos
<pie_>
woohooo got my redo of r-modules to mostly eval
psy3497 has joined #nixos
v88m has quit [Ping timeout: 258 seconds]
v88m has joined #nixos
hoijui has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
yastero has quit [Ping timeout: 258 seconds]
sb0 has joined #nixos
cxx_newb has joined #nixos
hyper_ch2 has joined #nixos
<cxx_newb>
Hello guys. I am migrating from archlinux. In my .zshrc I reference completion.zsh and key-bindings.zsh from fzf which were located under /usr/share/fzf on arch. After installing fzf in nixos I found those files in /nix/store/6dn8jhgymvr9ws7piv4n2zvmcbwijj8v-fzf-0.17.5-bin/share/fzf/ which looks kinda ugly in my zshrc (and might change with updates
<cxx_newb>
?) I would like to know if there is any other way to reference those files (zshrc is from a dotfiles repo and not managed via a .nix file).
anon has joined #nixos
anon is now known as Guest65497
<dminuoso>
cxx_newb: Yes, you would write a nixos module.
<dminuoso>
It'd probably be very trivial for you. :)
<dminuoso>
cxx_newb: From inside the module you would produce a script along the lines of: ''source ${pkgs.fzf}/share/fzf'/completion.zsh; source ${pkgs.fzf}/share/fzf'/key-bindings.zsh'
<cxx_newb>
dminuoso: Thanks for the suggestion. Do you know of any other way? What I am currently struggeling is integrating with nixos while retaining my dotfiles as plain dotfiles, because I still user other distros on other machines. If my zshrc is managed/tightly integrated by/with nixos I feel like loosing flexibility.
<hyper_ch2>
wouldn't it also be available in /run/current-system/sw/share/.... ?
<cxx_newb>
hyper_ch2: a quick find for fzf did only find man pages and find for completion did only return a folder named bash_completions :/
<cxx_newb>
Considering that I will move to nixos for all my machines, I would like to keep my /etc/nixos directory in git (without secrets). If I put my zshrc configuration inside configuration.nix it will apply to all users right? How would I manage to only aplly the configuration to user foo?
amakthel has quit [Ping timeout: 250 seconds]
<Yaniel>
you'll want to use home-manager for that AFAIK
<clever>
cxx_newb: one really simple option is to just wrap it with `if [[ $USER == foo ]]; then ...
<clever>
technically, it runs for all users, but does nothing for most
<cxx_newb>
clever: Nice idea, but seems really hacky.
ilikeheaps has quit [Ping timeout: 246 seconds]
<cxx_newb>
I will look into home-manager.
<pie_>
yep and i found the problem. no idea how it worked in the original...
<hyper_ch2>
cxx_newb: well, binaries and other stuff loaded in your current env is usually in there. So I thought that might also be there
<cxx_newb>
hyper_ch2: I hoped so, it is a good guess, but I can't find it.
<Ashy>
cxx_newb: I came from arch and still haven't swapped to home-manager yet
mexisme_ has joined #nixos
dansho_ has quit [Ping timeout: 248 seconds]
<hyper_ch2>
home manager - isn't the proper term for it "wife"?
<Ashy>
still just using a dotfiles repo and gnu-stow
<dminuoso>
cxx_newb: I'd just write a module for it.
<cxx_newb>
Ashy: How do you deal with the problem of referencing stuff in the nix-store?
<dminuoso>
cxx_newb: It's kind of the point of nixos to use nixos for exactly.
<Ashy>
cxx_newb: I don't currently...
<Ashy>
fzf I install via the git install method
<Ashy>
home-manager is probably the better way to go though
<cxx_newb>
Ashy: Then fzf won't be in the nix store right?
<Ashy>
yeah for me it's in ~/.fzf
<cxx_newb>
dminuoso: I know, but I will lose compatibility with other distros if I go full nix...
<clever>
if you put fzf in your systemPackages, it will wind up in /run/current-system/sw/
<clever>
and then its predictable where to find it
<Ashy>
you can also retrieve the path at runtime with nix-env I think
<dminuoso>
cxx_newb: You said yourself, you will move to nixos for all your machines.
<Ashy>
so you might be able to build the full path in a subshell in your zshconfig
<dminuoso>
cxx_newb: So the "other distro" use case seems uninteresting.
<cxx_newb>
clever: The completion files don't show up there.
<clever>
cxx_newb: did you check /run/current-system/sw/share/ ?
<cxx_newb>
dminuoso: I said considering that case to ask a further question. That step is not really possible in some places as I am bound to a certain distro at work where i (partly) want to use the same dotfiles.
<cxx_newb>
I have a line like programs.gnupg.agent = ... in my configuration.nix. I assumed that this would automatically install gnupg so that gpg2 and gpg-agent is avaiailable, but it is not? Why is that?
<clever>
cxx_newb: if enable is set to true, it will add gnupg to systemPackages for you
furrycatherder has quit [Ping timeout: 244 seconds]
<clever>
cxx_newb: what did you set agent to?
<cxx_newb>
clever: This is my line: programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
<clever>
cxx_newb: gpg should be in PATH then
<cxx_newb>
clever: which gpg yields gpg not found, same with gpg2
<clever>
ah wait, i misread a line
<clever>
line 78 is only for systemd
<clever>
i would say thats a bug in nixos, and you need to also manually add gnupg to systemPackages for now
<cxx_newb>
Okay, i will do that.
knupfer has joined #nixos
cfricke has joined #nixos
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 268 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
mac10688 has quit [Ping timeout: 272 seconds]
ajirx has quit [Remote host closed the connection]
___laika has joined #nixos
ajirx has joined #nixos
<rauno>
Hum, why nixos is missing zfs kernel module ?
<clever>
rauno: its only present if you set boot.supportedFilesystems = [ "zfs" ]; (or have a fileSystems.foo.fsType = "zfs")
<rauno>
ah..but not when i define it in kernelModules :) ?
<clever>
not sure on that
<clever>
supportedFilesystems gets kernelModules for you
<rauno>
As i dont need to use it for nixos :)
<clever>
?
<rauno>
I dont want to boot from zfs, i'm going to use this zfs for other purpose
LUNITA__ has joined #nixos
<clever>
boot.supportedFilesystems is what you want then
LUNITA__ has left #nixos [#nixos]
<clever>
boot.initrd.supportedFilesystems is for actual booting support
<rauno>
oh
___laika has quit [Ping timeout: 245 seconds]
<simpson>
rauno: ZFS isn't in vanilla Linux; if you don't set supportedFilesystems, then NixOS won't even use a ZFS-capable kernel.
<simpson>
Or wait. Maybe I'm not reading the module right.
<simpson>
Yeah, I didn't quite read right. We don't patch the kernel for ZFS support, but build the ZFS module out-of-tree based on kernel headers. pkgs/os-specific/linux/zfs/default.nix
Jackneill has joined #nixos
<clever>
thats how most of the modular things work
<teto>
how how can I display the output of "cat toto.txt " in a nixos-test ? I've tried several things like print $client->execute("cat packet_interfaces.txt"); to no avail
v0|d has quit [Read error: Connection reset by peer]
<teto>
clever: thanks. I had tried something similar in the past, but I retried with a more minimal example and it worked. I will progress from there thanks !
<yorick>
tilpner[m]: github search likes to add hashes
Shoubit has joined #nixos
<yorick>
but I see no substantial changes to master
<yorick>
hyper_ch2: well, the non-recursive case could be fixed with reflink+mmap on systems that have that
hyper_ch2 has quit [Remote host closed the connection]
<Netsu>
yorick: thanks, nix 2.1 at which commit/channel available?
<Netsu>
yorick: >>> nix-store --add-fixed sha256 $(sha256sum ./huge.tar.gz) ./huge.tar.gz <<< hm, would it work for directory, or it better to compress it to e.g. tlzo first?
<Netsu>
I need O(1) ram usage (or O(log n) at most)
<yorick>
Netsu: if you want directory then you'll have to hash it recursively, maybe nix-hash does this in O(1)
<Netsu>
yorick: yes, hashing is not a problem, but how put it to nix store yet?
<yorick>
Netsu: --recursive --add-fixed should do that
<yorick>
Netsu: nix is at 2.2 in nixos-19.03 or nixos-unstable
<Netsu>
yorick: oh, missed, let me try (--add-fixed for some reason not in --help, the '--add' only there)
<yorick>
Netsu: yeah, I only found it in the source
<yorick>
I don't even know if it'll be O(1) in memory
veske has joined #nixos
Ariakenom has joined #nixos
hyper_ch2 has joined #nixos
<Netsu>
yorick: could you suggest the place at sources to check available option, because 'nix-store --recursive --add-fixed sha256 $HASH $PATH' not work (expect only $PATH here), and without $HASH it still throw same memory error :(
<seqizz>
Hi, do we have a way to "ensure a line exists" on configuration instead of defining whole file? I know it is an impure method, but maybe there is a way you know which doesn't duplicate lines when I add them.
cfricke has joined #nixos
infinee has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<CMCDragonkai>
Why is there `pkgs.haskellPackages.directory`
<CMCDragonkai>
and why is that a null value?
veske has quit [Ping timeout: 245 seconds]
<CMCDragonkai>
Instead there's a `pkgs.haskellPackages.directory_1_3_4_0`
<CMCDragonkai>
That actually has the directory package
<Taneb>
CMCDragonkai: I think libraries bundled with GHC end up that way
<CMCDragonkai>
This is problematic with `cabal2nix` as we generate a file that requires `directory` and we need to somehow override `directory_1_3_4_0`?
<CMCDragonkai>
Taneb: what do you mean?
<CMCDragonkai>
Taneb: this is the first library I've needed that I encountered this issue
<CMCDragonkai>
where the value of the attr is null
<Taneb>
CMCDragonkai: because GHC requires directory, anything that has GHC (so, every Haskell package) will also have directory
<CMCDragonkai>
Taneb: and that explains why `pkgs.haskellPackages.directory` is null?
<{^_^}>
[nixpkgs] @adisbladis opened pull request #64336 → Drop nodejs-8_x → https://git.io/fj6Mx
<CMCDragonkai>
cabal2nix generates from a cabal file containing `filesystem-trees`, that dependency has a constraint on `directory >=1.1 && <1.3`, so the generated cabal.nix has `directory`, that itself cannot be fulfilled because `haskellPackages.directory` is null, but if I override it, I can state something like `{ directory = haskellPackages.directory_X_Y_Z_A; }`
<Taneb>
What happens if you just let it pass null in?
hoijui has quit [Ping timeout: 264 seconds]
<ocharles>
Hello lovely people. If I have a `.nix` expression that evaluates to a derivation, how can I print the output path (but without making it valid)
<ocharles>
?
<ocharles>
E.g., I want `nix-instantiate`, but then I want the `out` path of the resulting derivation
<LnL>
nix-instantiate --eval -A hello.outPath
gentauro has quit [Read error: Connection reset by peer]
<ocharles>
oh, neat
clacke_movim has joined #nixos
<LnL>
nix path-info --json might also include it
gentauro has joined #nixos
ilikeheaps has quit [Quit: Konversation terminated!]
<steveeJ>
any clue why gpg-agent doesn't provide the file behind SSH_AUTH_SOCK anymore? I haven't updated my system in a while and after the most recent update it's broken
<steveeJ>
the gpg-agent reports `steveej-t480s-work gpg-agent[4022]: listening on: std=3 extra=-1 browser=-1 ssh=-1`. not happy with the `-1` on ssh there :-D
hmpffff has quit [Quit: Bye…]
<steveeJ>
although I have no idea if that's what I'm after, it might be related to ssh forwarding rather than ssh authentication
<cxx_newb>
Hey there. I am at my chromium config which lets me use variables like ${user_name} in strings (chromium variables). If I use those in my nix config I get undefined variable errors. How can I use the ${var} format in nix files without nix interpreting those?
<{^_^}>
[nixpkgs] @FRidh pushed to master « Docs Python: fix example on how to override the package set »: https://git.io/fj6D2
<hyper_ch2>
cxx_newb: where do you want to use those?
<cxx_newb>
I write them in programs.chromium.extraOpts = { Option = "${user_name}" }
<cxx_newb>
hyper_ch2: this variable should go into the config literally
<cxx_newb>
hyper_ch2: I just need the "${user_name}" string to not be interpreted by nix, but used as a literal string.
<Ashy>
cxx_newb: not sure if you found it earlier: `nix path-info nixpkgs.fzf`
<cxx_newb>
Ashy: thanks, environment.pathsToLink = ["/share/fzf"]; fixed the problem
<{^_^}>
[nixpkgs] @vbgl pushed commit from @marsam to master « dune: 1.9.2 -> 1.10.0 (#62256) »: https://git.io/fj6yT
cxx_newb has quit [Remote host closed the connection]
Makaveli7 has quit [Ping timeout: 272 seconds]
Makaveli7 has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to release-19.03 « Docs Python: fix example on how to override the package set »: https://git.io/fj6yY
ericsagnes has quit [Ping timeout: 252 seconds]
Okinan has quit [Quit: Konversation terminated!]
Okinan has joined #nixos
<{^_^}>
[nixpkgs] @mkaito opened pull request #64343 → haskellPackages.servant-client-core: apply patch only to 0.15 → https://git.io/fj6yE
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @gloaming opened pull request #64345 → waifu2x-converter-cpp: 5.2.4 -> 5.3 + OpenCL support → https://git.io/fj6yr
pirboazo has joined #nixos
<pirboazo>
\q
pirboazo has quit [Client Quit]
Philonous has joined #nixos
stepcut has quit [Remote host closed the connection]
<Henson>
how do you get the first character of a string?
* Henson
discovers builtins.substring
Jackneill has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
BoipiSigre has joined #nixos
<BoipiSigre>
HI everybody
<BoipiSigre>
I have questions about VirtualBox appliances
ericsagnes has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
rauno has quit [Ping timeout: 252 seconds]
domogled has quit [Quit: domogled]
Makaveli7 has quit [Quit: WeeChat 2.5]
<infinisil>
,ask BoipiSigre
<{^_^}>
BoipiSigre: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<BoipiSigre>
How to modify the automatic login of user demo ?
Tucky has quit [Quit: WeeChat 2.5]
<BoipiSigre>
where I can find the import file <nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
<Henson>
I'm trying to determine if the first character of a string is a numeral. I'm able to get the first character of the string, but don't know how to tell if it's a numeral. I've tried parsing it to an int, but don't know how to catch the error when it fails to parse.
<BoipiSigre>
in the file demo.nix the services.xserver.displayManager.sddm.autoLogin is set at true,the file is read-only
<Netsu>
gchristensen: print the path where source shold be stored in
<Henson>
I could maybe do a fold on checking to see if it's one of the 10 numeral characters, but perhaps there's an easier way.
<BoipiSigre>
how override this in configuration.nix ?
<gchristensen>
Netsu: I'll say it again, I don't know what you're doing, but I think what you're doing is not a good thing. you're hitting edge case after edge case, which should be a hint that you're using Nix for something it isn't designed.
<infinisil>
Henson: You can use builtins.match
<gchristensen>
BoipiSigre: you want to change its user?
bourbon has quit [Ping timeout: 244 seconds]
<ocharles>
If a `nix-build` is in progress, is there a way to view it's logs?
<gchristensen>
ocharles: I think the logs are only streamed to the controlling nix-build
<ocharles>
Yea, had a feeling that may be the case
<BoipiSigre>
Yes , want to change the login ... displayManager.sddm.autoLogin at false
<BoipiSigre>
gchristensen : error: undefined variable 'lib' at /etc/nixos/configuration.nix:9:57
Jackneill has joined #nixos
drewr has quit [Read error: Connection reset by peer]
pingu_ has joined #nixos
drewr has joined #nixos
rager has joined #nixos
stepcut has joined #nixos
Neo-- has quit [Ping timeout: 268 seconds]
<BoipiSigre>
gchristensen: ok i resolve the append I’ll replace the default { config, pkgs, ... }: by { config, pkgs, lib, ... }: at the top of /etc/nixos/configuration.nix.
<ocharles>
Has anyone seen anything like this before?
<ocharles>
cannot import '/nix/store/zpbgk8ziy2n6f8dm0i7n9wdknq3lmxdf-cabal2nix-coordinator', since path '/nix/store/bijw7rpgbx4ks589qcglnjpqhdfw7ycw-cabal2nix-coordinator.drv' is not valid, at /nix/store/s8fv38dzdqgdk05868ykvz5x2a5crsry-hg7n3im08mv9s7yn4jkpihvar9rc8lrq-nixpkgs-75a88c1b9d0abbee53ce0271a4c360219a99787e/pkgs/development/haskell-modules/make-package-set.nix:83:54
<BoipiSigre>
it's work fine
<ocharles>
I'm using import-from-derivation, but I don't understand how it's producing a non-existing .drv
<ocharles>
(the .drv doesn't even exist)
<ocharles>
(nor does the output path cabal2nix-coordinator)
<ocharles>
Oh, interesting. https://github.com/NixOS/nix/issues/2786 writes "--eval is in readonly mode by default, so you need to add --read-write-mode to make it work."
<{^_^}>
nix#2786 (by Profpatsch, 9 weeks ago, open): Nix evaluator is not creating necessary derivation
Drakonis has joined #nixos
<ocharles>
Yes, that was it. Thank you, rubber ducks
drakonis1 has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
Drakonis has quit [Ping timeout: 276 seconds]
seqizz has left #nixos [#nixos]
hyper_ch2 has quit [Remote host closed the connection]
<Netsu>
gchristensen: srsly, isn't it designed to fetch files without eating the whole ram? I'm just trying to find the least hacky way for this..
Drakonis has joined #nixos
<Netsu>
I have 4Gb free ram on 32Gb laptop, and nix not able to put 2Gb file from local path (directory or tar or tgz/tlz/tlzo, I tried everything) to local nix storage. :( So what I'm doing wrong?
<ajs124>
Netsu: sounds about right. nix is sadly pretty inefficient, when it comes to this kind of stuff.
drakonis1 has quit [Ping timeout: 250 seconds]
<gchristensen>
Nix is not designed for that, no
<BoipiSigre>
gchristensen: Thank for the Help:-)
<Netsu>
So sad, doh
<yorick>
Netsu: so go fix it, should be fairly simple
<yorick>
you've spent more time trying things than it would have taken to fix
<slabity>
It's just changing an attribute name to fix a NixOS module.
v88m has quit [Ping timeout: 248 seconds]
turbo_MaCk has joined #nixos
<Notkea[m]>
hello, I have a question regarding RFC42 and how default nested attributes are merged. It seems that the attribute set is not recursively merged
<Notkea[m]>
is this behaviour normal?
<gchristensen>
sounds surprising to me
cfricke has joined #nixos
cfricke has quit [Client Quit]
ym555 has joined #nixos
<Notkea[m]>
I'm not sure whether I missed something… I'm simply setting some keys in my module, setting some other nested keys elsewhere, and the rest of the attribute set seems to be forgotten when serialised using toJSON
orivej has quit [Ping timeout: 272 seconds]
bakakuna has quit [Ping timeout: 245 seconds]
steell has joined #nixos
mexisme_ has joined #nixos
stepcut has quit [Ping timeout: 272 seconds]
earldouglas has left #nixos [#nixos]
iyzsong has quit [Ping timeout: 250 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
zaeph has joined #nixos
awhuac^ has quit []
lnh^ has joined #nixos
ym555 has quit [Read error: Connection reset by peer]
jackdk has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @timokau merged pull request #55361 → Mark merlin and flycheck-ocaml as not broken → https://git.io/fh9DV
<{^_^}>
[nixpkgs] @timokau pushed commit from @jbaum98 to master « emacsPackagesNg: Mark merlin and flycheck-ocaml as unbroken (#55361) »: https://git.io/fj6Q5
v0|d has quit [Remote host closed the connection]
domogled has joined #nixos
<asymmetric>
can someone explain why after running node2nix, i can't just run nix-build -A package if the package.json isn't present anymore?
<asymmetric>
don't the nix files produced by node2nix describe the package? what's the package.json necessary for?
<gchristensen>
I _think_ node2nix makes a way to provide all the packgaes in a cache, and then npm is used to take the packages from the cache and "install" them. in this case, npm still needs the package.json
<Henson>
bgamari: in general it's possible for a derivation path not to be in nixpkgs, so it might not be possible to answer your question
<Henson>
bgamari: but if it came from nixpkgs, then you can probably get a good idea of what it would be called
doyougnu has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<Henson>
bgamari: hold on a sec
dansho_ has quit [Ping timeout: 272 seconds]
zacts has joined #nixos
<Henson>
bgamari: what I've done in the past is something like: "nix-env -qa -P --out-path --description" which generates a list of all the packages, their path in nixpkgs, their attribute name, and their description
<dmj`>
anyone seen this before when using nixops w/ AWS
deech has quit [Ping timeout: 248 seconds]
<dmj`>
"The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request"
<Henson>
bgamari: the listing contains the attribute name in nixpkgs, and the name of the package and its version, which will correspond with part of the name of the derivation file. You should then be able to figure out where in nixpkgs that derivation came from
<Henson>
bgamari: but it's possible, if you've upgraded your nixpkgs channel, or you installed a derivation that wasn't in nixpkgs, for you not to be able to find it.
<bgamari>
Henson, right, I do know that it's possible its unreachable
<bgamari>
but I know the derivation was built via a nixpkgs derivation
<bgamari>
so there should be *some* path to it
<bgamari>
and I know I haven't updated nixpkgs
<manveru>
bgamari: well, there's a path to the derivation, but not back to nixpkgs
<bgamari>
manveru, if I build an attribute A from nixpkgs and it pulls in derivation B, then surely there must be an attribute in nixpkgs by which B is reachable
<manveru>
but usually the `name` attribute helps to find it
<manveru>
sure, but no derivation references nixpkgs usually, only the derivations built by it
<bgamari>
manveru, in my case B is cabal 2nix
<bgamari>
cabal2nix
<bgamari>
but there are several cabal2nixes in nixpkgs
<bgamari>
so I want to know which cabal2nix attribute a particular derivation came from
<manveru>
only "cabal2nix"?
<Henson>
bgamari: then give my suggestion a try and you should be able to find the nix path that corresponds with the package name that's part of the derivation name.
<bgamari>
Henson, thanks
<bgamari>
manveru, yes
<bgamari>
In particular I'm in a CI setting
<manveru>
hmm
<bgamari>
and want to ensure that I cache cabal2nix
<bgamari>
so I want to know which attribute I need to add to my `nix export` dump
domogled has quit [Quit: domogled]
domogled has joined #nixos
Okinan has joined #nixos
<bgamari>
Henson, that nix-env command sends my machine into swap death
<Henson>
bgamari: yeah, it'll do that :-(
<Henson>
bgamari: that's the only way I know of doing this, though
<bgamari>
sigh
<Henson>
yep
<manveru>
bgamari: i'm not sure i'm getting this fully... you use cabal2nix, but isn't that just an executable you can build from top-level?
<bgamari>
manveru, you would think so
<manveru>
or do you use some special version of it
<bgamari>
manveru, but apparently some derivation is using some special version of it
<bgamari>
I'm caching haskellPackages.cabal2nix
<bgamari>
but that's not the derivation that is being built
<manveru>
well, nixpkgs.cabal2nix != nixpkgs.haskellPackages.cabal2nix i guess
<bgamari>
apparently so
<bgamari>
but I have no idea how to get a handle on the thing that the build actually needs
<manveru>
you have the derivation that requires it?
<bgamari>
yes
<bgamari>
or rather a set of derivations
<bgamari>
one of which requires it
<bgamari>
I don't know which one
stepcut has quit [Remote host closed the connection]
nuncanada has quit [Quit: Leaving]
Shoubit has quit [Quit: Leaving]
pie_ has joined #nixos
<bgamari>
manveru, no idea?
<manveru>
well, other than iterating their buildInputs?
<manveru>
how are you adding things to your cache? since if you add the top-derivation to the cache, it should include cabal2nix as well
<bgamari>
manveru, the problem appears to be that cabal2nix isn't actually a buildInput
<bgamari>
since IIRC cabal2nix uses IFD
klntsky has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
<manveru>
yeah, i'm not sure i have a good answer to that... i haven't used it
chpatrick has quit [Quit: Connection closed for inactivity]
Ariakenom has joined #nixos
doyougnu has joined #nixos
asheshambasta_m has quit [Quit: Leaving.]
<DigitalKiwi>
has anyone gotten baloo to work? i had to disable it because it'd go to like huge ram/cpu usage and not index anything like it gets stuck or something
AnswerGuy has joined #nixos
brunowolff has joined #nixos
<brunowolff>
Is there a simple command to cross build nix with a different prefix if I have nix installed?
<brunowolff>
I would like to build nix with a prefix in my home directiry for as mac while on fedora.
MmeQuignon has joined #nixos
<brunowolff>
I don't currently have admin access on the mac and can't install in /nix. Doing a cross build might complete sooner than waiting for the admin access request to complete.
<simpson>
Are you sure? IIUC it takes days to build with a custom prefix; just about everything must be rebuilt.
stepcut has quit [Remote host closed the connection]
<lordcirth>
I'm currently recompiling the base system on a raspi; I expect it to take at least 24hr. A fast computer might be very different, though.
<gchristensen>
brunowolff: maybe you can get somebody with access to create `/nix` and give your user ownership?
<brunowolff>
I've been waiting a week so far for the admin request. The problem is the policy is still being developed, so I'm waiting more for that than for the switch to be flipped.
<brunowolff>
It doesn't help that a lot of people are out this week.
<lordcirth>
Yeah, asking an admin to do a thing might be a lot faster than actually getting admin
mexisme_ has joined #nixos
<brunowolff>
I certainly can let it run all weekend, as I'm not likely to get /nix created before then anyway.
mexisme_ has quit [Ping timeout: 248 seconds]
<brunowolff>
The command for cross installing was pretty simple (and fast because everything is prebuilt), so I thought it might be simple for changing the prefix as well.
<{^_^}>
[nixpkgs] @cdyson37 opened pull request #64351 → fix: #64340 building python wheels in non-standard store → https://git.io/fj6dI
doyougnu has quit [Ping timeout: 272 seconds]
<dmj`>
gchristensen: ping
<gchristensen>
dmj`: pong
furrycatherder has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
doyougnu has joined #nixos
<dmj`>
gchristensen: so we discussed this a while back apparently (looked at the logs), but deploying ec2 instances inside of a VPC is somewhat of a trap with nixops. AWS started requiring all new instances to be spawned in a VPC (as you know probably). I have openssh installed on my nixos machine, with firewall enabled, 22 open, a security group added with 22 open, my default VPC's NACL settings also allow for inbound + outbound SSH cons
<dmj`>
gchristensen: but I still get `Waiting for SSH....` when I attempt to deploy and the closure cannot be copied
<gchristensen>
is this in the default VPC?
doyougnu has quit [Client Quit]
<dmj`>
gchristensen: yes, I did not create a new one this time
<gchristensen>
iirc there were changes at like, the routing table or something
<gchristensen>
I haven't AWS'd much in a long time, but the default VPC made that easy and then a new VPC made it trickier to setup
<dmj`>
gchristensen: I have set the vpcId in the security group, and the subnetId in the deployment.ec2 settings
<gchristensen>
your new instance has a public IP address? (verify in the consose)
<dmj`>
gchristensen: yes, eip is there
<gchristensen>
ehh
<gchristensen>
I recommend asking in ##aws
<gchristensen>
I forget the specifics here, but it is not a problem unique to nixos
* dmj`
sighs
<dmj`>
gchristensen: I thought we realized we didn't need to do anything too crazy.
<gchristensen>
yeah, it shouldn't be anything too weird
<dmj`>
It's crickets in the ##aws channel always, or all questions and no answers
<aminechikhaoui>
although that should be the default for the default vpc route table
Xal has quit [Ping timeout: 258 seconds]
<dmj`>
aminechikhaoui: that is an extremely complex example, and it is building a vpc fresh from scratch, not using the default, which has all of that stuff already.
<gchristensen>
well maybe go spot-check that it is all configured like this
<aminechikhaoui>
yeah but to troubleshoot you can maybe compare
<gchristensen>
(or setup a new VPC, so you actually know what you have configured, in case you have to move)
Xal has joined #nixos
civodul has joined #nixos
<dmj`>
gchristensen, aminechikhaoui: so just a vanilla setup, like, nixops 101 setup, gives this: "The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request."
<dmj`>
so I go ahead an copy the `subnetId` from the default AWS VPC into the nixos machine spec, but then I get stuck on "Waiting for SSH"
<gchristensen>
I wish I could throw away my AWS account and get a new one, but the email account is tainted now
<gchristensen>
because you get a different AWS experience depending on the age of your account
turbo_MaCk has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 248 seconds]
<aminechikhaoui>
dmj` yeah what I was saying, is you need to check the route table associated to that subnet and check the routes there, double check if there is a route to an internet gateway. Since your firewall/sg setup is correct I would double check that first
stepcut_ has joined #nixos
* dmj`
double checks route table
stepcut has quit [Ping timeout: 258 seconds]
<aminechikhaoui>
it's weird though that it requires a subnet id, I remember we don't need that for the nixops tests for example
<alexarice[m]>
is nix not able to delete files when creating a derivation+
<gchristensen>
alexarice[m]: can you say more about what you're wanting to do?
<alexarice[m]>
I've copied some files into the output directory, done some stuff with them, then try to delete them and get permission denied
<aminechikhaoui>
dmj` which instance type are you trying btw
<alexarice[m]>
there is likely a better way to do what I'm trying to do
<alexarice[m]>
but I'm surprised nix doesn't have the ability to delete in the derivation it is writing
<gchristensen>
it can
<gchristensen>
if you're copying a source around, you might need to do `chmod -R +w $out` before you try to modify them
<alexarice[m]>
ah
<alexarice[m]>
this is probably the reason
<alexarice[m]>
thanks
<chrisaw>
Bit of a random question but does anyone know why the Cinnamon package for NixOS was removed?
<gchristensen>
this is because by default files are not writable, so if you do `cp ${./whatever} ./here` then `here` will be unwritable until you change it
zammux has joined #nixos
<alexarice[m]>
gchristensen: thanks, that was the cause
<dmj`>
aminechikhaoui: t2.small
<gchristensen>
cool
<dmj`>
aminechikhaoui: m3.medium doesn't have the vpu stipulation, but it runs into other problems
<dmj`>
aminechikhaoui: let me paste a gist
MichaelRaskin has joined #nixos
<zammux>
does anyone know how to resolve an "unexpected FLOAT" error when trying to rebuild my configuration file? I'm trying to set services.xserver.windowManager.2bwm.enable
zacts has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @neilmayhew opened pull request #64353 → gimp-with-plugins: Fix build errors with exiv2-0.27.1 → https://git.io/fj6dS
<aminechikhaoui>
dmj` did you get a chance to check the routes setup btw ?
nickoralias is now known as nlofaro
<aminechikhaoui>
btw if you're not on ec2-classic then it should just work without needing a subnet id
<aminechikhaoui>
I've just tested that with t2.small on a vpc only account
Thra11 has joined #nixos
<dmj`>
aminechikhaoui: I checked the routes in the vpc, it was missing a subnet association ...
<dmj`>
aminechikhaoui: redeploying
ambro718 has joined #nixos
arjen-jonathan has quit [Ping timeout: 252 seconds]
<ambro718>
How do I configure to automatically open a LUKS volume during boot using the same passphrase as a different LUKS volume which was opened in the initrd?
<dmj`>
aminechikhaoui: still stuck on waiting for ssh
<ambro718>
I have an encrypted volume that I boot from, which is opened in the initrd, and then later I want an encrypted volume on a different disk to open automatically.
<brunowolff>
It looks like my answer might be:
<brunowolff>
nix-build '<nixpkgs>' --arg crossSystem \"x86_64-darwin\" -A nix
<samueldr>
ambro718: if it's described in the configuration, our initrd tries the passphrase on the following volumes that need to be decrypted
Drakonis has joined #nixos
<samueldr>
e.g. on the computer I type from, I have two SSDs, distinct LUKS containers, I type only one passphrase
<ambro718>
samueldr: I don't want to open the second volume from the initrd (it is unnecessary)
mexisme_ has joined #nixos
<samueldr>
right, then nothing of the sort built-in
<dmj`>
aminechikhaoui: I am classic, and I have to specify a subnetId
<samueldr>
and it would need the passphrase to be somehow available in-memory, which is maybe not the best idea :/
<dmj`>
aminechikhaoui: er sorry, I am * not * classic
<dmj`>
yet have to specify a subnet
linarcx has quit [Ping timeout: 245 seconds]
<brunowolff>
I had to set a couple of flags to build nonfree code on an unsupported system.
<brunowolff>
And there appears to be an issue with the compiler, but it looks like it is trying to do what I want.
winem_ has joined #nixos
<dmj`>
aminechikhaoui: still get "The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request."
<aminechikhaoui>
dmj` so maybe the networking is ok previously but there is boot problems for example
<aminechikhaoui>
did you check the console logs
<aminechikhaoui>
while it was waiting for ssh
<dmj`>
aminechikhaoui: maybe, I didn't pin the version of nixpkgs that nixops uses, did that now, retrying
Drakonis has quit [Ping timeout: 250 seconds]
<dmj`>
aminechikhaoui: am using a working version of nixops as well
<dmj`>
aminechikhaoui: this is new, You must specify an allocation id when mapping an address to a VPC instance
<Thra11>
nixos, single-user: /etc/nix/nix.conf is a symlink to a read-only file in the nix store. I assume I can change its contents by setting something in /etc/nixos/configuration.nix, but I can't find any documentation on what to set...
<dmj`>
Thra11: modify the nix field in /etc/nixos/configuration.nix
<dmj`>
Thra11: nix.buildMachines = [{ ... etc
mexisme_ has quit [Ping timeout: 268 seconds]
<dmj`>
aminechikhaoui: did you try to deploy the nixops trivial ec2 example ?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « jackett: 0.11.420 -> 0.11.457 »: https://git.io/fj6FV
<dmj`>
aminechikhaoui: so, basically, my default vpc was in a different region, us-east-2, not us-east-1
<dmj`>
aminechikhaoui: the routing table not being associated with any subnet had no effect in the default vpc,
<Thra11>
When passing `--option binary-caches` on the command line, is there a similar option to specify binaryCachePublicKeys?
<Thra11>
Alternatively, if I've stupidly entered `nixos-rebuild --upgrade switch" before adding the binary cache, is there a way to roll back the channel to where it was before, so I can add the binary cache, run nixos-rebuild (without trying to rebuild everything), then do the upgrade once the binary cache is added?
<Thra11>
Hmmm. `nix-channel --rollback`...
<kraem>
i'm trying to reinstall my bootloader and have mounted my zpool (tank/root on /mnt, tank/nix on /mnt/nix, ..) - should i run nixos-install simply or should i follow the advice here: https://nixos.wiki/wiki/Bootloader#Re-installing_the_bootloader ?
fendor has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<DigitalKiwi>
It looks like I can do `nix-env -iA nixos.kdeApplications` and it'll install all of the packages in that set, how do I do that in configuration.nix? systemPackages wants a list but it's a set...
__monty__ has quit [Quit: leaving]
mac10688 has joined #nixos
juliendehos has quit [Quit: Leaving]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<DigitalKiwi>
I suppose I could just put them in 1 by 1 manually and then when I find ones I don't want I can remove them easily
MmeQuignon has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
cjpbirkbeck has quit [Quit: Quitting now.]
MmeQuignon has joined #nixos
wfranzini has quit [Remote host closed the connection]
<Thra11>
DigitalKiwi: I think theres a lib.toList function, but I've no idea whether it helps in this particular situation.
lambda-11235 has joined #nixos
polman has quit [Read error: Connection reset by peer]
polmaan has quit [Read error: Connection reset by peer]
polman has joined #nixos
simon_weber has joined #nixos
<simon_weber>
is it possible to install nixos onto an openvz vps if the provider doesn't explicitly support it? my understanding is that it's not (since the guests are sharing the host kernel), but I wanted to check if I'm missing something
<simon_weber>
specifically nixos-infect is explicit that it doesn't support openvz, but nixos-in-place doesn't seem to say anything one way or the other
stepcut has joined #nixos
stepcut_ has quit [Ping timeout: 248 seconds]
winem_ has quit [Ping timeout: 258 seconds]
lnh^ has quit []
abaiste^ has joined #nixos
shibboleth has quit [Quit: shibboleth]
<tokudan>
simon_weber, if the kernel is from the host, it's not a server that you get, so you cannot run a full OS on it. what you can probably do is build a nixos container and feed that in there. it may take some work to get it to start, update, etc. correctly, though
<tokudan>
simon_weber, nixos-infext effectively replaces the running kernel, so that's not an option if you cannot access the kernel
o1lo01ol1o has quit [Remote host closed the connection]
leothrix has quit [Read error: Connection reset by peer]
Ariakenom has quit [Quit: Leaving]
leothrix has joined #nixos
Forkk has joined #nixos
gagbo has quit [Ping timeout: 245 seconds]
slack1256 has joined #nixos
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #nixos
cxx_newb has joined #nixos
<cxx_newb>
Hey there. When I boot up nixos dhcpcd blocks the boot process until either I get an IP, or 30 seconds pass. Is there an option to not wait for dhcpcd on boot? I don't really care when I get an ip, I just want to get to my login prompt asap.