/r/NixOS

Photograph via snooOG

NixOS is a Linux distribution with a unique approach to package and configuration management. In existing distributions, actions such as upgrades are dangerous: upgrading a package can cause other packages to break, upgrading an entire system is much less reliable than reinstalling from scratch, you can’t safely test what the results of a configuration change will be, you cannot easily undo changes to the system, and so on. We want to change that. NixOS has many innovative features:

http://nixos.org/nixos/

Part of the Free Culture Reddit Community!

The free culture movement is a social movement for freedom of speech and expression and the elimination of gatekeepers in a digital age. We promote free software and other free cultural works as a matter of personal liberty and human rights.

When we say "free", we mean free as in "freedom".

List of all Free Culture Reddits

/r/FreeCulture Sister Reddits (NEW! Please subscribe and start submitting):

More featured Reddits (NEW! Please subscribe and start submitting):

Make sure your works are free by using a free culture license. Noncommercial ironically is nonfree, so choose a free license! For software, check out the FSF's license recommendations guide, and for other cultural works use one of the following licenses.

Copyleft:

Permissive:

  • CC-BY (Creative Commons Attribution)
  • CC0 (Creative Commons Zero)

/r/NixOS

23,781 Subscribers

1

`su` does not work in`nixos-enter`: Authentication service cannot retrieve authentication info

Crossposted from NixOS Discourse because I got no answers.

After running nixos-install, I clone some Git repos in my $HOME and I also want to enable Home Manager for my user. But, chroot-ing inside my brand new install with nixos-enter and running su does not work.

[nixos@nixos:~]$ sudo nixos-enter
setting up /etc...
bash: warning: setlocale: LC_NUMERIC: cannot change locale (ro_RO.UTF-8): No such file or directory
bash: warning: setlocale: LC_TIME: cannot change locale (ro_RO.UTF-8): No such file or directory

[root@nixos:/]# su
su: command not found

[root@nixos:/]# export PATH=/nix/var/nix/profiles/system/sw/sbin/:/nix/var/nix/profiles/system/sw/bin/:$PATH

[root@nixos:/]# su
su: Authentication service cannot retrieve authentication info
(Ignored)
Cannot execute /run/current-system/sw/bin/bash: No such file or directory

[root@nixos:/]#

By the way, ignore I need to manually set $PATH, that’s another issue I found, but at least I worked around it.

So, what to do? Please give me some help on this, it's the only thing I still want to have done before I finally distrohop away from Arch

0 Comments
2024/04/30
19:29 UTC

3

Package "stability" question

I am considering making the switch to NixOS. Aside from curiosity, I'm considering switching due to not too infrequent failures to compile from Arch's AUR. Now, anyone serious about Arch will warn you off the AUR for exactly those sorts of reasons, which I understand. Nonetheless, the sheer number of packages available for easy install is one of (not the only) things that made Arch attractive to me in the first place. I have read that Nix has as many, or more, packages available in their repos. I was just wondering how often there are installation hickups with perhaps some of the more obscure packages? I understand any answers I get will be anecdotal but I would be curious to hear some feedback. Thanks for your time.

4 Comments
2024/04/30
18:18 UTC

1

nix + tailwind + go

I am running into an issue including tailwind in my go + templ project. I need my tailwind to generate its css into $src file so that go can build with it available, and I also need to run templ generate, however, you cant modify $src directory.

https://github.com/BirdeeHub/FOOdBAR/blob/ac452e174d207db27ca51fee6d5582e30051d5fa/default.nix#L18-L36

0 Comments
2024/04/30
17:45 UTC

1

help: why on earth is this disc mounted as `noexec`?!

hello! i have a sata disc inside of my computer. it's where i store all of my programming projects. for some reason, this disc is mounted as noexec, meaning i can't run any programs or shell scripts on it. the weird part is that it's not listed as noexec in my configuration.nix or /etc/fstab. my question is, how do i permenantly have this disc be mounted without noexec?

4 Comments
2024/04/30
17:11 UTC

2

jameica/hibiscus: help needed to get a chiptan reader to work (cyberjack, reiner sct)

