Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nixos]

NixOS is a Nix-based Linux distribution. Thanks to Nix, it supports atomic upgrades, rollbacks and multi-user package management, and it has a declarative approach to system configuration management that makes it easy to reproduce a configuration on another machine.

1
vote
2answers
24 views

How can I set a custom DNS server within Nixos?

I've not found much information in the manual. I've tried to manually modify the file /etc/resolv.conf however this seems to be overwritten by something? How can I achieve this?
0
votes
2answers
39 views

NixOS - how is environment.systemPackages implemented

I've started using NixOS. As far as I understand Nix is a purpose built functional language to avoid side-effects. All packages are part of a giant attribute set but as everything is lazily evaluated ...
0
votes
1answer
15 views

Nix value is not of type `attribute set of signed integers'

I'm trying to set: networking.firewall.allowedTCPPortRanges = [ 80 81 5900]; However I get the below error: error: The option value networking.firewall.allowedTCPPortRanges.[definition 1-...
2
votes
0answers
9 views

Configuring programs and services from unstable channel in NixOS

I know that I can install a package from the unstable channel like this: { config, pkgs, ... }: let unstable-pkgs = import <unstable> {}; in { environment.systemPackages = [ unstable-pkgs....
1
vote
1answer
15 views

How can I enable PHP within the Apache service configuration in Nixos?

I'm using the following config: services.httpd = { enable = true; adminAddr = "localhost"; extraModules = [ "http2" ]; enablePHP = true; virtualHosts = [ ...
0
votes
0answers
18 views

How to set layout toggle on <win+caps> in configuration.nix?

How can I set layout toggling on <win+caps> in NixOS configuration.nix only?
0
votes
1answer
24 views

NixOS: recover /boot mount info after overwriting hardware-configuration.nix

In my NixOS configuration I ended up accidentally overwriting my hardware-configuration.nix. While sudo nixos-generate-config regenerates one, for me the regenerated version appears to be missing the ...
0
votes
0answers
32 views

How to boot to single user mode in nixos

On a nixos installation how does one boot into single user mode? On a typical linux installation one would set rw init=/sysroot/bin/sh on the bootloader. But nixos being nixos, it has a path that ...
0
votes
0answers
17 views

How can I set the Java heap size for elasticsearch on Nixos?

It seems these should go in the ${configDir}/jvm.options"} (/var/lib/elasticsearch/config/jvm.options ?) looking at the package at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/...
0
votes
1answer
33 views

Is there a faster alternative than `nixos-rebuild switch` when updating services?

Often I'm configuring a new service and having to run nixos-rebuild switch for the changes to take effect. For example setting up a configuration for a webserver. However the nixos-rebuild switch ...
1
vote
1answer
67 views

How to add an additional configuration file to an existing nix derivation?

Using the linux distribution nixos, I have 2 similar problems: I have to add my custom_syntax_color_scheme.vim file to the existing /share/vim/vim80/colors folder in the nix store from existing ...
1
vote
1answer
47 views

How to add a file to /etc in NixOS?

What is the NixOS-way to put a configuration file in /etc? E.g. I want to drop /etc/nanorc. I found some forum entries talking about programming it into /etc/nixos/configuration.nix, but could not ...
2
votes
1answer
121 views

How can I override a broken Haskell package in nix?

I use NixOS, and I'm trying to set up a Nix Haskell environment for my Haskell project. I have this Haskell package written in Nix that I'm trying to get working via nix-shell, but the dependent ...
0
votes
1answer
31 views

How to make binary in already existing Nix package able to run a shell script in another package?

I'm currently packaging a printer driver, which uses a shell script as the CUPS filter. Obviously, CUPS needs to be able to run that script. Currently, however, it is giving me an exec format error ...
3
votes
2answers
123 views

How do I specify a path to an executable for a systemd unit file on nix?

I'm trying to write a systemd unit file. How do I specify the path to an executable? How can I determine what to use? In this specific case I'm trying to use mkdir. ExecStartPre = "/bin/mkdir -p %h/...
2
votes
1answer
62 views

NixOS: some user-subscribed channels are not shown by `nix-channel --list`, how to remove them (unsubscribe)?

I am confused by the current state of my channel subscription on NixOS. It seems that I have a per-user subscription to nixos-17.03 and nixos-17.09: $ nix-shell -p nix-info --run "nix-info -m" - ...
0
votes
0answers
78 views

NixOS + docker nginx + dnsmasq for local somethingsomething.dev domains

I have been configuring NixOS as a dev machine lately (and so far I really love it). I was planning of using a nginx image as reverse proxy to route all *.dev requests to running docker images. This ...
1
vote
1answer
379 views

How do I upgrade Nixos to use a new channel nixos version?

I'm currently on 18.03 and would like to upgrade to 18.09. How would I go about doing this? I've found the following via a web search but it's not very conclusive: https://discourse.nixos.org/t/how-...
0
votes
1answer
278 views

How do I modify my hosts file in Nixos?

Seems my hosts file (/etc/hosts) points to /nix/store/gds7bha3bx0a22pnzw93pgf0666anpyr-etc-hosts and is read only. How am I meant to modify this file?
2
votes
1answer
111 views

Dealing with NixOS missing dependency ~ libpng-dev

Moving away from an OS like Arch where packages are mostly available, how does one deal with a missing dev dependency like libpng-dev? I have an issue with a Node package dependency - pngquant-bin. ...
0
votes
2answers
82 views

How can I install jack2 on nixos?

I have been trying to follow the instrucitons here: https://nixos.wiki/wiki/Using_JACK_with_PulseAudio error: attribute 'pulseaudio' missing, at /etc/nixos/configuration.nix:17:33 (use '--show-trace' ...
0
votes
1answer
44 views

Is there a Iosevka Term package available on Nixos?

Related to the following issue: https://github.com/be5invis/Iosevka/issues/231 Is there a Iosevka Term width available in nixpkgs? I can only find iosevka and iosevka-bin via https://nixos.org/nixos/...
2
votes
0answers
247 views

How can I get my laptop's internal speakers to work correctly on NixOS?

As far as I can tell, the subwoofers on my Lenovo Yoga C930 aren't being engaged at all on NixOS, which results in a really flat sound. The speakers sound great when I reboot into Windows 10. How can ...
0
votes
1answer
193 views

How can I get bluetooth speakers to work with pulseaudio in NixOS?

I've managed to get my bluetooth speakers to connect, but Pulseaudio apparently doesn't recognize them as an audio device. Following advice on the NixOS Wiki, I now have this in my configuration.nix: ...
3
votes
1answer
78 views

In NixOS, is there any way to create a package that has pandoc, pandoc-citeproc, and pandoc-crossref?

I'm very new to NixOS. I use Pandoc a lot, often with pandoc-citeproc, but I can't find a NixOS package for pandoc-citeproc. I see that there's a Haskell library for pandoc-citeproc in HaskellPackages....
1
vote
0answers
253 views

In NixOS, is there a way to use Rofi instead of Dmenu when invoking Passmenu?

I'm using the pass package for password management. The passmenu command that comes with it uses dmenu, but I'd like for it to use Rofi instead. I saw on the Arch wiki that it's possible to use rofi ...
1
vote
0answers
68 views

How can I switch users in NixOS?

I'm using the BSPWM window manager in NixOS, and using home-manager to handle the session. SDDM is my display manager. I can log in just fine, but I don't know how to switch users. On Arch, TTY1 (Ctrl+...
0
votes
0answers
38 views

How can I configure xkb to switch layouts both ways?

If I run setxkbmap -layout us,us -variant altgr-intl,colemak -option grp:alt_space_toggle, I can switch from the AltGr-International layout to Colemak by pressing Alt+Space. But it doesn't work the ...
1
vote
1answer
101 views

How to configure systemd-journald on NixOS?

What is the proper way to configure systemd-journald on NixOS? There seems to be no relevant configuration options. On Ubuntu, for example, I could edit /etc/systemd/journald.conf. Context: I have ...
1
vote
1answer
396 views

Missing wireless tools (wpa-supplicant) in fresh NixOS install

Following the NixOS Manual, I i) made a live USB drive, and ii) installed NixOS on my system. Now I'm trying to set up my wireless network, and "Wireless Networks" instructions aren't working for my ...
0
votes
0answers
241 views

How can I change KDE Plasma settings in NixOS?

I know that NixOS likes to configure things itself, so I figure I'm just thinking about this in the wrong way. I'd like to, say, change the icons that are displayed in my system tray, but when I right-...
0
votes
1answer
78 views

Bootable NixOS ISOs not working (18.03.132847)

After following the NixOS' Installation Guide, I'm failing to create a bootable Installation ISO. I created an issue for this on NixOS/nixpkgs. But I wanted to see if there was any knowledge here. ...
0
votes
1answer
36 views

How can I install Dragon Player on NixOS?

I've found it here, but I have no clue how to install it. Are KDE packages handled differently from regular packages?
2
votes
1answer
878 views

systemd-boot skips boot menu and ignores settings in /loader/loader.conf

Recently, after I've done something to my multiboot system, when I boot NixOS with systemd-boot, boot menu does not show up anymore even though the timeout is still set to 2 seconds in /loader/loader....
0
votes
0answers
216 views

`acpi=off` results in `BUG: unable to handle kernel NULL pointer dereference`

Background I have been getting spontaneous crashes on my newly built NixOS machine. I am trying out different configuration options to see if I can avoid them. Here is my journalctl -b -1 -p 3: Jun ...
0
votes
1answer
76 views

How can I set up a local MTA on NixOS?

caff from nixpkgs.pgp-tools seems to require a local MTA to send keys with UIDs signed to the corresponding email addresses. (It uses perl's Mail::Mailer for that.) How can I set up a local MTA on my ...
0
votes
1answer
3k views

What does this warning mean and what should I do to fix it?

sudo: /var/db/sudo/lectured is owned by uid 84, should be 0 Whenever I use sudo on my system I get this warning. I am using NixOS.
1
vote
2answers
183 views

Change systemd stop job timeout in NixOS configuration

The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?
1
vote
2answers
1k views

How to rebuild the configuration of a NixOS installation from Live CD?

I installed NixOS 18.03 from Ubuntu on another partition following the NixOS manual's "2.4. Installing from another Linux distribution" section. Everything went fine, but I did a couple idiotic things ...
0
votes
1answer
76 views

3 Questions about having to do a hard shutdown and reboot

When I attempt to do a soft reboot or shutdown, the display hangs and the system is unresponsive for an inordinate amount of time. I therefore have to shutdown or reboot my setup by holding the power ...
3
votes
1answer
323 views

Configure XFCE startup commands in NixOS

In NixOS, services.xserver.desktopManager.xfce.extraSessionCommands describes "Shell commands executed just before XFCE is started.". What about for shell commands right after XFCE is started? That ...
0
votes
1answer
89 views

Can XFCE shortcuts be specified in a configuration.nix file?

In XFCE I can navigate to Keyboard > Application Shortcuts to set keyboard shortcuts. For example, by default xfce4-appfinder is set to Alt+F3 by default. These shortcuts are specified in the ...
0
votes
1answer
209 views

Ruby on NixOS — FFI Gem installation failing when building native extensions

I am a Rubyist of many years. I cannot determine what's missing to prevent FFI from installing. Here is the error from the make.out file (gotta love that name): make[3]: *** [Makefile:1048: ...
4
votes
1answer
1k views

How can I install GNOME shell extensions from extensions.gnome.org through Firefox on NixOS?

The website https://extensions.gnome.org is supposed to be the main tool for installing and managing GNOME shell extensions. How do I enable it on NixOS 18.03? When I accessed that website with ...
1
vote
1answer
129 views

NixOS Ruby Development - Installing all needed devkit libraries and headers to build native extensions

I'm a Ruby developer thoroughly enjoying NixOS. I just need to know how to set up dependencies to build native dependencies on gems like FFI and Nokogiri. Currently I am getting this error: The ...
0
votes
0answers
48 views

The setting of sudoers file is not reflected

I installed NixOS KDE in the virtual environment of VMware Workstation 14 Pro and I am using it. I set the user in the /etc/sudoers file, but that setting is not reflected. root is allowed to do ...
0
votes
1answer
410 views

Dual Booting NixOS and Windows 10. Can it be done easily if NixOS is installed first?

I have an SSD with NixOS installed on it and an HDD that is currently a LUKS encrypted data store. I want to put Windows 10 on part of the HDD. Since I've already installed NixOS, does this work. ...
0
votes
1answer
133 views

nixos - Installing citrix-receiver and all needed certs as part of `nixos-rebuild`

I've managed to install citrix receiver and configure it manually with the certs I need to log into my work computers, but I want to have this be part of my automatic provisioning that happens with ...
1
vote
1answer
274 views

NixOS: No space left on /nix/store during nixos-rebuild or nixops deploy

When doing upgrades (especially large ones) on NixOS with a relatively small root partition, I sometimes run out of space after a bunch of new packages are installed in /nix/store. Eg: error: ...
1
vote
1answer
82 views

nixos: How do I install debug symbols into my .nix-profile from a custom package?

While I have managed to build debug symbols, they don't appear in .nix-profile/lib/debug when installing via nix-env -iA nixos.kube(.debug) I can manually point gdb to the relevant debug symbol paths, ...