Nix / NixOS

1982 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
151
152
153
 
 

cross-posted from: https://pawb.social/post/6260688

Recently, I switched to NixOS and realised that there is no G'MIC plugin package for Krita.

There's this issue that was last active in October 2023.

I was wondering if anyone has managed to install this without using another package manager (such as Flatpak) or installing an AppImage manually, for system reproducibility, and I also don't wanna have two package managers in one system.

Ideally, there'd be a wrapper, so you could do something like:

{ pkgs, ... }: {
  programs.krita = {
    enable = true;
    gmic.enable = true;
    gmic.package = pkgs.krita.gmic-qt;
  };
}

Thoughts?

Related: is there some kind of guide on these program.<name> wrappers? What are they and where are they defined?

154
155
156
157
 
 

cross-posted from: https://feddit.de/post/7895009

I'm a semi-recent NixOS user and one thing that bothers me since the beginning is that when I change the Gnome theme (between light and dark), Firefox doesn't adapt. The system theme in Firefox is enabled, but it always displays the light theme, no matter what theme is selected in Gnome.

Internet search, including searching through NixOS discourse, packages, options and Nixpkgs repo surfaced a solution.

Any ideas or tips how to achieve system theme integration for Firefox on NixOS?

NixOS 23.11 / Gnome 45 / sway

158
 
 

cross-posted from: https://programming.dev/post/8455606

If all goes well, we can release the alpha by the end of March

Now Available on NixOS!

COSMIC Terminal joins a long list of COSMIC DE projects that have been packaged for NixOS! While COSMIC DE will be the flagship desktop for Pop!_OS, it's designed and architected for distros to build their own custom, branded user experiences. Details for distro packaging will be released at the same time as the alpha.

159
160
161
 
 

It's a WIP, but I hope it's understandable and contains the necessary information to start packaging something using the builtin derivation function.

162
15
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Despite the name, the nixlang wiki is a community contributor wiki to document things around nix that the maintainers haven't gotten around to, to short-circuit the lengthy review process for the official documentation, and an attempt to make an entry into the nix ecosystem easier.

It's difficult to write things from a perspective of somebody who doesn't know, despite once being that person!

It would be great to have some feedback on the wiki.

P.S I'm not the maintainer, just a contributor.

163
 
 

🗓️ Mark your calendars! NixCon North America 2024 is happening on March 14th and 15th at the Pasadena Convention Center in Pasadena, CA, USA. Submit your talk or workshop proposal before December 31, 2023, 11:59 PM PST. Be a part of this exciting event! More details at: https://discourse.nixos.org/t/nixcon-na-2024-call-for-proposals/36491

164
 
 

A few months ago I went on a quest for a DNS server and was dissatisfied with current maintained projects. They were either good at adblocking (Blocky, grimd…) or good at specifying custom DNS (CoreDNS…).

So I forked grimd and embarked on rewriting a good chunk of it for it to address my needs - the result is leng.

  • it is fast
  • it is small
  • it is easy
  • you can specify blocklists and it will fetch them for you
  • you can specify custom DNS records with proper zone file syntax (SRV records, etc)
  • it supports DNS-over-HTTPS so you can stay private

I just released a new version which includes full NixOS support via a module! ❄

165
 
 

From this thread I found out about https://devenv.sh and https://www.jetpack.io/devbox but I'm having trouble comparing them to nix-shell.

Are they wrappers around nix-shell? They seem to do the same thing with services, devcontainer generation, environment variables, etc.

166
167
 
 

Hi all, looking for tutorials online is cool and all, but sometimes you just wanna sit down and read a physical book to understand something. So I was looking for suggestions on which books helped you the most, or which you've heard positive things about. Thanks!

168
169
42
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

A key thing to note:
"Updating with nixos-rebuild boot and rebooting is recommended, since in some rare cases the nixos-rebuild switch into the new generation on a live system might fail due to missing mount units."


Also I'm not sure if this is the beta release as Package Search currently(as of 3:22am) displays channel option: "23.11 Beta" (this might get updated soon who knows)


Other notable things that I've seen in the release notes:

  • sudo-rs is now supported
  • btrfs now can be auto resized
  • NetworkManager now uses nftables backend unconditionally
  • new service options for SearXNG "for better support"
  • new option for QEMU for enabling "specifying explicitly named network interfaces in QEMU VMs"
  • "virt-manager, an UI for managing virtual machines in libvirt, is now available as programs.virt-manager."
    • (this one's gonna be interesting for my config as I currently have it installed as a package, I'm gonna guess it's probably fine)
  • fail2ban configuration with attribute sets
  • "New boot.bcache.enable (default enabled) allows completely removing bcache mount support."

Either way I'd def recommend checking out their announcement and releases page for more details~
Thanks to the devs for making an awesone distro!🤗🎉

170
 
 

We are starting a new meetup group for the Rhein-Neckar-Region in Heidelberg, Germany.

The first event will take place on December 19 at the University's Mathematikon.

The twist is that we're beginning with a dual-topic meetup: Nix & Rust.

As there is some overlap between the two communities and we couldn't decide for which of the two we'd rather organize a meetup, we went for both in one.

The meetup is organized through the regional Mobilizon instance: https://rheinneckar.events/events/298e520c-89ca-4754-96f8-e252b96b7a46

Please sign up if you plan on attending so we can make sure there is enough space for all participants. Also feel free to drop an email at [email protected] or a Mastodon message at https://rheinneckar.social/@NixRust if you would like to become a speaker for the meetup, be it with a NixOS or Rust topic, or a combination of both!

The current (tentative) schedule:

  • 18:30 - Open Doors

  • 19:00 - Greeting

  • 19:05 - An Introduction to Nix

  • 19:30 - Second Talk (Rust related)

  • 20:00 - Networking and get together

171
 
 

Someone on another website asked me whether it makes sense to use agenix or sops-nix to encrypt secrets for NixOS configurations.

I realized that I hadn't seen a good overview article of the different approaches to secret handling in NixOS and when each one is appropriate to use, so I put down all of my knowledge and opinions in this post 🤞

172
 
 

Sorry Noob here. This is my second time trying NixOS as a desktop. I just did a new installation of NixOS on my main pc.

In Arch my goto kernel was the Zen kernel. Is something similar available on NixOS ?

What kernels do you use / has got the most out of ?

173
 
 

I've made a fun little project inspired by this (except it's not updated any more).