Hello :)
I just recently got myself a reiner sct cyberjack in the hopes it would easily be working with nixos or to be more specific hibiscus on nixos.
Long story short pcsc_scan works and brings up details of any card I put in the reader but jameica isn't able to even detect a card reader.

https://preview.redd.it/a8y4zh7sdnxc1.png?width=2050&format=png&auto=webp&s=dc69091215339fbd57013472dace5fe25c3a9097

https://preview.redd.it/4l1mbsr0enxc1.png?width=566&format=png&auto=webp&s=daab60707f72248c2eced88ae86bae1c458b5fc6

relevant parts of my nix-config (configuration.nix):

services.pcscd.plugins = with pkgs;
   [ pcsclite
     openssl 
     pcsctools 
     libusb 
     libusb1
     pinentry
     ccid 
     pcsc-cyberjack 
   ];

environment.systemPackages = with pkgs; [
  ...
  pcsctools
];

users.users.bruno = {
  ...
  packages = [
    ...
    unstable-pkgs.jameica
  ];
};

i'd be very happy if someone could help me find a solution to my problem and thx in advance :)

PS. i'm kinda nooby working with nixos therefore pls forgive me my mistakes if there are any fundamental

edit. did something wrong while copy-pasting :)

2 Comments
2024/04/30
17:08 UTC

6

Plasma 6 SystemTray dont work anymore

I updated my nix Flake last weak and since then my system Tray could not be expanded anymore. Anything that appears is this little square.

https://preview.redd.it/pyeeoo8zxmxc1.png?width=409&format=png&auto=webp&s=3d8ed88a96637c8c6f3216809d1e379c6b3aca20

Does any body else have this problem?

2 Comments
2024/04/30
15:31 UTC

0

Tragedix

Hi all, I am concerned directly by the recent events, we rely a lot on nix to generate reproducible images. What are your thoughts and alternatives on that matter?

7 Comments
2024/04/30
07:25 UTC

5

Deleted home.nix, can I generate another?

I did a dumb thing and accidentally did rm on home.nix.

It's not a huge problem because I still have the previous generation, but I don't want to rewrite it from scratch. Is there an easy way to automatically generate another home.nix with home-manager based on the current generation?

Is there a way to easily see all the programs I've installed?

15 Comments
2024/04/30
04:22 UTC

4

How is Nixos on a zephyrus G14 (2023) or similar laptops?

The G14 has caught my attention, from reviews it seems that on windows it meets almost exactly what I was looking for as a balance of beefy and portable with respectable battery life.

I haven't used linux on a laptop for a while, yet I've had bad experiences. Has anyone used Nixos on this laptop or a similar one that could advice if it's a good choice?

Just to add because it's what I would suggest in this post, I have looked into the framework 16 and System76 laptops but none seem to be quite what I'm looking for unfortunately.

9 Comments
2024/04/30
03:29 UTC

13

Reasons to Switch From Arch?

I've been distro-hopping from Arch for a little while now and I was about to settle for Arch again, but I'm wondering if I should give NixOS a shot. You all will probably say yes, but why?

For reference, I'm a CompEng student who lives tinkering. I love the concept of a purely functional package manager (let alone operating system), but don't love NixOS's large storage usage (mostly due to lots of writes to the NVME on my laptop) and some customization options being limited.

36 Comments
2024/04/30
01:43 UTC

3

Doom Emacs and Vterm Error

I'm trying to install Doom Emacs on NixOS by installing Emacs with NixOS and then just following the Doom Emacs install instructions (git clone -> doom install). I can install Emacs, and also install Doom Emacs just fine. Everything in Doom Emacs except Vterm is working exactly how I'd expect.

When you first try to open vterm after installing doom Emacs you're prompted to install/compile it, and this also works just fine. There are no compilation errors or windows that pop up, but then when I try to open vterm after that, it flashes open for a split second and then silently fails and closes. When I try to manually run vterm-module-compile I get the following error:

mkdir: cannot create directory ‘build’: Read-only file system

/run/current-system/sw/bin/sh: line 1: cd: build: No such file or directory

CMake Warning:

Ignoring extra path from command line:

".."

