Questions tagged [nixos]

The tag has no usage guidance.

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

How do I override TMPDIR for nixos daemon builds

I am trying to install the latest signal-desktop on nixos (because the prior instance has expired and will no longer work). To do this requires installing an updated rust compiler, and this is ...
0
votes
0answers
18 views

How does `nix-env`'s `--attr (-A)` option work?

About nix-env's --attr (-A) option, the man page says: If --attr (-A) is specified, the arguments are attribute paths that select attributes from the top-level Nix expression. This is faster ...
1
vote
1answer
17 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
57 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
27 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
148 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/...
0
votes
0answers
24 views

Channel not found by nix-env

I'm using the nix package manager on Ubuntu 18.04 and have problems to understand channels. I've removed the nixpkgs channel and added nixos-18.09, e.g: $ nix-channel --list nixos-18.09 https://nixos....
1
vote
1answer
109 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
0answers
40 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 ...
2
votes
0answers
395 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
21 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
42 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 = { ...
0
votes
1answer
99 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
1answer
190 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
368 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 ...
2
votes
1answer
148 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@...
1
vote
0answers
417 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
968 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
80 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 ...
3
votes
1answer
644 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 ...
2
votes
1answer
210 views

Installing Parallels Tools on NixOS

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