r/NixOS • • 12h ago Heartwarming

The new Trans Nixos Logo looks awesome!

Thumbnail gallery
378 Upvotes

It genuinely looks so sick, love to see it!

Unsure if this was posted before but can't hurt to do it more :3


r/NixOS • • 7h ago

Just switched

13 Upvotes

My inner geek is feeling this.

I've just managed to install the latest Nvidia drivers.

That's all I have set up so far. Still using just the tty.

I feel the urgency to make git track the config file and automate it. Any guide anyone can point to? I'd be really grateful.

I'm not a Linux expert at all but I'm comfortable enough to navigate. Coming from a few years on Debian.

NixOS is so elegant. It is beautiful stuff.

I'm running stable yet many of the packages I'm going to need are pretty much bleeding. On. Stable.

I love debian and will never betray it. But I gotta say, I just started and I already can tell this is on another level.

Cheers


r/NixOS • • 22h ago

I'm building a custom Wayland compositor, shell, and UI toolkit for NixOS

42 Upvotes

I'm building a Wayland compositor, desktop shell, UI library, and a few core apps specifically for NixOS. The main idea is to make NixOS system configuration manageable through a native GUI rather than editing everything by hand.

Still very much a WIP, so there are plenty of rough edges.

If you're interested, feel free to join our Discord!

https://discord.com/invite/m39vzmyg5J


r/NixOS • • 1d ago

Thoughts on CVEs being used to mark packages as insecure in nixpkgs? I understand the intention, but if I'm already using that insecure package version, all it's doing is breaking the build and preventing everything else from updating. I'll mark it as permitted I suppose, but interested in thoughts.

Post image
44 Upvotes

r/NixOS • • 1d ago

`nix-secrets`: a postmodern secrets manager for NixOS, Home Manager, nix-darwin, and Hjem configured entirely within the Nix module system, with templates, generators and placeholders

Thumbnail github.com
89 Upvotes

https://github.com/unnamed-systems/nix-secrets

https://ynf.sh/posts/nix-secrets-a-postmodern-secrets-manager-for-nixos

Advantages:

  • Configure secrets entirely in your NixOS configuration - no YAML files or standalone Nix expressions.
  • A CLI and activation mechanism written in Rust with atomic operations - no more slow Bash scripts.
  • Support for templates, placeholders (a feature that lets your CI use placeholders instead of real secrets), and generators.
  • Support for both systemd service activation and activation scripts.
  • Small binary and closure size. The nix-secrets binary is less than 2 MB, compared to sops being over 50 MB, for example.

Configuration example

{ lib, ... }: {
  security.nix-secrets = {
    enable = true;

    # Path to your secrets directory (copied to the Nix store).
    # For improved security, it is recommended to keep the storage in a private repository and reference it through a flake input.
    storage = ../secrets;

    # Paths to your age identities.
    # For NixOS it defaults to the "/var/lib/nix-secrets/identities.txt" and the RSA and ED25519 SSH keys from the `services.openssh.hostKeys`.
    # For Home Manager and Hjem it defaults to the "~/nix-secrets/identities.txt".
    # For nix-darwin it defaults to the "/Library/Application Support/nix-secrets/identities.txt" and the RSA and ED25519 SSH keys from the `services.openssh.hostKeys`.
    identityPaths = [
      "/home/user/keys.txt"
      "/home/user/.ssh/id_ed25519" # SSH keys are also supported.
    ];

    # Define recipient aliases for easier secret configuration.
    recipientAliases = {
      master = "age14e2jdmau7tpau9emcn6gmg26vfl0uyf6cfd9lz85jml6ttv9wq2qphps4t";
      ssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuUsB0HH//1qkvgQMWTEoNd0riZpk+8A5w1Ep2vGKk0";
      all = [ "master" "ssh" ];
    };

    # Recipients automatically added to every secret.
    # To override this list for a specific secret, use `lib.mkForce`.
    defaultRecipients = [ "master" ];

    # Declare your secrets and their recipients.
    secrets = {
      password = {
        recipients = [ "all" ];
        # Whether the secret must be available before users and groups are created.
        neededForUsers = true;
      };
      signingKey = {
        recipients = lib.mkForce [ "ssh" ];
        generator = "ssh-ed25519";
      };
      something = {
        recipients = [ "age1j0qx6wdh4ncr3dvexuy9ysu5mrpkp5p7rldt8j7mc6r4xkzngcpqeuk403" ];
        path = "/var/lib/something";
        mode = "0440";
        owner = "alice";
        group = "users";
      };
    };
  };
}

For more info, check out the README or the docs.


r/NixOS • • 1d ago

NixOS on Raspberry Pi 4

19 Upvotes

Hey community,

I want to test nixOS on a Raspi 4 with 4GB before I change my whole working station.

Did someone tried it out before?


r/NixOS • • 1d ago

NixOS with KDE Plasma on my Android phone, without replacing Android

