Questions tagged [nixos]
The nixos tag has no usage guidance.
47
questions
0
votes
1
answer
54
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
282
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
82
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
56
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
0
answers
49
views
NixOS - Second Monitor freezes after sleep
I currently have the problem that my second monitor connected to my RazerBlade 15 freezes on NixOS 23.05 after sleep. The second monitor is connected via an dock. I am not entirely sure how to fix but ...
0
votes
1
answer
218
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,...
0
votes
0
answers
50
views
Is this a network issue of installing nixos
After taking those prerequisite steps like prepairing NixOS ISO liveCD,partitioning my SSD ,mounting those partitions and editting the configuration.nix file appropriatedly,then i ran the command sudo ...
1
vote
2
answers
840
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
141
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
0
answers
333
views
Thunderbird mail filters no longer work automatically after Google Workspace migration
I have a number of mail filters set up for my work Google account, in Thunderbird (v91.9.1 on NixOS 22.05). I've used Thunderbird for years and these filters are nothing special: they worked just fine....
0
votes
1
answer
145
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
369
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
63
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
306
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
151
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
4k
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
202
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 ...
1
vote
2
answers
770
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
851
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
1k
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 (...
2
votes
1
answer
786
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 ...
14
votes
1
answer
22k
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
156
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
372
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
70
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
147
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
187
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
5k
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
567
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
792
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
75
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;
...
1
vote
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
192
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
579
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
465
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 ...
2
votes
1
answer
5k
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
490
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
943
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 ...
1
vote
1
answer
1k
views
Way-cooler in NixOs
I've recently installed NixOs and I would like way-cooler to be my compositor. What configuration do I need to enable in the Nix config file?
3
votes
1
answer
437
views
NixOS how to see outdated system packages
On NixOS, is there any way to query for outdated system packages?
I know I can query this with nix-env for user-installed packages but I can't seem to find a way to know beforehand what will be ...
9
votes
1
answer
4k
views
How do you declare a bind mount in NixOS?
I'm trying to declare a bind mount in my NixOS configuration. I'm trying the configuration snippet below, but it sends the OS into recovery mode when I test it out (using nixos-rebuild test). To be ...
3
votes
1
answer
783
views
Installing Parallels Tools on NixOS
How to declaratively install Parallels Tools on NixOS which is running as a guest in Parallels for Mac?