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.

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

How to debug Wake-on-lan not working sometimes?

Could somebody point me to any strategies for debugging wake-on-lan? I use nixOS, gnome, sometimes and put my desktop to suspend via the corner menu, sometimes it goes to suspend via inactivity. ...
Snowman227's user avatar
0 votes
0 answers
23 views

Configure vscode in Nixos

My Nixos uses tmpfs as the root filesystem, and I want to configure VSCode in Home Manager. I want to ask you, which files or folders should VSCode persist? vscode.nix: { pkgs , ... } @ args: { ...
Xiaoer's user avatar
  • 1
0 votes
1 answer
49 views

NixOS rebuild fails because some directories according to NIX_PATH do not exist

When I try to rebuild NixOS, it fails because it can't find some directories according to NIX_PATH. This happens since I tried to switch to the channel nixos-unstable from 23.11 and accidentally added ...
matj1's user avatar
  • 41
0 votes
0 answers
27 views

Nautilus / Gnome Files says there is no app installed for any file type unless launched from console

As the title says. I can't open any file using nautilus. When I click on Select App on the dialog above it shows some irrelevant applications instead of Gnome Text Editor, for example. (Of course I ...
Kacper Wyczawski's user avatar
1 vote
1 answer
41 views

Use axel to get source instead curl for fetchurl in NixOS

I'm trying to start a shell with Cuda. I have following shell.nix file { pkgs ? import <nixpkgs> { } }: pkgs.mkShell { name = "cuda-env-shell"; buildInputs = with pkgs; [ ...
s1n7ax's user avatar
  • 418
0 votes
0 answers
18 views

NixOS Postgresql authentication not being updated

I have the following snippet in my configuration.nix: services.postgresql = { enable = true; authentication = lib.mkForce '' # GENERATED host all all 0.0.0.0/0 md5 host all ...
TheChubbyPanda's user avatar
0 votes
2 answers
55 views

Sometimes printing is completed without printing

I have a Brother laser printer DCP-1612W and when I print some PDFs with images the job is flagged as completed even if nothing was printed (but the printer makes some noise). I'm using brlaser driver....
DPD-'s user avatar
  • 101
-1 votes
1 answer
58 views

Is it necessary to update the channel before rebuild switch?

https://nixos.org/manual/nixos/stable/#sec-ad-hoc-packages says Packages come from the NixOS channel. You typically upgrade a package by updating to the latest version of the NixOS channel: $ nix-...
Tim's user avatar
  • 101k
0 votes
0 answers
270 views

Ignoring XDG_SESSION_TYPE=wayland on Gnome trying to run Rescuetime on NixOS

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Y tried QT_QPA_PLATFORM=wayland rescuetime QT_QPA_PLATFORM=xcb rescuetime But I have the ...
CNK's user avatar
  • 1
-2 votes
1 answer
73 views

How should this table of dependencies be read? [closed]

https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies-reference says A dependency is said to be propagated when some of its other-transitive (non-immediate) downstream dependencies also ...
Tim's user avatar
  • 101k
-1 votes
2 answers
131 views

How shall I understand dependency propagated? [closed]

https://nixos.org/manual/nixpkgs/stable/#ssec-stdenv-dependencies-reference says A dependency is said to be propagated when some of its other-transitive (non-immediate) downstream dependencies also ...
Tim's user avatar
  • 101k
0 votes
1 answer
42 views

Does nix-build affect user environment?

nix-env for installation and uninstallation of a package doesn't change the current user environment, but creates a new one. nix-build builds a derivation, which can also install a package. Does it ...
Tim's user avatar
  • 101k
1 vote
1 answer
100 views

How can this binary install be done in NixOS?

https://calibre-ebook.com/download_linux says calibre has a binary install that includes private versions of all its dependencies. It runs on 32-bit and 64-bit Intel compatible machines. To install ...
Tim's user avatar
  • 101k
0 votes
1 answer
132 views

NixOS <crypt.h> missing when installing a Perl module from CPAN

I'm fairly new to NixOS, but I'm trying to install App::cpm from CPAN. I run the following: cpan -i App::cpm It chugs for a little bit then, it fails on Build::Tiny: crypt.h: No such file or ...
Rawley Fowler's user avatar
0 votes
0 answers
121 views

why does running nixos-rebuild switch --upgrade gives symlink error after switching to unstable channel?

Nevermind, i fixed it, by manually running nix-channel update before running nixos-rebuild switch --upgrade I am trying to upgrade from nix-23.05 to unstable but I'm getting some weird errors. Heres ...
somethingsomething89's user avatar
-2 votes
1 answer
113 views

What do "derivation" and "build" mean?

The manpage of nix-build says: The nix-build command builds the derivations described by the Nix expressions in paths. What does "derivation" mean? Is it the same as "package"? ...
Tim's user avatar
  • 101k
0 votes
0 answers
69 views

What relationship and difference are between `nix-env --install` and `nix-build`?

What relationship and difference are between nix-env --install and nix-build? Does nix-env --install build the derivatives specified to it, i.e. perform the job of nix-build?
Tim's user avatar
  • 101k
1 vote
0 answers
205 views

Randomly loosing Internet connection after a few minutes/hours in Linux / NixOS

I have been dual-booting Linux for about three weeks now, and this issue is keeping me from fully switching because I have to reboot my computer approximately every hour. On Linux, I experience random ...
Vyxktique's user avatar
0 votes
0 answers
27 views

NixOS: unique ID for a flake configuration based on source code

I have a Flake-based NixOS configuration. I need some unique identifier for each built this configuration produces, i.e if a configuration gets changed the identifier changes. This is what I have in ...
andreoss's user avatar
  • 488
0 votes
0 answers
64 views

Trying to add NixOS to my Fedora grub

I'm trying out NixOS and want to add it to the Grub menu from my fedora installation, but I can't figure out how to do that. I have Fedora and NixOS on the same drive, but different partitions and I ...
EddoWagt's user avatar
1 vote
1 answer
223 views

How to configure ANSI text colors for NixOS console?

I'm on NixOS-unstable (as of 2023 Oct 1st). How can I configure the text colors for the default NixOS console, as the terminal supports ANSI? I tested what the colors look like by installing text-ansi ...
Dannyu NDos's user avatar
0 votes
1 answer
114 views

How to ensure that NixOS configuration will build or use the same package versions in the future?

In Software packaging and distribution for LHCb using Nix, the authors write: In order to facilitate this use, software must be stable for long periods; much longer than even Long Term Support ...
homocomputeris's user avatar
0 votes
0 answers
44 views

How to determine which Compose file is in use?

My locale is set to "en_NZ.UTF-8". There is no directory by that name listed by ls "$(nix eval -f '<nixpkgs>' --raw xorg.libX11)/share/X11/locale/", and X applications don't ...
l0b0's user avatar
  • 51.1k
0 votes
1 answer
118 views

How to add documentation to Git package in NixOS?

git help some-alias prints the alias configuration value, for example: $ git help aliases 'aliases' is aliased to '!git config --get-regexp '^alias\.' | cut --delimiter=. --fields 2-' I'd like to ...
l0b0's user avatar
  • 51.1k
0 votes
1 answer
57 views

How to get a map of filename without extension to file contents from a directory path in configuration.nix?

Basically, I want to pull my config.programs.config.alias entries into separate .bash files and read them dynamically when building the configuration. A representative subset of the current ...
l0b0's user avatar
  • 51.1k
1 vote
0 answers
194 views

NixOS, Can't get display to work from 4070 TI and Boot into Text caused by Enabling Nvidia Video Drivers

I’m trying to set up my new build to use the GPU for the display output instead of the built-in display of the motherboard and I can’t seem to get it to work. That is to say that when I plug in a ...
Mike Lane's user avatar
  • 166
0 votes
1 answer
219 views

zsh ignores zshrc most of the time (but not always)

So when I open a new terminal (kitty) my ~/.zshrc is sourced perfectly fine, oh-my-zsh works, plugins are loaded as well as the p10k theme. But if I, for example, simply run zsh (or tmux) I get a ...
beccasaurus's user avatar
0 votes
0 answers
140 views

Disable Xorg session in sddm

I have an issue with Xorg where if I disconnect my external display (AMD/Nvidia laptop), sddm logs me out completely so I lose all my work. I've hence switched to Wayland with which the problem doesn'...
TheChubbyPanda's user avatar
0 votes
1 answer
160 views

Why does zsh open at root directory "/"?

I'm using gnome-terminal with zsh on NixOs. A fresh terminal window opens in the root directory "/". This is eventhough $HOME is correctly set to /home/user. Next tabs opened in the same ...
zaabson's user avatar
  • 33
1 vote
0 answers
585 views

Which settings of XFCE can be currently configured on NixOS (during build, or afterwards via Home Manager etc.)?

Currently I am trying to create a basic configuration for my NixOS 23.05 installation with the XFCE Desktop and Window Manager. My approach is to use home-manager in standalone-mode to configure the ...
dsacre's user avatar
  • 11
2 votes
0 answers
143 views

auto-patchelf could not satisfy dependency libQt5SerialPort.so.5

I am trying to run Qt Design Studio 2.3.1 Community on NixOS. My nix derivation code: flake.nix: { description = "Qt Design Studio"; inputs = { nixpkgs.url = "github:NixOS/...
satk0's user avatar
  • 141
11 votes
1 answer
2k views

Do GUIX and NixOS differ architecturally?

(This is not a "which distribution is better" question!) GNU GUIX and NixOS are two Linux distributions based on the NixOS package manager. I realize that GUIX seems to use Guile for ...
einpoklum's user avatar
  • 9,462
0 votes
1 answer
976 views

How to properly set QT_STYLE_OVERRIDE env var in GNOME on NixOS?

I have a question about theming for Qt apps on Gnome. I'm running NixOS with Gnome, using Home Manager and Flakes. My theme is Adwaita-dark, but I've noticed that some Qt apps such as VLC do not have ...
user22311319's user avatar
0 votes
0 answers
99 views

Consistent Icons for Zoom in Gnome Wayland on NixOS

I use zoom on Gnome Wayland in NixOS (dotfiles). The problem I’m trying to solve is that while I can see the zoom icon in the launcher/overview: I get the default application icon everywhere else: I ...
joshrule's user avatar
0 votes
0 answers
607 views

Wayland Nvidia fps is half of the refresh rate of the external monitor

I'm running NixOS 23.05 with KDE on my lenovo legion 5 laptop that has an external monitor attached via HDMI. When using wayland the fps I get is always half of the selected refresh rate (for refresh ...
kess's user avatar
  • 123
0 votes
1 answer
62 views

Mono cannot find LibVLC or MPV on NixOS

I am trying to use SubtitleEdit, a .NET application, on NixOS, using Mono. This has worked in the past with other distros, but for some reason SubtitleEdit cannot find mpv or libvlc on NixOS. ...
TheLabCat's user avatar
  • 113
1 vote
1 answer
48 views

How does Nix ensure that a package can be installed?

I'm trying to understand how package managers, specifically Nix, ensure that a package can be installed. I know that Nix packages declare all of their dependencies explicitly. But can Nix provide a ...
Julius H.'s user avatar
  • 141
1 vote
2 answers
528 views

Nixos install results in error during boot of "Timed out waiting for device /dev/dis/by-uuid/... to appear" with external NVME drive via USB

I have an issue when using an external NVME drive, grub successfully boots but once entering the entry default configuration (nixos generation) it gives me the below error: "Timed out waiting ...
Chris Stryczynski's user avatar
0 votes
0 answers
64 views

Kubernetes rancher provisioner security context error

I'm trying to implement local-path provisioner from Rancher.io in my Kubernetes cluster. This is a single node k8s cluster, installed on NixOS, for test purposes. I followed the Rancher's procedure: ...
ramius's user avatar
  • 833
0 votes
0 answers
209 views

Dell Latitude 7490 Linux Installation unsuccessfull on new SSD

I’m having problems with my Latitude 7490. I’ve been using the laptop without issues ever since, mainly using Qubes, which currently runs without issues. Recently, I installed a bigger SSD and wanted ...
lschmid's user avatar
1 vote
1 answer
261 views

Dolphin file manager hangs when opening a directory from the terminal

Whenever I attempt to open a directory with dolphin (both with dolphin /home/user and dolphin --select /home/user) from a terminal it hangs, which seems very odd since opening dolphin without ...
Andres M.'s user avatar
0 votes
1 answer
286 views

LibreWolf browser unable to remember view settings

I'm using NixOS version 23.05.885.bb8b5735d6f under GNOME. I installed LibreWolf — using Flatpak. The problem I'm facing is that any time I open any site and set the zoom level, for instance, to 120 %,...
x80486's user avatar
  • 1,033
1 vote
2 answers
383 views

How to find values within Nix configuration

I recently started using NixOS version 23.05.885.bb8b5735d6f. I see some (predefined) expressions in the configuration, but I don't know what could be the actual value bound to these. For instance, I ...
x80486's user avatar
  • 1,033
0 votes
0 answers
163 views

NixOS unable to find binaries/commands/packages installed (globally or locally) by asdf

I recently started to use NixOS 23.05. I'm also using Home Manager (same version). Problem I'm facing is with asdf. I installed it using Home Manager, and everything went fine. I then installed a ...
x80486's user avatar
  • 1,033
0 votes
1 answer
225 views

Declaratively configure multiple input sources under NixOS

I'm using NixOS 23.05.885.bb8b5735d6f. I usually configure two language selections set by input sources within GNOME Settings: [x80486@uplink:~]$ gsettings get org.gnome.desktop.input-sources sources [...
x80486's user avatar
  • 1,033
0 votes
1 answer
670 views

Configure GNOME fonts using NixOS configuration file

I recently migrated from Arch Linux to NixOS. While fiddling with NixOS configuration, I noticed there is a section to configure the fonts. This is how it looks like on my end: { config, pkgs, ... }: ...
x80486's user avatar
  • 1,033
0 votes
1 answer
529 views

Flatpak applications borked under NixOS

I just migrated from Arch Linux to NixOS. I configured the system to install GNOME. I'm used to install desktop applications using Flatpak, so I went ahead and configured everything...just to realize ...
x80486's user avatar
  • 1,033
0 votes
1 answer
158 views

XkbOptions not working system-wide in NixOS

I just migrated from Arch Linux to NixOS. I configured the system to install GNOME. Additionally, I spotted a setting where I can set XkbOptions within services.xserver: // /etc/nixos/configuration....
x80486's user avatar
  • 1,033
0 votes
0 answers
947 views

Building Nixos config where I merge two attribute sets with mkMerge results in error of "The option `imports' does not exist. Definition values..."

What I'm trying to do: I'm trying to have a Nixos configuration defined, that can be Installed (this would be the configuration-pineapple.nix file) Installed/run as a VM, by setting some additional ...
Chris Stryczynski's user avatar
0 votes
1 answer
518 views

udisksctl command (udisks package) does not work on NixOS after upgrade to 22.11

What I get when trying to mount an external drive: $ udisksctl mount --block-device /dev/sdb1 The program 'udisksctl' is not in your PATH. You can make it available in an ephemeral shell by typing: ...
toraritte's user avatar
  • 1,080

1
2 3 4 5
7