CMake Error: The source directory "/home/$USER/.nix-profile/share/emacs/site-lisp/elpa" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.

make: *** No targets specified and no makefile found. Stop.

I've tried following all the guides I can find, digging through other peoples config, and researching that error, but I'm at a loss. I'm relatively new to NixOS, so I'm all ears.

Here is how I'm installing emacs (and the doom dependencies) using home-manager:

home.packages = with pkgs; [

emacs

cmake

clang

libtool

gnumake

ripgrep

fd

];

services = {

emacs = {

enable = true;

# I set my default editor in home.nix

# defaultEditor = true;

package = with pkgs; (

(emacsPackagesFor emacs-gtk).emacsWithPackages (

epkgs: [ epkgs.vterm ]

)

);

startWithUserSession = "graphical";

};

};

3 Comments
2024/04/29
21:33 UTC

14

Snapshots: Yea, or Nay?

I did a plain vanilla NixOS install a couple of weeks ago on an antique laptop and I've decided to stick with it for a while. Therefore, I'm planning to reinstall it on a proper machine, with BTRFS. I use BTRFS with Snapper religiously on Arch and Endeavour OS for bootable pre and post snapshots of system updates. But, apart from safety net provided by snapshots, I just prefer a COW filesystem.

Anywho, I'm not in the habit of using Snapper for periodic snapshots, so at first glance I don't see how Snapper is relevant on NixOS for bootable snapshots. What say ye, are broken generations a common thing? Will I be upset that I didn't go all in on the belt and suspenders approach? It is trivially easy to Install Snapper on BTRFS (with the appropriate subvolume structure), but am I introducing additional complexity for no meaningful payoff?

Thoughts?

20 Comments
2024/04/29
16:28 UTC

15

Snapdragon X Elite/Plus (ARM) on NixOS

Hey everyone,

I just opened a NixOS Discourse topic to discuss NixOS on the upcoming ARM chips Snapdragon X Elite/Plus.

TLDR: I would like to know what I can expect, as I have no idea. Maybe some of you know more.

Any comments appreciated!

4 Comments
2024/04/29
12:51 UTC

2

Can't set bash aliases from configuration.nix or home-manager

Hello! I am new to nixos and really like the idea behind it. I want to try and do as much config as I can through .nix files and so I'm slowly building my system in a VM before making the permanent switch.

I am trying to setup my .bashrc file atm but I can't seem to get it to work at all. Here is my current configuration.nix and home.nix files

configuration.nix

# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
      <home-manager/nixos>
    ];

  # Bootloader.
  boot.loader.grub.enable = true;
  boot.loader.grub.device = "/dev/sda";
  boot.loader.grub.useOSProber = true;

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable networking
  networking.networkmanager.enable = true;

  # Set your time zone.
  time.timeZone = "Australia/Perth";

  # Select internationalisation properties.
  i18n.defaultLocale = "en_AU.UTF-8";

  i18n.extraLocaleSettings = {
    LC_ADDRESS = "en_AU.UTF-8";
    LC_IDENTIFICATION = "en_AU.UTF-8";
    LC_MEASUREMENT = "en_AU.UTF-8";
    LC_MONETARY = "en_AU.UTF-8";
    LC_NAME = "en_AU.UTF-8";
    LC_NUMERIC = "en_AU.UTF-8";
    LC_PAPER = "en_AU.UTF-8";
    LC_TELEPHONE = "en_AU.UTF-8";
    LC_TIME = "en_AU.UTF-8";
  };

  # Enable the X11 windowing system.
  services.xserver.enable = true;

  # Enable the GNOME Desktop Environment.
  services.xserver.displayManager.gdm.enable = true;
  services.xserver.desktopManager.gnome.enable = true;

  # Configure keymap in X11
  services.xserver = {
    layout = "au";
    xkbVariant = "";
  };

  # Enable CUPS to print documents.
  services.printing.enable = true;

  # Enable sound with pipewire.
  sound.enable = true;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    # If you want to use JACK applications, uncomment this
    #jack.enable = true;

    # use the example session manager (no others are packaged yet so this is enabled by default,
    # no need to redefine it in your config for now)
    #media-session.enable = true;
  };

  # Enable touchpad support (enabled default in most desktopManager).
  # services.xserver.libinput.enable = true;

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.defaultUserShell = pkgs.bash;
  users.users.santasspy = {
    isNormalUser = true;
    description = "SantasSpy";
    extraGroups = [ "networkmanager" "wheel" ];
    packages = with pkgs; [
      
    ];
  };

  # Enable automatic login for the user.
  services.xserver.displayManager.autoLogin.enable = false;
  services.xserver.displayManager.autoLogin.user = "santasspy";

  # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
  systemd.services."getty@tty1".enable = false;
  systemd.services."autovt@tty1".enable = false;

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # List packages installed in system profile. To search, run:
  # $ nix search wget
  environment.systemPackages = with pkgs; [
    vim
    git
    bash
    gnome3.gnome-tweaks
    gnome3.gnome-shell-extensions
    home-manager
    xdg-utils
    nerdfonts
    neofetch
  ];

  # Some programs need SUID wrappers, can be configured further or are
  # started in user sessions.
  # programs.mtr.enable = true;
  # programs.gnupg.agent = {
  #   enable = true;
  #   enableSSHSupport = true;
  # };

  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  # services.openssh.enable = true;

  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  # networking.firewall.enable = false;
  
  # Enable Hyprland <
	services.xserver.displayManager.gdm.wayland = true;  

	programs.hyprland = {    
		enable = true;    
		xwayland.enable = true;    
		enableNvidiaPatches = true; 
	}; 
    
  # Home Manager Config
  home-manager.users.santasspy = { pkgs, ...}: {
  	home.packages = [ ];
  	home.stateVersion = "23.11";
  	
  	programs.bash = {
    	#enabled = true;
    	shellAliases = {
	   		open = "xdg-open";
	   		home = "open ~/.config/home-manager/home.nix";
	   		buildHome = "home-manager switch";
	   		switch = "sudo nixos-rebuild switch";
	    };
	  };
  };

  # This value determines the NixOS release from which the default
  # settings for stateful data, like file locations and database versions
  # on your system were taken. It‘s perfectly fine and recommended to leave
  # this value at the release version of the first install of this system.
  # Before changing this value read the documentation for this option
  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  system.stateVersion = "23.11"; # Did you read the comment?
}# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
      <home-manager/nixos>
    ];

  # Bootloader.
  boot.loader.grub.enable = true;
  boot.loader.grub.device = "/dev/sda";
  boot.loader.grub.useOSProber = true;

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable networking
  networking.networkmanager.enable = true;

  # Set your time zone.
  time.timeZone = "Australia/Perth";

  # Select internationalisation properties.
  i18n.defaultLocale = "en_AU.UTF-8";

  i18n.extraLocaleSettings = {
    LC_ADDRESS = "en_AU.UTF-8";
    LC_IDENTIFICATION = "en_AU.UTF-8";
    LC_MEASUREMENT = "en_AU.UTF-8";
    LC_MONETARY = "en_AU.UTF-8";
    LC_NAME = "en_AU.UTF-8";
    LC_NUMERIC = "en_AU.UTF-8";
    LC_PAPER = "en_AU.UTF-8";
    LC_TELEPHONE = "en_AU.UTF-8";
    LC_TIME = "en_AU.UTF-8";
  };

  # Enable the X11 windowing system.
  services.xserver.enable = true;

  # Enable the GNOME Desktop Environment.
  services.xserver.displayManager.gdm.enable = true;
  services.xserver.desktopManager.gnome.enable = true;

  # Configure keymap in X11
  services.xserver = {
    layout = "au";
    xkbVariant = "";
  };

  # Enable CUPS to print documents.
  services.printing.enable = true;

  # Enable sound with pipewire.
  sound.enable = true;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    # If you want to use JACK applications, uncomment this
    #jack.enable = true;

    # use the example session manager (no others are packaged yet so this is enabled by default,
    # no need to redefine it in your config for now)
    #media-session.enable = true;
  };

  # Enable touchpad support (enabled default in most desktopManager).
  # services.xserver.libinput.enable = true;

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.defaultUserShell = pkgs.bash;
  users.users.santasspy = {
    isNormalUser = true;
    description = "SantasSpy";
    extraGroups = [ "networkmanager" "wheel" ];
    packages = with pkgs; [
      
    ];
  };

  # Enable automatic login for the user.
  services.xserver.displayManager.autoLogin.enable = false;
  services.xserver.displayManager.autoLogin.user = "santasspy";

  # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
  systemd.services."getty@tty1".enable = false;
  systemd.services."autovt@tty1".enable = false;

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # List packages installed in system profile. To search, run:
  # $ nix search wget
  environment.systemPackages = with pkgs; [
    vim
    git
    bash
    gnome3.gnome-tweaks
    gnome3.gnome-shell-extensions
    home-manager
    xdg-utils
    nerdfonts
    neofetch
  ];

  # Some programs need SUID wrappers, can be configured further or are
  # started in user sessions.
  # programs.mtr.enable = true;
  # programs.gnupg.agent = {
  #   enable = true;
  #   enableSSHSupport = true;
  # };

  # List services that you want to enable:

  # Enable the OpenSSH daemon.
  # services.openssh.enable = true;

  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  # networking.firewall.enable = false;
  
  # Enable Hyprland <
	services.xserver.displayManager.gdm.wayland = true;  

	programs.hyprland = {    
		enable = true;    
		xwayland.enable = true;    
		enableNvidiaPatches = true; 
	}; 
    
  # Home Manager Config
  home-manager.users.santasspy = { pkgs, ...}: {
  	home.packages = [ ];
  	home.stateVersion = "23.11";
  	
  	programs.bash = {
    	#enabled = true;
    	shellAliases = {
	   		open = "xdg-open";
	   		home = "open ~/.config/home-manager/home.nix";
	   		buildHome = "home-manager switch";
	   		switch = "sudo nixos-rebuild switch";
	    };
	  };
  };

  # This value determines the NixOS release from which the default
  # settings for stateful data, like file locations and database versions
  # on your system were taken. It‘s perfectly fine and recommended to leave
  # this value at the release version of the first install of this system.
  # Before changing this value read the documentation for this option
  # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  system.stateVersion = "23.11"; # Did you read the comment?
}

