Questions tagged [nixos]
The nixos tag has no usage guidance.
54
questions
0
votes
0
answers
22
views
vscode doesn't detect g++ / Can't use **Run C/C++ File** in vscode
I'm using NixOS tought I doubt that's the problem in this particular instance.
I have both gcc and g++ installed as per gcc --version and g++ --version giving the output(s):
Copyright (C) 2023 Free ...
0
votes
0
answers
16
views
NixOS is a VM periodically loses connectivity. How to debug?
According to ip addr everything is still up, but any attempts to ping other hosts including the gateway fail.
Observed this issue under UTM on M1 Mac and under Hyper-V on Windows AMD64. Doesn't apply ...
0
votes
0
answers
46
views
How to run a Python script in “eww.yuck” as “deflisten” on NixOS?
I'm trying to setup notifications using eww on NixOS and have succeeded in making eww show a window in the top left using this code (eww.yuck config file):
(defwindow notifications
:monitor ...
1
vote
0
answers
27
views
Access tokens are not picked up by `nix build`
I put an access token in my nix.conf:
access-tokens = gitlab.myconmpany.com=PAT:MyTokenXxX123
nix show-config also outputs it correctly.
Now I am trying to build an example derivation:
# default.nix
{...
0
votes
1
answer
312
views
Bypassing Secure Boot without disabling it
I've tried archboot, but no luck as I was stuck due to the plymouth missing. Now I want to try to install arch or nixos alongside Win 11. The problem lies in secure boot. I don't have spare linux to ...
0
votes
0
answers
85
views
Btrfs snapshots are empty
I am using btrbk to make snapshots of my @home subvolume, but the snapshots are empty, zero bytes.
I think I need to automount home, somehow.
I see in the Btrfs Assistant File Viewer that the root ...
2
votes
1
answer
218
views
How to recover a RAID 5 after deleting the partition table and fstab?
I have a RAID5 set up for my storage drives on my Nixos 23.11 machine. I followed this guide to set up the RAID (and I followed it very closely).
I have just reinstalled Linux on my boot drive (...
0
votes
1
answer
156
views
How to unmount /home on a BTRFS system?
In order to restore a BTRFS snapshot of /home, on NixOS, the Wiki says to first unmount /home.
"home must be unmounted for this operation"
https://nixos.wiki/wiki/Btrfs
So my question is how ...
0
votes
0
answers
151
views
Trouble booting Nix OS from USB device on a HP dragonfly g4 laptop
I come to you in a time of great need! I've recently upgraded my laptop to a Hp dragonfly G4 and am hoping to run linux on it (I'm in MS edge right now and ever two seconds windows pings me with some ...
2
votes
1
answer
359
views
Why does starting `tmux` on sway launch over `swaymsg` does make tmux inaccesible?
I want to start tmux server on sway startup.
Therefore I created in sway.conf the following:
exec ~/.config/sway/scripts/start-up.sh
in which script I start tmux as such:
#!/usr/bin/env bash
# ...
1
vote
1
answer
438
views
NixOS + Win 10 boot: OSError: [Errno 28] No space left on device /boot
I am using an old laptop with Windows 10 installed. I also wanted to try out NixOS, alongside that windows OS. I also tried installing some packages, tried the nixos-rebuild command then the problem ...
2
votes
2
answers
2k
views
What's the laziest way of creating a Linux ISO?
I have extremely limited knowledge on all and everything surrounding Linux and Distributions. I wanted to and have created an Arch Linux install that is for writing text only. It boots up, lets me ...
2
votes
1
answer
377
views
'v4l2' is not a suitable output format - why does this error appear?
I have created following script I've been using on Arch Linux to stream the camera feed to OBS
#!/usr/bin/env bash
set -euo pipefail
sudo modprobe v4l2loopback exclusive_caps=1 max_buffer=2
gphoto2 ...
0
votes
1
answer
854
views
Can I setup LVM raid1 to mirror one physical disk onto another?
I have two HDDs, I'm planning on only using one (with NixOS) and the other one should be a mirrored backup, I've had many problems trying to set up a RAID 1 with NixOS and the only documentation I can ...
0
votes
1
answer
658
views
`nixos-rebuild switch` has stopped setting the default boot configuration
The documentation for nixos-rebuild switch says it should switch to the new configuration and make the new configuration the default on the boot menu. It used to make the new configuration the default,...
1
vote
2
answers
3k
views
Brave browser not updated in Nix package manager
I'm very new to nixOS so excuse what might be an easily resolved issue. The brave browser package in the nix package manager is not the most recent. Is this normal?
0
votes
1
answer
466
views
Gitlab runner in nixos
Since upgrading to nixos 22.11 (from 19.0x) I can't get the gitlab-runners to work.
The docs at "https://nixos.wiki/wiki/Gitlab_runner" are.. mostly unreadable. The old config made sense
{ ...
0
votes
1
answer
278
views
Systemd can´t find exec file
My systemd service can´t find the folder but when I try it in the shell it works.
I am using nixos and my config of the service is the following:
{
systemd.services.intranet_dev = {
wantedBy = ...
0
votes
0
answers
673
views
Linux sees only a single cpu core out of 6 available cores
My linux system does not boot if I don't append acpi=off to the kernel params.
I think the reason that the os does not see all of the CPU cores is this param. But I can not remove it; because it won't ...
0
votes
0
answers
104
views
Internet (mostly) works but unable to ping - how to diagnose?
Found a couple similar questions (1, 2), but they don't exactly cover my issue and there are also no answers, so:
Dusted off an older laptop with linux (NixOS 21.11.337659.06db2e21974 (Porcupine)), ...
0
votes
1
answer
457
views
i3 crashes into gdm when trying to login
So I previously used i3 on ubuntu so I do know the basics and how to change desktop/window manager.
I just recently switch to nixos and tried installing i3 through the configuration.nix.
Configuration....
1
vote
0
answers
292
views
How to know which input method I am using on NixOS?
I am using NixOS. This is my config file. As you see, I am using GNOME as the Desktop Environment.
I would like to find out which input method I am using. I can't find it.
In Ubuntu, people can find ...
0
votes
1
answer
8k
views
How to turn off / disable "CTRL LOCK"?
I have a ThinkPad T520 with NixOS 21.09 installed with Xmonad. Locked the screen with slock, went to have lunch, and when I got back the cat was peacefully asleep on the keyboard. When unlocked, ...
0
votes
1
answer
410
views
Nix package manager: how to have uuidgen command?
I am new to nix and nixos and I want to have the uuidgen command available. I don't see uuid-runtime and linux-utils didn't contained it. I don't see any specific documentation on how to get this ...
2
votes
2
answers
1k
views
Nixos: how to fix network gateway when nixos-rebuild requires network
I changed ISP, and the new router they gave me does not have the same IP as the old one (192.168.1.1 vs 192.168.1.254)
I had statically configured 192.168.1.1 as the default gateway on my Nixos, so ...
0
votes
2
answers
1k
views
RPi4/NixOs: won't boot "Error: Did not find a cmdline Flattened Device Tree"
I'm trying to install NixOs on a Raspberry Pi 4 following these instructions, but it won't boot.
I get an "Error: Did not find a cmdline Flattened Device Tree", "libfdt fdt_check_header(...
0
votes
1
answer
2k
views
Import OpenPGP key (on NixOS)
I am trying to import a PGP key into NixOS (exported from Openkeychain). This key is used to encrypt and decrypt a list of passwords (with pass).
The following are the steps to reproduce the issue (...
3
votes
1
answer
898
views
What is the INSTALLED_PKGNAME required by nix to set priority
I am attempting to upgrade npm in nix package manager running on arch linux.
I attempt an upgrade with the following command:
nix-env -iA nixpkgs.nodePackages.npm
I get the following error:
error: ...
1
vote
1
answer
1k
views
Wifi stops working, X starts lagging randomly / pending scan trigger
I have a problem with my Wifi on my MacBookPro 9,2 and NixOS 20.09: The Wifi stops working randomly (randomly means: It happens every few days, sometimes multiple times a day, after some time of ...
21
votes
1
answer
57k
views
How to update every package on NixOS?
Finally figured out how to set up my systems a couple months ago, and have been using them happily ever since, but realized that it's time to update stuff. My NixOS setup involves declarative package ...
0
votes
1
answer
257
views
Invoke script, installed into NixOS
I need to create shell script inside NixOS, and then use it declaratively. For such situation, NixOS can provision shell script inside the system, but I bumped into troubles of invoking this script ...
0
votes
1
answer
456
views
Xrandr: How to make two panels in a multi-panel display play nice together?
I'm trying to drive a 5K thunderbolt display (LG Ultrafine 5K) on a Thinkpad X1 Carbon 8th Gen (with an Intel UHD igpu) running NixOS and i3/Xorg. This is a display that's made up of two separate ...
0
votes
1
answer
106
views
nixpkgs nix-env -u how to stick to an attribute path
Same as question here
I installed ungoogled-chromium using nox on my arch linux (manjaro) daemon nix system. It works great, but when doing updates nix-env -u it tries to update ungoogled-chromium to ...
0
votes
0
answers
218
views
Screen not turning off on Lenovo Carbon Yoga X1 (running NixOS/Linux) when closing lid
I've got a Lenovo Carbon Yoga X1 (1st gen). Running NixOS/Linux.
When closing the lid of the laptop, the LCD does not actually turn off, nor does seem to go into any sort of suspend mode.
How can I ...
1
vote
1
answer
266
views
NixOS: setting package configuration globally (for all packages)
On NixOS, I'm trying to compile my system without Gnome.
For example, network-manager/openconnect has a withGnome option:
{ stdenv, fetchurl, openconnect, intltool, pkgconfig, networkmanager, ...
0
votes
1
answer
8k
views
NixOS using systemd-boot instead of grub, although it is disabled in nix config file
I've installed NixOS 19 and as I want to dual boot with Windows 10, I need to use grub. And this is my bootloader configuration:
# Boot loader
boot.loader = {
systemd-boot.enable = false;
...
0
votes
0
answers
4k
views
Nginx FastCGI sent in stderr: "Primary script unknown"
I am using nixos and nginx and i am new to both. right now i am trying to get nginx to work and process a php file.
Whenever i try to open http://[my-example].local/ in the browser it says "File not ...
2
votes
1
answer
637
views
How to configure firefox to use adobe flash on nixos
I am trying to configure nixos' firefox to use adobe flash.
I am well aware of the issues of adobe flash; I "need" it (on one specific host) because of school games played by my son.
It is clear ...
0
votes
1
answer
1k
views
Using Oracle JDK with Nix package manager
Can somebody point me to the correct steps to install Oracle JDK with Nix package manager? I tried the following so far:
https://nixos.org/nixos/packages.html#jdk - oracle is not there
nix-env -i ...
0
votes
1
answer
89
views
How to deactivate a NixOS component in OSX?
I have trouble using gcc in OSX.
I want to the gcc that comes with XCode (Apple LLVM version 10.0.1 (clang-1001.0.46.4)). However on my PATH this gcc (gcc (GCC) 7.4.0) is taken precedent.
$ which ...
3
votes
1
answer
3k
views
Encrypted ZFS dataset fails to mount: Permission denied
I'm on NixOS and try to encrypt a hard drive partition (potentially more in the future) using ZFS. I tried to stick to this guide, so I added
boot.zfs = {
enableUnstable = true;
...
2
votes
1
answer
1k
views
Can't seem to get sudo working under NixOS
The title (embarassing as it is) says it all. Some context first:
I'm running NixOS using a custom ISO on Vultr.
Timeframe of attempts:
which sudo shows no sudo
Installed sudo using nix-env -i sudo ...
3
votes
0
answers
2k
views
wlp2s0 with wpa_supplicant under NixOS
I have a NixOS system (nixos https://nixos.org/channels/nixos-18.03). Using wpa_supplicant, I can't get my wireless card to connect to my home network (WPA2).
It's using the new Systemd Predictable ...
1
vote
1
answer
338
views
Mount home from different disk (migrating from ubuntu)
I am moving from ubuntu to nixos. I would like to keep my previous home directory which is on another disk.
I installed nixos successfully. Then I added
fileSystems."/home" = {
device= "/dev/disk/...
0
votes
1
answer
700
views
`sysctl` not available in script started by swanctl on NixOS
I use strongswan-swanctl on a VPN server running NixOS.
Basically it is working and I can connect to the VPN server from clients.
services.strongswan-swanctl = { ...
1
vote
1
answer
598
views
How to copy a nix-env profile using nix-copy-closure?
I am using nix-env with multiple channels and local overrides to install packages on macOS and Nixos Linux on multiple computers. Sometimes I exclude packages from updates, because of problems. All ...
3
votes
2
answers
2k
views
User can't see shared folder in VirtualBox guest even though she's in vboxsf group
I'm using Virtualbox. I have a NixOS guest on a Windows host. I added the user to the vboxsf group and rebooted the machine.
$ groups ...
3
votes
1
answer
9k
views
NixOS & NixOps declarative group management and services
Is it possible to manage groups in a declarative way in NixOS and NixOps?
I would like to be able to create a new group in a configuration.nix, and add users to it. I have not been able to find any ...
4
votes
1
answer
588
views
nix-copy-closure "command not found" error
I'm trying to copy a Nix closure to my server, using
nix-copy-closure [email protected] /nix/store/somelonghash-programname
but I get
bash: nix-store: command not found
error: cannot connect to 'user@...
3
votes
0
answers
1k
views
systemd-nspawn DeviceAllow not working
Distro: NixOS 17
I have an nspawn "machine" in "/var/lib/machines/ubuntu1" containing an fs-root
I have a systemd unit "[email protected]" containing
[Service]
DeviceAllow=char-alsa ...