Questions tagged [nixos]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 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 ...
-1
votes
0answers
46 views

How can I get my 3-screen Asus laptop setup (built-in, HDMI, and HDMI -> hub -> USB-C) working correctly with Nixos?

Installing NixOS for the first time. On an Asus Zephyrus laptop. Works surprisingly well, but I'm having HDMI -> hub -> USB-C display issues, among other more minor things. First I installed the ...
0
votes
2answers
151 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
1answer
85 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 (...
0
votes
0answers
63 views

NixOs freezes randomly on laptop with error pointing to amdgpu issues

I am using NixOS 21.05.876.60cce7e5e1f (Okapi) with kernel version 5.10.40. My laptop freezes seemingly at random. I updated my BIOS already, but nothing changed. I am using a lenovo E485 laptop with ...
1
vote
1answer
73 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: ...
0
votes
0answers
28 views

Headset input not recognized on MacBookPro9,2 with NixOS 20.09

I can't get audio input from my headphones (with built-in mic) on my MacBooPro9,2 (specs) on NixOS 20.09. Here are the things I tested / tried: the built-in laptop microphone works the headphone ...
1
vote
1answer
138 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 ...
0
votes
0answers
42 views

Virtualbox: Use Guest VPN in Host

I have a Win10 guest machine running in VirtualBox on a NixOS (Linux) machine. The Win10 guest is connected to a VPN. How can I share this VPN connection with the host such that I can visit IPs from ...
2
votes
1answer
633 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
1answer
27 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
1answer
105 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
1answer
18 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
0answers
54 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
1answer
92 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
1answer
829 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
0answers
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
1answer
470 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
1answer
463 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
1answer
51 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 ...
2
votes
1answer
1k 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
1answer
482 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
0answers
1k 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
1answer
49 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
1answer
191 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
1answer
282 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 ...
2
votes
2answers
1k 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 ...
1
vote
1answer
2k 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
1answer
288 views

nix-copy-closure "command not found" error

I'm trying to copy a Nix closure to my server, using nix-copy-closure user@server.com /nix/store/somelonghash-programname but I get bash: nix-store: command not found error: cannot connect to 'user@...
3
votes
0answers
823 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 "systemd-nspawn@ubuntu1.service" containing [Service] DeviceAllow=char-alsa ...
1
vote
1answer
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
1answer
190 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 ...
5
votes
1answer
2k 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
1answer
563 views

Installing Parallels Tools on NixOS

How to declaratively install Parallels Tools on NixOS which is running as a guest in Parallels for Mac?