home.nix

{ config, pkgs, ... }:

{
  # Home Manager needs a bit of information about you and the paths it should
  # manage.
  home.username = "santasspy";
  home.homeDirectory = "/home/santasspy";

  # This value determines the Home Manager release that your configuration is
  # compatible with. This helps avoid breakage when a new Home Manager release
  # introduces backwards incompatible changes.
  #
  # You should not change this value, even if you update Home Manager. If you do
  # want to update the value, then make sure to first check the Home Manager
  # release notes.
  home.stateVersion = "23.11"; # Please read the comment before changing.

  # The home.packages option allows you to install Nix packages into your
  # environment.
  home.packages = with pkgs; [
    # # Adds the 'hello' command to your environment. It prints a friendly
    # # "Hello, world!" when run.
    # pkgs.hello

    # # It is sometimes useful to fine-tune packages, for example, by applying
    # # overrides. You can do that directly here, just don't forget the
    # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
    # # fonts?
    # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })

    # # You can also create simple shell scripts directly inside your
    # # configuration. For example, this adds a command 'my-hello' to your
    # # environment:
    # (pkgs.writeShellScriptBin "my-hello" ''
    #   echo "Hello, ${config.home.username}!"
    # '')
    
    #Apps
    firefox
    vscode
    brave
    discord
    lolcat
    
    #Config
    gnomeExtensions.blur-my-shell
    gnomeExtensions.sound-output-device-chooser
  ];

  # Home Manager is pretty good at managing dotfiles. The primary way to manage
  # plain files is through 'home.file'.
  home.file = {
    # # Building this configuration will create a copy of 'dotfiles/screenrc' in
    # # the Nix store. Activating the configuration will then make '~/.screenrc' a
    # # symlink to the Nix store copy.
    # ".screenrc".source = dotfiles/screenrc;

    # # You can also set the file content immediately.
    # ".gradle/gradle.properties".text = ''
    #   org.gradle.console=verbose
    #   org.gradle.daemon.idletimeout=3600000
    # '';
  };

  # Home Manager can also manage your environment variables through
  # 'home.sessionVariables'. If you don't want to manage your shell through Home
  # Manager then you have to manually source 'hm-session-vars.sh' located at
  # either
  #
  #  ~/.nix-profile/etc/profile.d/hm-session-vars.sh
  #
  # or
  #
  #  /etc/profiles/per-user/santasspy/etc/profile.d/hm-session-vars.sh
  #
  home.sessionVariables = {
    # EDITOR = "emacs";
  };

  # Let Home Manager install and manage itself.
  programs.home-manager.enable = true;
  
  programs.bash = {
	  #enabled = true;
	  shellAliases = {
   		open = "xdg-open";
   		home = "open ~/.config/home-manager/home.nix";
   		buildHome = "home-manager switch";
   		switch = "sudo nixos-rebuild switch";
    };
  };
  
  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;
}

