<Raito_Bezarius>
does anyone has an idea why after a nixos-generate-config --root /mnt && nixos-install on a KVM guest (Proxmox), I get this error with btrfs partitions:
<Raito_Bezarius>
Scanning for Btrfs filesystems
<Raito_Bezarius>
waiting for device /dev/disk/by-uuid/ca5a4a0a-9a53-424a-8107-546fb01c8bb6 to appear.......................
<Raito_Bezarius>
Timed out waiting for device /dev/disk/by-uuid/ca5a4a0a-9a53-424a-8107-546fb01c8bb6, trying to mount anyway.
<Raito_Bezarius>
It works fine if I provide labels, etc. But I would like to rely on nixos-generate-config behavior to automate detection
<{^_^}>
[nix] @dependabot[bot] pushed to dependabot/github_actions/cachix/cachix-action-v10 « Bump cachix/cachix-action from v9 to v10 »: https://git.io/JOLiQ
paddymahoney has quit [Remote host closed the connection]
<DamienCassou>
I remember seeing a website comparing the Linux distributions through the versions of the packages they include. This website was showing nixpkgs as the most up-to-date package repository. Do you know the url?
<exarkun>
Given two whole-system drvs, what's a good way to see all of the ways in which their respective systems differ (in one unified presentation)?
snajpa has joined #nixos
xok has joined #nixos
<xok>
Hello All...
<xok>
Is there a chance to use existing deployment of nixos in my nixops environment?..
<exarkun>
xok: You want to convert an existing system to a nixops-managed system?
<xok>
Currently, I have deployed the nixos several years ago but didn't touch the system after that...
<exarkun>
in-place, I assume
<xok>
I now don't have the environment I used for deployment, is it possible to somehow get that system in my new nixops environment listed?..
<xok>
what does that mean and how is it going to help me? exarkun
<exarkun>
I'm trying to understand what you want to do
<exarkun>
Sounds like you have a nixos system and a nixops environment and you want to include the nixos system in the nixops environment
<xok>
Yes, that's right...
<exarkun>
Do you have the nixos system's configuration (eg, does it have an /etc/nixos/configuration.nix that reflects its config?)
<xok>
In the past I used nixops to deploy nixos in my DigitalOceal
<xok>
I have not touched it for years ( couple of years )...
<xok>
exarkun, yeah, it does...
<exarkun>
I think it should be pretty straightforward to add it to a nixops environment, then
<xok>
That sounds very promising...
<exarkun>
You have the `nixops modify` command that you can use to add more nix expression files to an existing deployment
zupo has joined #nixos
<exarkun>
I'd start by trying to make a configuration that is as close to the current configuration as possible
<xok>
exarkun, how do I use it to add existing system to nixops?..
<xok>
I do have the deployment file...
<exarkun>
Either manually update the system to use the same nixpkgs as your nixops is going to make it use
<exarkun>
Or change the configuration to pin the current nixpkgs
<xok>
I have all those deployment files ( configuration ) that was used for deployment...
<exarkun>
Just so that, for the first step, any changes nixops wants to make are minimal
<exarkun>
Then `nixops modify` the deployment you want to expand and add the new files that represent the nixos system you want to add to it
liuyb has quit [Ping timeout: 268 seconds]
<xok>
exarkun, I still don't understand how to do it...
<xok>
I now have the new environment in nixops, I ran: # nixops create -d do deployment.nix
<exarkun>
The file in the pastebin is deployment.nix?
<xok>
yes...
<xok>
now, the nixops list shows the deployement without machines..
<xok>
I now want to add existing machine to it...
<exarkun>
Okay. I thought you had an existing nixops deployment with other things in it and you wanted to add this host to it. That's why I suggested `nixops modify`. If that's not the case, forget about that part.
<xok>
I now have the nixops environment, and a nixos system running in my DO...
<xok>
I want to link these two together...
<exarkun>
At this point I think you just `nixops deploy` and nixops will connect to the system and re-arrange things as it sees fit to make it match your deployment.nix
<xok>
yes, I tried that but it creates a new deployment...
<xok>
meaning it creates a new system, new droplet in DO...
<exarkun>
ah. right.
<exarkun>
I'm not sure. I have mostly used nixops on baremetal. I haven't use the DO support.
<exarkun>
"To deploy to a machine that is already running NixOS, simply set deployment.targetHost to the IP address or host name of the machine, and leave deployment.targetEnv undefined."
<exarkun>
Do you have the nixos system's configuration (eg, does it have an /etc/nixos/configuration.nix that reflects its config?)
<exarkun>
erf
<exarkun>
I meant: Given two whole-system drvs, what's a good way to see all of the ways in which their respective systems differ (in one unified presentation)?
Vq has quit [Read error: Connection reset by peer]
Vq has joined #nixos
Vq has quit [Remote host closed the connection]
dotdotok has quit [Ping timeout: 252 seconds]
respawn_ has quit [Remote host closed the connection]
<attila_lendvai>
i have a script with a #!/bin/sh but i get a permission denied on it. /bin/sh ./foo.sh works as expected, it's something shebang related, it's chmod +x. any hints? i can't seem to find the right search keywords how to debug this.
<Reventlov>
what is needed for lightdm to auto start ?
<Reventlov>
Because I have a lightdm.enable = true in my profile and it's not starting at boot :/
ddellacosta has quit [Remote host closed the connection]
aither has joined #nixos
<Reventlov>
(if it matters: I'm using it in a specialisation)
<Kinnison>
Reventlov: I imagine services.xserver.displayManager.lightdm.enable = true; is what you really want
endformationage has joined #nixos
<Reventlov>
yeah that's what I have
Qwerky has joined #nixos
<Reventlov>
services.xserver.displayManager.lightdm.enable = true is set in my config, but the service is nowhere to be seen. Do I need to add the package myself ?
supersandro2000 has joined #nixos
<Kinnison>
Is there any other displayManager enabled?
<BlackBeans>
I have looked for any "secure boot" options in the bios configuration to disable, but found none
<simpson>
No worries. First, don't panic. Second, as a general rule, you can boot from your USB installation image in order to rescue/fix a NixOS system. Like, you can just remount the disk in the same place, use the configuration.nix that you prepared, etc.
<BlackBeans>
I have some systemrescue usb stick if need
<simpson>
I'd double-check that the disk partition is marked as bootable, and I'd look in nixos-install's output to see what it says about the bootloader.
ajshell1 has joined #nixos
<simpson>
The installation process should set up /boot in a familiar-looking way.
<simpson>
That is unfortunate UX. The "bootable" flag is distinct from the partition type; "Linux" and "Linux (bootable)" would be the *same* partition type, but the latter also has this "bootable" flag set.
akaWolf has quit [Read error: Connection reset by peer]
<BlackBeans>
so this means my partition is not bootable?
<simpson>
Yeah. The good news is that you can use your disk partitioning tool to set the bootable flag. I am used to `cfdisk`, which literally calls it "Bootable", but your preferred tool may call it something else.
<BlackBeans>
I guess it's what parted calls "boot"
<BlackBeans>
ok let's try if it works now...
<BlackBeans>
perfect! thank you
<BlackBeans>
btw this means that the manual was lacking the information about setting the bootable flag
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poscat has quit [Ping timeout: 252 seconds]
<simpson>
No worries. You could contribute that improvement, if you wanted.
ddellaco_ has quit [Remote host closed the connection]
Victor56 has quit [Client Quit]
<simpson>
I don't know for sure. I believe that, in the beginning, it was a demonstration of the extent of Nix's power, and an aspiration for how to compose a more secure and holistic ecosystem of packages.
ddellacosta has joined #nixos
<simpson>
...I don't know why I bother.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JOt7Q
ddellacosta has quit [Remote host closed the connection]
<tejing>
>.<
<simpson>
( ~&)
Qwerky has quit [Remote host closed the connection]
<jboy->
I'm running the jitsi-meet service on NixOS with a fairly standard config, but when I try to use it, the room always crashes with the error videobridgeNotAvailable (even though I can see the bridge is in fact running). Anybody know what's going on there?
<nixpulvis>
Hey, I'm still learning about NixOS, but I had a question about https://github.com/NixOS/nixpkgs. Is this the list of packages, or the language itself. I'm partially confused because it seems to have langauge level tests like for the string functions, but then there's also stuff wayland tools...
<karakan>
Hi, folks, after recent update on master my previously working pythong package yells at me about 'distutils.errors.DistutilsError: Command '['/nix/store/5kznrncnp9v828a7i723j72bh9wkbkg7-python3-3.8.8/bin/python3.8', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmpu7hehvl5', '--quiet', 'pytest-runner']' returned
<karakan>
non-zero exit status 1' so I want to ask whether that's a known issue before I'll start digging. Cheers.
sangoma has quit [Ping timeout: 240 seconds]
<lukegb>
nixpulvis: it's (mostly) a package/NixOS-module repository and a small library of functions to make things easier with the former
__monty__ has joined #nixos
<lukegb>
e.g. the lib directory is utility functions which aren't _strictly_ part of the language but _are_ kinda useful
<sterni>
since the library is used for writing expressions to build packages for NixOS
<sterni>
and tests for string functions is just extra tooling to make sure we don't mess things up
<sterni>
just like we have tests for NixOS modules, packages etc.
<nixpulvis>
I see, thanks lukegb.
<lukegb>
karakan: I don't see any github issues filed for pytest-runner
<NemesisD>
i have home manager set up on a debian and on a macos machine. for some reason even with a fresh home-manager install, home-manager news on the mac stops at 2020-09-01. anyone have any ideas?
<lukegb>
NemesisD: try #home-manager?
jb55 has joined #nixos
<nixpulvis>
My first task here is to try and make my own iso.nix installer module. I was kinda hoping I could just import the cd-dvd/iso-image.nix and netboot/netboot-minimal.nix together and run nix-build, but they don't seem to work together.
<nixpulvis>
I assume the advice is to just build something on top of the dvd-cd modules, rather than trying to use multiple installers together?
<nixpulvis>
e.g. I need to add some packages for making connecting to wifi easier to the image.
<nixpulvis>
OK, I tried calling builtins.trace, and got a "error: 'functionArgs' requires a function" error. I have no idea what this means.
attila_lendvai_ is now known as attila_lendvai
attila_lendvai has quit [Changing host]
attila_lendvai has joined #nixos
<lukegb>
nixpulvis: I think you'd need to be more precise about what you want: are you trying to build an ISO that's like the installer ISO, but with some extra tweaks?
<nixpulvis>
I want a configuration for something I can quickly build an ISO from that contains everything I need to quickly format a machine from a USB stick.
<lukegb>
Right, that makes sense
<nixpulvis>
So, I'll be adding my user configuration to it's file system along with a small README with the needed nix-build (or whatever) commands to run to actually format/partition/install the OS.
growpotkin has joined #nixos
nschoe has quit [Ping timeout: 260 seconds]
Qwerky has joined #nixos
<attila_lendvai>
any LLVM packaging experts here? i'm struggling with clang on nixos. it somehow/somewhere gets a -nostdsysteminc to its defaults. maybe because of the wrapper script making it configurable? either way, the end result is that an FFI generator fails to find the system headers for me when compiled on nixos: https://github.com/rpav/c2ffi/pull/89#issuecomment-817660539
<lukegb>
does that give you an understandable starting point?
<sterni>
nixpulvis: in what way have you tried to call builtins.trace precisely?
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
<nixpulvis>
sterni: yea, now I'm in the repl, and I' just trying `builtins.trace 1`.
<nixpulvis>
I assume I need to pass this partial app to something else?
<eacameron>
Hey, I have a straightforward cmake project I'm wrapping with nix. However, when checkPhase tries to run my custom tests with 'make air-test` the tests can't find the .so files built by cmake... any tips?
<nixpulvis>
Something about function purity I assume..
<sterni>
oh you where trying to builtins.functionArgs (builtins.trace 1)?
<sterni>
that is a bug in nix which is fixed in unstable that functionArgs doesn't work on builtins
<sterni>
this also breaks lib.generators.toPretty on some library functions and builtins
MatrixBot25 has quit [Ping timeout: 252 seconds]
<nixpulvis>
Originally I was trying to run the trace from inside my module function to print the passed in `pkgs` becauce I'm still learning this whole thing, and I have no idea what that binding contains.
<nixpulvis>
My real goal is still to just list wifi-menu (ideally) as a dependency of this ISO package thingy.
<nixpulvis>
(though I shouldn't really need to connect to the internet to install the OS, it's a nice feature for my USB stick to make easy)
<pinpox>
Do I need to add anything to package inputs to be able to extract tar.xz's? I'm trying to write this package https://termbin.com/jix8 but it fails saying it doesn't know how to extract it
<pinpox>
> tar: This does not look like a tar archive
<pinpox>
> xz: (stdin): File format not recognized
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):494:12
<nixpulvis>
OK, after playing around on the install image, I guess I'll want to install network manager? I have a bad impression of using it, but without netctl I guess it's the next best thing?
<nixpulvis>
lukegb: how would I add network manager to that gist you gave me? Just as 'buildInputs'?
rj has joined #nixos
ahmed_elgabri has joined #nixos
Qwerky has joined #nixos
<lukegb>
buildInputs is for building Nix packages, really - I'd look at search.nixos.org/options and the NixOS manual for NetworkManager
<lukegb>
But bear in mind you might have to turn off whatever the install media does for DHCP
<nixpulvis>
Funny, I know how to do all this manually.
<nixpulvis>
Aren't I building a nix package tho
<nixpulvis>
or what is this?
jorts is now known as nckx
<nixpulvis>
I mean, it's a function... that's about all I understand.
ahmed_elgabri has quit [Ping timeout: 260 seconds]
fuiltilt has joined #nixos
<pinpox>
,locate libxcb-keysyms.so.1
<{^_^}>
Found in packages: xlibs.xcbutilkeysyms
<pinpox>
,locate libz.so.1
<{^_^}>
Found in packages: gap, zlib, gap-full, scilab-bin, gap-minimal, signal-desktop, jetbrains.clion
<nixpulvis>
OK, my next question (sorry) is about how to actually perform the format/partition/install.
<nixpulvis>
Let's say I have a device at /dev/sda and I want to target it to install a full derivation with LUKS, ext4, etc. Is there a guide somewhere on how that might look?
<raboof>
how long should it take a Raspberry Pi 3 B to get from "Starting kernel ..." to whatever comes next?
<ToxicFrog>
nixpulvis: partition/format is the same way you'd do it on any other distro -- parted or fdisk (or gparted under X) to partition the disk, mkfs.* to format it
<ToxicFrog>
Then you mount the stuff you want under /mnt and use nixos-generate-config
<nixpulvis>
ToxicFrog: would this be in a pre-hook inside my default.nix?
ddellaco_ has quit [Remote host closed the connection]
<nixpulvis>
I don't want to have to run anything other than a single nix-build (or some nix command) which reads a script or file or something I can commit to git.
<nixpulvis>
Today, I have a shell script which does this like `./install /dev/sda`
ddellaco_ has joined #nixos
ahmed_elgabri has joined #nixos
ahmed_elgabri has quit [Ping timeout: 258 seconds]
Qwerky has quit [Remote host closed the connection]
<ToxicFrog>
Oh, you want automated installation of a complete nixos system, using nix itself? Sorry, I missed that
jimmiehansson has quit [Remote host closed the connection]
<DigitalKiwi>
how come it always seems that when i have 8 cores and 16gb of ram it uses all of everything and crashes but when i have 128GB of ram and 64 cores it uses 1 :(