It provides easy instructions for installing old versions of packages, it takes them straight from the official nixpkgs repo.

Example: https://history.nix-packages.com/package/dotnet-sdk_3/3.1.426 (.NET SDK 3.1 actually prompted the creation of this tool, I needed it for one old project).

Each detail page provides instructions on how to install the package using nix-shell, nix-shell with shell.nix file, configuration.nix and nix-env.

The design is based on https://search.nixos.org (because I suck at graphical design).

Do let me know what you think!

174
 
 

It currently requires some extra steps to get Nitter up and running on NixOS as I found out yesterday. I documented the process for anyone else who might be looking to run their own Nitter instance between now and the trunk branch of Nitter being functional again.

175
1
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Reason for this post is to encourage external NixOS users to join our instance,

  • not sure if this'll work but it's an interesting experiment for me😆

  1. Configuring VS Code extensions with Home Manager

@Operator21 it seems that you're trying to install VSCodium in Home Manager. While I've stopped using HM and can't directly answer this I hope the following config helps: VSCodium override in configuration.nix - pastebin


  1. Brother Printers

@CharleHuff, one suggestion I have for fixing your printer problem is to host a Windows VM and print within it,

  • With Virt-manager, your configuration will look like this:

configuration.nix:

  ## [NixOS Virt-manager](https://nixos.wiki/wiki/Virt-manager)

  services =
  {
    ## Enables the qemu guest agent.
    qemuGuest.enable = true;
  };

  dconf.settings =
  {
    "org/virt-manager/virt-manager/connections" =
    {
      autoconnect = ["qemu:///system"];
      uris = ["qemu:///system"];
    };
  };


  ## Ungrouped Single-line configs:
  # virtualisation.libvirtd.enable = true;
  # programs.virt-manager.enable = true;

  ## Grouped configs:
  virtualisation =
  {
    ## Enables the libvirtd daemon that manages virtual machines.
    libvirtd.enable = true;

    ## Enables SPICE USB redirection helper with setuid privileges.
    ## Enable/uncomment to pass USB devices into your guest VMs
    # spiceUSBRedirection.enable = true;
  };

  programs =
  {
    ## Enables Virt-manager.
    virt-manager.enable = true;
  };


  users =
  {
    users =
    {
      <your_system_username> =
      {
        extraGroups = ["wheel" "storage" "networkmanager" "libvirtd"];

        ## tbh this might not be needed:
        ## this is from my days with archlinux (installing all dependencies)
        packages = with pkgs;
        [
          ## Virtual machine software/packages.
          dconf           # is a low-level configuration system. Its main purpose is to provide a backend to GSettings on platforms that don't already have configuration storage systems.
          dnsmasq         # An integrated DNS, DHCP and TFTP server for small networks.
          # bridge-utils  # (deprecated in favour of iproute2).
          iproute2        # A collection of utilities for controlling TCP/IP networking and traffic control in Linux.
          # ebtables      # (deprecated in favour of iptables).
          iptables        # A program to configure the Linux IP packet filtering ruleset.
          libguestfs      # Tools for accessing and modifying virtual machine disk images.
          libvirt         # A toolkit to interact with the virtualization capabilities of recent versions of Linux and other OSes.
          netcat-openbsd  # TCP/IP swiss army knife. OpenBSD variant.
          OVMF            # Sample UEFI firmware for QEMU and KVM.
          qemu_full       # provides qemu_kvm.
          vde2            # Virtual Distributed Ethernet, an Ethernet compliant virtual network.
          virt-manager    # Desktop user interface for managing virtual machines.
        ];
      };
    };
  };

configuration.nix:

  ## [NixOS VirtualBox](https://nixos.wiki/wiki/VirtualBox)

  ## Required for forwarding USB_2/3 to your guest VMs.
  ## Uncomment to enable [unfree packages](https://nixos.wiki/wiki/FAQ/unfree).
  nixpkgs.config.allowUnfree = true;


  ## Ungrouped Single-line configs:
  # virtualisation.virtualbox.host.enable = true;
  # users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];

  ## Grouped configs:
  virtualisation =
  {
    virtualbox =
    {
      ## Enables VirtualBox.
      host.enable = true;

      ## Required for forwarding USB_2/3 to your guest VMs.
      ## Uncomment to enable extensions.
      # host.enableExtensionPack = true;

      ## Uncomment to enable VirtualBox Guest Additions.
      # guest.enable = true;
      # guest.x11 = true;
    };
  };


  users =
  {
    ## Enable VirtualBox.
    extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];

    users =
    {
      <your_system_username> =
      {
        extraGroups = ["wheel" "storage" "networkmanager"];

        packages = with pkgs;
        [
          nano
        ];
      };
    };
  };

after finishing modifications run sudo nixos-rebuild switch --upgrade, hope this helps! 🤗

view more: ‹ prev next ›