The reason that programs.bash.enabled = true is commented out is I keep getting the error that "programs.bash.enabled does not exist"

Another less pressing issue that I'm having is that none of the gnome extensions that I've listed in home.nix are showing up in Gnome Extensions app, and if anyone has any suggestions on how to fix that it would be much appreciated :)

Thanks for the help in advance!

2 Comments
2024/04/29
12:09 UTC

85

Moderation no-go zones

I would like to propose the following rule for NixOS community moderation:

"Discussions about moderation MUST NOT be moderated."

More specifically the following MUST NOT be moderated:

  • Discussing the moderation policy,
  • Discussing individual moderation decisions,
  • Discussing moderation principles,
  • Discussing moderation transparency standards,
  • Discussing the moderate team as a whole and their actions,
  • Discussing individual moderation team members and their actions,
  • Discussing relieving mod. team members of their roles

This is an implementation of the nemo iudex in sua causa principle -- no one is judge in their own case -- that all modern legal systems follow.

My motivation for my proposal: rhendric made a very clear threat on Discourse that further discussing a moderation team decision will lead to a ban from Discourse: "Any users who find this instruction difficult to follow, may find it difficult to log in for the next days". Source. I find that threat entirely unacceptable, an abuse of moderation powers and harmful to the community.

I have opened a PR against the RFC repo, RFC 176.

This post is no implicit endorsement of RFC 175 nor RFC 114. Also I apologize for adding to the ongoing drama.

69 Comments
2024/04/29
09:57 UTC

8

Why package updates are not always merged automatically?

We all know that getting a pull request reviewed is not always easy. Why do we waste people time reviewing simple package updates that could be merged automatically?

I often see many PR like this:

This kind of updates consist of just changing the package version and the hash, sometimes the commit to fetch. It can't contain security issues we can solve with a review, since we are not gona review the original repository code anyway. If we merge automatically this kind of PRs we would eliminate the vast majority of the open PRs waiting for review.

8 Comments
2024/04/29
09:20 UTC

3

Quick question: How to store the output of a command as a nix varible?

I looked all over the internet, and i found some things that **might** work, I tried builtins.exec but that wont work for configuration.nix, and a few things, i know this might be possible with hacky solutions like piping the output to a file then storing the contents but ideally id like something more purpose built

If you dont understand what i mean:

echo Test

The output would be "Test" and id like that output stored in a nix varible, this is a example ofc, my actual use case is a bit more complex

(also sorry for coming second time this week)

2 Comments
2024/04/29
07:48 UTC

0

WHAT THE FUCK

Why is there so much drama over this damn distro just use a different one SMH y'all are dumbasses

7 Comments
2024/04/29
07:02 UTC

3

Has anyone successfully installed the continue-dev IntelliJ plugin on NixOS?

I installed the continue-dev plugin in IntelliJ IDEA (on NixOS 23.11).

...
    (jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ 
      (pkgs.stdenv.mkDerivation {
        name = "continue";
        version = "0.0.45";
        src = pkgs.fetchurl { 
          url = "https://downloads.marketplace.jetbrains.com/files/22707/523317/continue-intellij-extension-0.0.45.zip?updateId=523317&pluginId=22707&family=INTELLIJ"; 
          hash = "sha256-ch9lrIQLnCPh2SpIvujHcNs7u6swt3eTt8R7WXRfXLY="; 
        };
        dontUnpack = true;
        installPhase = ''
          mkdir -p $out
          cp $src $out
        '';
      })
    ])