Thumbnail gallery
7 Upvotes

This is NixOS running alongside Android on my phone. I started with the official aarch64 NixOS LXC image. The installer builds a system generation with nixos-rebuild boot and runs its activation script. Plasma comes from services.desktopManager.plasma6.enable, and /etc/nixos/configuration.nix is yours to edit.

Android still owns the hardware and supplies the kernel. I didn't unlock the bootloader, flash anything or boot a VM. Shroot runs the Linux userspace, and MagicDesk puts the Plasma session on the phone or an external monitor.

The first screenshot is Konsole with fastfetch and the active generation. The second is the same Plasma session with KDE's About this System open.

The NixOS recipe: https://github.com/mekhontsev/magicdesk/blob/main/docs/shroot.md#nixos


r/NixOS • • 1h ago

could we please make it unacceptable to be lgbtphobic?

0 Upvotes

you read the title

i'm fucking tired of seeing people call trans stuff "political causes", and that "they're shoving it down our throats"

my dude. my buddy. my friendo. it's not a political cause, trans people are real, not a concept. no one's shoving it down your throat they're just trying to give trans people their much needed safe space

and then there's always the far too upvoted "they don't need this representation" (or approx) comment

again, trans people are real, not a concept. and so are the rest of the lgbtq+ community!! they actively suffer in a lot of places (like the US and many other human-rights-disrespecting countries), which is why the community was actually made for (for support and for giving lgbtq+ their human rights back), and still you have the AUDACITY to say they don't need rep?? in a community they are a part of??

it's both far too normalized and far too accepted. PLEASE. if you don't like a logo don't use it, it is that simple. it's more tiring to look at just "ugh i'm straight i don't get why we need this flag logo" than to look at the flag logo itself. because it's a flag logo that, i repeat, you can just not use!!! it IS that simple!!!!


r/NixOS • • 16h ago

Software to back up my phone and then emulate it.

0 Upvotes

Okay, so I have a Google Pixel 2. Really old phone and I need to replace it. I'm scared of loosing the data and functionality of it. When I was on Mint last year I looked into doing something like this and found extremely limited success. I have something in my backups drive that's probably corrupted and unusable, but at the moment I'm afraid of getting rid of it because it's the only backup I have. Any information or recommendations you can send my way would be appreciated.

TLDR; I want one or more programs that can accomplish the following:

  1. Make a system image of my phone or something equivalent.
  2. Run the system image as a VM or run the software therein through a compatibility layer.
  3. Load the system image back onto that phone or another should the need arise.

Thank you for reading my request. All feedback is appreciated.


r/NixOS • • 1d ago

Best approach to transitioning from Ubuntu/Fedora to NixOS?

11 Upvotes

I see great value and am considering transitioning to NixOS and would appreciate advice from people who've made the switch.

I currently use Linux across several machines, including Ubuntu, Bazzite/Fedora, and a Proxmox homelab. My main workflow includes Doom Emacs, Fish, WezTerm, Git, GNU Stow, and a collection of dotfiles.

I'm particularly interested in NixOS for reproducible configurations, declarative system management, and easier recovery or migration between machines.

A few questions:

  • Is it better to start with NixOS in a VM or try Nix/Home Manager on my current system?
  • Should I migrate my existing dotfiles into Home Manager or keep using GNU Stow initially?
  • Are flakes worth learning from the beginning?
  • What are the biggest challenges or mistakes to avoid when transitioning?
  • How well does NixOS work as a daily desktop, particularly with KDE, Doom Emacs, and gaming?

I'm comfortable with Linux and the terminal, but I'm new to the Nix ecosystem. I'd prefer a gradual transition rather than rebuilding my entire setup at once.

What approach would you recommend?


r/NixOS • • 2d ago

Exploring post-quantum cryptography support in sops-nix

Thumbnail sighery.com
44 Upvotes

A while after my previous article about sops-nix, about why I'm paranoid and keep secrets in a private repo, someone contacted me and we got to talking about post-quantum cryptography support in sops-nix.

Turns out it's fairly well supported, although undocumented, so I decided to write about it. I plan to contribute this information to the sops-nix documentation once I get some free time.


r/NixOS • • 1d ago

Do you use custom ffmpeg overrides or options?

2 Upvotes

The wiki page specifies ffmpeg overrides for certain features, the nixpkg source shows all of them. I had custom ffmpeg builds before switching to nixOS and thought I should use them here. But I stopped after seeing how long nixos builds take regularly with them, and since I don't even take advantage of those custom options anymore, I switched to use installing the regular package. If I ever want custom ffmpeg builds, I think I'm better off just compiling or downloading one whenever I want updates.


r/NixOS • • 2d ago

Keyboard input for XDG Remote Desktop portal

8 Upvotes

Hello,

I'm trying to have autotype working for keepassxc now that it is supported on walyland but I end up with the following message : "XDG Remote Desktop portal does not support keyboard input, Auto-Type disabled"

