Questions tagged [nixos]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Installing NixOS package directly into the system, after build

I'm trying to get external ELF binary file into NixOS system. There's page in official documentation, that tells about nixos-build, which allows to make such provisioning and .nix config for building ...
0
votes
1answer
19 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
12 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
156 views

NixOS: setting up graphics on recent laptop (AMD Picasso + Nvidia GeForce GTX 1660 Ti Mobile)

I am installing NixOS on a recently bought laptop, and I'm having issues setting up the graphics card. The CPU is an AMD Picasso and the GPU is NVIDIA GeForce GTX 1660 Ti Mobile. If possible I'd like ...
0
votes
0answers
19 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 ...
0
votes
1answer
54 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
0answers
167 views

Default gateway keeps being unset on NixOS 19.09

After switching to NixOS 19.09 (from 19.03), I have wifi problems on my MacBook Pro 9,2. I can switch back to configurations before the NixOS 19.09 build and internet works just fine. When I try to ...
0
votes
0answers
92 views

Display Scaling with NixOS as QEMU/KVM guest

My goal is to switch to NixOS from Arch. For now, i have successfully installed NixOS in virt-manager, but am struggling with dynamic Display Scaling. I‘m aware of the xorg.xf86videoqxl-Package and ...
0
votes
1answer
254 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 Windows 10, I need to use grub. And this is my bootloader configuration: # Boot loader boot.loader = { systemd-boot.enable = false; efi =...
0
votes
0answers
29 views

How is the value of auto-mode-alist set in Emacs (with packages) on NixOs?

I have Emacs installed on NixOs. I am new to both Emacs and NixOs. Following the NixOs manual, this is my emacs.nix imported in configuration.nix { pkgs ? import <nixpkgs> { } }: let myEmacs ...
0
votes
0answers
2k 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
322 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
281 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
48 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 ...
0
votes
0answers
633 views

How to install latest (3.32) Gnome under NixOS

I recently switched to NixOS and have been using KDE Plasma for a while, but decided to switch to Gnome due to my familiarity with it. However, after putting the following in my /etc/nixos/...
2
votes
1answer
714 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
208 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
931 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
31 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
102 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
231 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
591 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 ...
0
votes
1answer
866 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
223 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
664 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?
2
votes
1answer
106 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 ...
4
votes
1answer
1k 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
335 views

Installing Parallels Tools on NixOS

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