...

I am getting a missing JCEF lib exception.

java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
	at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:122)
	at com.intellij.ui.jcef.JBCefBrowserBase.lambda$new$3(JBCefBrowserBase.java:159)
	at com.intellij.util.ObjectUtils.notNull(ObjectUtils.java:121)
	at com.intellij.ui.jcef.JBCefBrowserBase.<init>(JBCefBrowserBase.java:159)
	at com.intellij.ui.jcef.JBCefBrowser.<init>(JBCefBrowser.java:191)
	at com.intellij.ui.jcef.JBCefBrowser.create(JBCefBrowser.java:141)
	at com.intellij.ui.jcef.JBCefBrowserBuilder.build(JBCefBrowserBuilder.java:128)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinueBrowser.<init>(ContinueBrowser.kt:66)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinueBrowser.<init>(ContinueBrowser.kt:21)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$browser$2.invoke(ContinuePluginToolWindowFactory.kt:56)
	at com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory$ContinuePluginWindow$browser$2.invoke(ContinuePluginToolWindowFactory.kt:51)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)

Here is nix-locate results. It seems like jetbrains-jdk already have that.

$ nix-locate libcef.so
syslogng.out                                     16,744 x /nix/store/nx79in044231bj37dijfdvzsq5pa3j3z-syslog-ng-3.38.1/lib/syslog-ng/libcef.so
onlyoffice-bin.out                          149,925,664 r /nix/store/9vhpigk2d2y5grcb253yqrmz1ralh144-onlyoffice-desktopeditors-7.2.0/share/desktopeditors/libcef.so
(onlyoffice-bin_7_4.out)                    207,094,912 r /nix/store/nbym3vj4s2scqi71aksmkxnj8ygmindy-onlyoffice-desktopeditors-7.4.1/share/desktopeditors/libcef.so
(onlyoffice-bin_7_4.out)                    207,094,912 r /nix/store/ndbxkqfdynh52zwz7mcyjj5683qa9bgv-onlyoffice-desktopeditors-7.4.1-fhs/usr/share/desktopeditors/libcef.so
obs-studio.out                              341,793,896 r /nix/store/dzf7v6zdw9b2wdfjqhkcxw8y7k2nf6bi-obs-studio-29.0.2/lib/obs-plugins/libcef.so
jetbrains.jdk.debug                                   0 s /nix/store/lrzxbghja3vr0acz981kcr7sdj223xcm-jetbrains-jdk-jcef-17.0.7-b829.16-debug/lib/debug/libcef.so
jetbrains.jcef.unpacked                   1,396,017,944 x /nix/store/vc8qi5hzf66f34rvx25y39ld730i8llh-jcef-jetbrains-654-unpacked/jcef/lib/libcef.so
jetbrains.jdk.out                           300,785,872 r /nix/store/jns7sx2hsnnzl0bi96wfr6xdrnz5r8bs-jetbrains-jdk-jcef-17.0.7-b829.16/lib/openjdk/lib/libcef.so
libcef.out                                1,238,951,696 x /nix/store/nw4d3csnhz3crw0abpk2c9lkh7jbskmf-cef-binary-117.1.5/lib/libcef.so

Could anyone advise on how to fix this issue? Your assistance would be greatly appreciated.

Thank you!

4 Comments
2024/04/29
03:33 UTC

1

'DRI driver not from this Mesa build' Error

Hi, I recently updated riverwm to 0.3.0 and it has come with 2 issues where A. godot is running very slowly and B. steam proton games fail to launch. After opening an issue in the river repo Ive discovered (with some help) that what was causing it was that it was trying to use software rendering and this was caused by the 'DRI driver not from this Mesa build' error, if anyone can help me solve this I would be very greatful, thanks

1 Comment
2024/04/28
22:12 UTC

9

Why doesn't my steering wheel doesn't work with games using Proton?