I use the following XDG setup on Niri :

  xdg.portal = {
    enable = true;
    config = {
      common = {
        default = [
          "gnome"
          "gtk"
        ];
      };
      niri = {
        default = [
          "gnome"
          "gtk"
        ];
      };
    };
    extraPortals = with pkgs; [
      xdg-desktop-portal-gnome
      xdg-desktop-portal-gtk
    ];
  };

Any idea what's missing ? I find no ressources online for this


r/NixOS • • 2d ago

I am finally Nixified

26 Upvotes

r/NixOS • • 2d ago

The easiest way to replace Homebrew with Nix

Thumbnail fforged.substack.com
47 Upvotes

I've tried (and failed) to set up Nix many times on macOS and use it to replace Homebrew.

I decided to try (again) and this time I used the installer from Determinate Systems, and just used Home Manager to install all of the packages.

So smooth!

I'm not using nix-darwin because I don't really need any of the benefits.

Anyway, I decided to do a writeup on the process, so if anyone is interested check out the post in the embed.


r/NixOS • • 2d ago

Anyone else not understand the whole takes 20s longer to install something that bad?

27 Upvotes

Maybe I used windows too long but I honestly feel like even looking up in the nixpkg doing rebuild switch is faster than what it was like installing stuff on windows and also it ends up being only once forever.

also how often are people installing new stuff sure when setting up stuff but once everything is setup very rarely am I adding stuff.


r/NixOS • • 3d ago

Build systems à la trace

Thumbnail fzakaria.com
23 Upvotes

r/NixOS • • 3d ago

I don't use arch, BTW

Post image
258 Upvotes

Switched over today

Couldn't be happier


r/NixOS • • 3d ago

podman-user-generator not generating quadlets

2 Upvotes

hi, i have setup nixos on my server and podman and i would like to use my existing quadlet files but podman-user-generator always fails.

I have found the following in a nixos discussion thats supposed to fix it but it doesnt, .pod files dont generate the corresponding unit and those files that do cant be started

environment.etc."systemd/user-generators/podman-user-generator" = {
source = "${pkgs.podman}/lib/systemd/user-generators/podman-user-generator";
target = "systemd/user-generators/podman-user-generator";
};

i have tried the systemd.user.generator = {}, but i dont get how to use it

home-manager doesnt fit my workflow and i dont like using it

i have also found a quadlet-nix flake but considering that i have multiple distros on my stack for different reasons, i would prefer to use my existing quadlet files.

anyone have any ideas and suggestions? Thank you in advance


r/NixOS • • 3d ago

[Hyprland >> NixOS] I love ubuntu style!

Thumbnail gallery
6 Upvotes

r/NixOS • • 4d ago

Read about how Shopify's engineering team switched to using Nix for their Agentic Software Engineering practices. Trying to understand how specifically?

55 Upvotes

Read about how Shopify's engineering team switched to using Nix for their Agentic Software Engineering practices. Trying to understand how specifically?

How does Nix particularly help agents for iterating faster on software? Asking as someone very new to Nix but who have worked with Docker et all in past.


r/NixOS • • 4d ago

Nix TacoSprint 2027 · A week of Nix hacking. In Mexico.

Thumbnail tacosprint.org
8 Upvotes

r/NixOS • • 4d ago

a guide to partitioning with disko

Thumbnail indium114.codeberg.page
36 Upvotes

i wrote this a while ago; deciding to post it here in case anyone finds it useful


r/NixOS • • 5d ago

Running NixOS on a Steam Deck!

Thumbnail gallery
167 Upvotes

Had originally posted this on r/GNOME, but I figured it would be interesting to share here too.

Long story short, looking for a way to run vanilla GNOME on my Steam Deck, I came across this flake, Jovian-NixOS (https://github.com/Jovian-Experiments/Jovian-NixOS/), that allows me to just use the Steam Deck's Gaming Mode on NixOS with minimal effort. I'd just have to declare/enable it, set it to autostart, and declare a desktop session for it to go back to when I click Switch to Desktop Mode.

Once I did that, I essentially had a Steam Deck where I can test out any desktop environment while keeping its functionality as a gaming console, without issues of breaking it because of the ability to rollback generations. I settled on GNOME as it's why I was looking for alternatives in the first place, but I might be curious to try some tiling WMs like Niri or Sway in the future!

I suppose I don't need to talk about how good NixOS is here in the NixOS subreddit, but wow.. as someone new to Nix (but fairly experienced in Linux otherwise), it has totally changed the way I look at this device and most distros now. I've mostly been keeping it light config wise as I'm not sure *what* to change yet, and I don't know if I'm confident enough to just change stuff for the love of tinkering; aside from adding Flakes to manage Jovian and declaring a couple of bug fixes to my config file, it's refreshing to see those fixes being declared in one easily accessible file that's easy to read.

What does the community think? Does anyone else run NixOS on a relatively weird setup?