Questions tagged [nixos]
64 questions
26
votes
2 answers
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 management using Home Manager, but completely…
toraritte
- 1,128
12
votes
1 answer
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 clear, I'd like /data to be reachable at /srv/nfs…
kvnhn
- 539
4
votes
1 answer
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 options available to do this, and am having issues…
8bit.wappen
- 43
4
votes
1 answer
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@server.com'
When I login to the server with ssh…
8n8
- 171
4
votes
1 answer
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 updated when I run a nixos-rebuild switch…
rvdp
- 243
3
votes
1 answer
How can I use autologin without a display manager for NixOS, Wayland, and Niri?
I'm running NixOS with systemd and Niri (a Wayland compositor). Right now, I have to log in on the text console and run niri-session (source) to get a graphical session.
Of course, I could install LightDM and configure autologin. But what is the…
Thomas Koch
- 263
3
votes
1 answer
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: packages…
tjb
- 189
3
votes
1 answer
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;
requestEncryptionCredentials = true;
};
boot.supportedFilesystems =…
Gecku
- 53
3
votes
0 answers
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 Network Interface Names scheme (wlp2s0 replaces…
Nutritioustim
- 151
- 9
3
votes
2 answers
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 …
mhwombat
- 83
3
votes
0 answers
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 rwm
DeviceAllow=/dev/net/tun rwm
DeviceAllow=char-pts…
Meizikyn
- 31
- 3
3
votes
1 answer
Installing Parallels Tools on NixOS
How to declaratively install Parallels Tools on NixOS which is running as a guest in Parallels for Mac?
Sridhar Ratnakumar
- 4,949
2
votes
1 answer
How to undo `nix-shell -p `
The Nix package index says that I can do nix-shell -p to try out a package. After I have done that, how do I undo the changes it made?
Richie Bendall
- 423
- 3
- 10
2
votes
0 answers
Access tokens are not picked up by `nix build`
I put an access token in my nix.conf:
access-tokens = gitlab.myconmpany.com=PAT:MyTokenXxX123
nix show-config also outputs it correctly.
Now I am trying to build an example derivation:
# default.nix
{ pkgs ? import {} }:
let
# Define…
rabejens
- 151
2
votes
1 answer
How to recover a RAID 5 after deleting the partition table and fstab?
I have a RAID5 set up for my storage drives on my Nixos 23.11 machine. I followed this guide to set up the RAID (and I followed it very closely).
I have just reinstalled Linux on my boot drive (completely separate to the RAID). In doing so I deleted…
randouser
- 41