I have a steering wheel Logitech Driving Force GT. It used to work well with native apps and Proton games on Steam when I was using Arch.

I have NixOS now, and the wheel works (after adding the udev rules) in Oversteer and native games like Grid Autosport and Dirt 4. But it does not work in Proton games like BeamNG.drive and Dirt Rally 2.

Why is that, and how can I make the wheel work in Proton games in NixOS?

6 Comments
2024/04/28
19:27 UTC

4

How to remove a flake?

Pretty straight foward question that has humbled me on the Nix experience. How do I safely remove a flake installed as a module (not via home-manager)? I installed the Hyprland flake, was going to switch back to install via config instead since I realize i just dont understand how to manipulate flakes well yet. When simply deleting the flake, rebuilding the system caused an error, unable to find nixos-config or something like that. So I re-installed it. but its annoying because it forces me to use the --impure flag when rebuilding. So I would like to go back to the good ol days when things were simple for a bit lol. What am I missing? I've yet to find any human readable language that explains how to do this. I appreciate the help and my instincts tell me the answer is probably very simple. I just cant find it. Thank you.

9 Comments
2024/04/28
19:10 UTC

12

The OpenSolaris community crisis sounds so familiar than ever

9 Comments
2024/04/28
18:59 UTC

0

Should NisOS have accepted the Anduril sponsorship?

What is your opinion on this?

View Poll

53 Comments
2024/04/28
17:34 UTC

0

Do you think Eelco Dolstra should stay as member of Nix Team?

What is your opinion on this?

View Poll

12 Comments
2024/04/28
17:22 UTC

2

Help with kernel freeze

This is what I got from journal before the system completely freeze, I need a way to at least track the reason and if possible fix it.

I tried linux-zen and now on linux but no luck with both.

Thanks in advance

kernel: BUG: unable to handle page fault for address: 000000000000928d
kernel: #PF: supervisor read access in kernel mode
kernel: #PF: error_code(0x0000) - not-present page
kernel: PGD 0 P4D 0
kernel: Oops: 0000 [#1] PREEMPT SMP PTI
kernel: CPU: 4 PID: 38627 Comm: systemd Tainted: P           O       6.6.28 #1-NixOS
kernel: Hardware name: HP OMEN by HP Laptop 15t-dc100/8574, BIOS F.28 07/11/2023
(sd-pam)[38632]: pam_unix(systemd-user:session): session closed for user kim

0 Comments
2024/04/28
17:22 UTC

4

nix on ubuntu - any experiences ?

Does using nix and its home manager / package manager in ubuntu with e.g. gnome make the packages installed available as icons on the desktop when the user, for whom the packages & home manager has been set up, logs into the machine? Or is it only available on the command line of that user? (I mean the process shown in this video which is command line only)

https://tech.aufomm.com/my-nix-journey-use-nix-with-ubuntu/

8 Comments
2024/04/28
17:22 UTC

0

NixOS to run RKE2 - anyone tried this?

Title says it all, did anyone try to run RKE2 on NixOS instead for example Ubuntu? Does it work for you in the long run? Anything not working?

0 Comments
2024/04/28
16:34 UTC

3

Can't disable devices in OpenRGB settings

Hi all, I was wondering if there's any other OpenRGB users who might be able to help me troubleshoot this.

I have a longstanding issue where allowing OpenRGB to control the LEDs on my keyboard borks the firmware. In the past I've fixed this by disabling my keyboard model in OpenRGB's Supported Devices list, but on NixOS for some reason enabling/disabling a device seems to have no effect on whether OpenRGB continues to detect it.

So far, I've tried disabling all devices to see if that changes anything (I also have LED lighting on my RAM, CPU cooler, and motherboard) and all of those devices continue to get detected despite being disabled. I've rebooted just in case it only detects at first boot. I verified that the device enable/disable changes were being written to `~/.config/OpenRGB/OpenRGB.json` by the GUI.

Does anyone have any experience troubleshooting this particular issue or an idea of what I can do to fix it? I apologize if I'm missing something obvious or if this is the wrong place to try and ask about the issue.

5 Comments
2024/04/28
15:34 UTC

Back To Top