r/NixOS • • 3h ago

Anyone else feel like they didn't retain anything they learned?

6 Upvotes

I have been on nixos for a little over a month now. It has been really fun configuring everything to my liking and I can finally say I have a system that feels like my own.

One thing that concerns me though is that I still don't feel like I am familiar with the nix lang at all. I am at a point where I know how to install the packages I need. How to mange my flake.nix inputs and make configurations. But if I had to remake my system tomorrow it would definitely take me some days to relearn some things.

I understand that the point of nix is to not have to build my system again in the first place. But I just don't feel like I really retained any of the things I learned. If someone asked me to explain my system configuration I would probably mumble about and not be able to give a coherent answer.

Is this something that goes away eventually? Or do long time NixOS users feel the same way?


r/NixOS • • 1d ago

2035 came early

Thumbnail fzakaria.com
102 Upvotes

r/NixOS • • 21h ago

Adopting NixOS

11 Upvotes

I'm new to NixOS. I've used Linux mostly for the job for nearly three decades. That was cli based. I recently started reading about NixOS back in September. I liked the declarative nature of the config. Early October I acquired a ThinkPad T14 Gen 7 to load it on.

I need accessibility tools like sticky keys and mouse click-lock. Gnome covered most accessibility needs minus mouse click-lock. In the past this missing accessibility feature has prevented me from adopting Linux as a daily driver workstation. I've had conversations with developers of accessibility tools but got no traction.

First I tasked Copilot with engineering a solution. It seemed stuck so I tried Gemini. In a few hours, we came up with a solution using Nix expressions. Quite impressive. The click-lock works perfectly.

Now I'm slowly adding software I use regularly. I'm committed to declaring everything through Nix modules. With success, I've converted an old X1 Carbon I use for roasting coffee, deploying the roaster Appimage software as a Nix Package. The declaration worked. Its tested on the T14 as well.

Next, I converted a ThinkPad P1 G4 that I used for running VMware workstation. It is now running NixOS. VMware is working.

I've added Tailscale mesh VPN. All my systems can reach each other whether they are on the local network or geographically dispersed.

I've got three Windows systems left. I was going to convert more but I think I'll hold off. I'm still very much dependent on AI to assist. In principle, I understand what is going on, simpler changes, I'm good with. But when it comes to things like overlays and such I am still very much trying to figure these out.


r/NixOS • • 19h ago

Avoiding builds for nixos-hardware/nix-facter patched kernels

5 Upvotes

Hi all, i'm running into a little issue and i'm wondering if anyone has found a solution to this yet.

I'm building my own nixOS based distribution, and as part of that, i've fully integrated nixos-hardware and nix-facter. this means that the nixos-hardware module for the specific device is already included in the initial install.

this, however, leads to a problem on my surface go gen 1, it is very very slow, but its nixos-hardware module contains a patched kernel that is not in cache.nixos.org, this means that during install, this pentium 4415Y has to build the kernel. this causes install time to jump from about 20-30 minutes to 4 hours *and counting*.

Is there possibly a trustworthy binary cache for these kernels?


r/NixOS • • 1d ago

I have gone crazy

Post image
45 Upvotes

For the last 8 hours i spent trying to install nixos with help of gpt was targetting to install btrfs subvolume structure via manual method and when tried to boot it failed and from there i kept on doung circles and circles with it's over positive responses i felt like shit this would definitely be last command but now after loosing my insansity i can't do this shit more

And now i am realising i should simply do head bang uffff...

Ps I know i am novice bcz of this shit i did but plz tell me some guide or docx so i can create sub volume btrfs type nixos


r/NixOS • • 1d ago

Packages arent getting uninstalled even though i removed it in configuration.nix

5 Upvotes

For example, if i installed plasma-login-manager (services.displayManager.plasma-login-manager.enable) earlier but i want to remove PLM and use SDDM instead so i just remove PLM's configuration and add SDDM in and run nixos-rebuild switch, then reboot. But after a reboot, PLM still coexists with SDDM and still being set as default instead of SDDM. I'm new to Nix so i will be happy if someone can explain it and have a way to fix it :)


r/NixOS • • 16h ago

Gentlemens agreement!

Post image
0 Upvotes

Save this picture & whenever you see someone writing "I use arch btw" reply with this.


r/NixOS • • 2d ago Heartwarming Bravo

On NixOS, politics, and the trans community.

290 Upvotes

alright yall, it seems some people on this sub do not understand the importance of trans inclusivity in the community, nor the fact that FOSS in general, and nix with it, is political. Rather than holding endless circular arguments or claiming posts are "not about nixOS", lets talk SPECIFICALLY about how all of that affects the distribution and its ecosystem. Yes, this *is* a nixOS-relevant post.

firstly, on the topic of "keep politics out of FOSS":

FOSS is inherently political, It is built on the concept of copyright, which is a state-granted monopoly. Licensing terms are a political choice on how to use that monopoly.

FOSS, according to the GNU manifesto, is a matter of the users' freedom to run, copy, distribute, study, change and improve software. in Eben Moglen's "Anarchism Triumphant" from 1999, it is stated that "Free software is the first successful anarchist movement in a long time". anarchism is not apolitical. it is a political movement that chooses freedom to the extreme that it denies any form of centralized control. FOSS started as an ethical movement, not a business strategy. This is also why nowadays, there's the distinction between "Free Software" and "Open-Source Software", the OSI was founded to market OSS to corporations, and highlights a political split.

GPLv3 includes an anti-tivoization clause in direct response to tools like DRM and device lockdown, and licenses like SSPL, Commons Clause and Elastic are corporate counter-moves to FOSS and the GPL.

FOSS has also been a target for political actors directly, the 2024 xz backdoor was due to an unpaid maintainer being socially engineered by what is theorized to be a state-linked actor.

next to that, many FOSS projects have their own constitutions and political structure. nix has the foundation as well as the steering committee. Codes of Conduct are *also* inherently political documents, maybe check out Eric Raymond's "The cathedral and the Bazaar" from 1997.

there's also the very fact that architecture and technical design can and frequently does embody political arrangements. to read more about this, you can check out Langdon Winner's "do artifacts have politics?" from daedalus 109 or Lawrence Lessig's "Code and Other Laws of Cyberspace" from 1999. architectural choices like DRM, telemetry defaults, account linking and proprietary formats are all design decisions that frequently have a political nature to them.

nix itself makes some political choices as well. the default allowUnfree = false, the on-going discussion about proprietary binary blobs with no source code, and even cache trust is a political topic.

nixOS also has a trademark, and nixpkgs has many participants with ties to politically-active organisations, corporations and even national institutions (see also: Anduril's involvement in nix, the french Securix project and the dutch nix-DAWO project)

"political" does not mean "partisan", something being political means it involves the allocation of power, money or legitimacy. these are all topics that FOSS and in turn, nixOS, are heavily involved in. a useful test for this would be the question of "does the decision determine who can participate, who pays, who decides, who is protected, or what the software may be used for". if the answer is yes, congrats, that's a structurally political decision.

now that we've covered how yes, nixOS *is* political, lets talk about "the trans thing".

firstly, the nixOS marketing team published the following in 2025: https://discourse.nixos.org/t/celebrating-pride-month-with-a-fresh-look-and-a-stronger-voice/66170

here's a direct quote from that post: "we stand with our LGBTQ+ friends, colleagues, and contributors - those who lead, build, support, and inspire every day."

Based on this, I believe it is safe to say that nixOS's official stance is to be inclusive and outspoken.

Nix has had long-standing issues with maintainer and contributor turnover. This is only worsened by hate and discrimination. It shouldn't come as a surprise that a community in which a vocal minority spouts hate without receiving any consequences pushes the members to which that hate is directed out of the community.

"ok, but how much can those people even do for nixOS", well, let me highlight some big community contributors in nix's past and present. note that while some of these individuals have left, i do not want to insinuate that that is all because of hate speech or transphobia. I will not be discussing why someone left in this, nor will i be discussing if and how these individuals were affected by hate speech or transphobia in the community, that is a personal story for them to tell, not for me to dig up. Any person mentioned here currently has an easily-findable public post up stating their gender identity, though links to those were not included to keep the focus on their contributions, not their gender.

- worldofpeace

worldofpeace was co-release manager alongside jonathan ringer on nixOS 20.09 and among the top 10 contributors for that release (source: https://discourse.nixos.org/t/nixos-20-09-release/9668). they were also part of the team maintaining GNOME, and jonathan has stated on the 21.05 retrospective that losing worldofpeace, who quit contributing in 2021, was a big blow to the gnome maintainer team (source: https://discourse.nixos.org/t/21-05-retrospective/13426)

- Gabriella Gonzalez

Gabriella's contributions include 2 years on the nix steering committee, writing both the book and source repository "NixOS in Production" (a handbook for nixOS in professional use cases, git repo: https://github.com/Gabriella439/nixos-in-production), the tool `nix-diff` (git repo: https://github.com/Gabriella439/nix-diff), and a long-running documentation project on using nix for haskell development (https://github.com/Gabriella439/haskell-nix)

- Jade Lovelace

Jade (going by lf- in the nix community) has made various contributions including being one of the developers on Lix (https://jade.fyi/about ) and maintains multiple low-level tools in nixpkgs (https://nixpkgs.fyi/?maintainer=lf-)

- Lisanna Dettwyler

Lisanna created nix-scheduler-hook (https://github.com/lisanna-dettwyler/nix-scheduler-hook ), are a nix maintainer and were a speaker at nixCon 2026 (https://talks.nixcon.org/nixcon-2026/speaker/7LVSAC). She had her own talk on the new .devShell interface for `nix develop` during this con.

- Emily Trau

Emily kickstarted the minimal bootstrap project, and led the full-source bootstrap work on the STF's supply-chain security project. the same project that also brought you lanzaboote for secureboot. https://discourse.nixos.org/t/nixpkgs-supply-chain-security-project/34345

Emily is a maintainer of 195 packages in nixpkgs, including the packages that make the minimal bootstrap of stdenv possible: https://nixpkgs.fyi/?maintainer=emilytrau.

- Lily Foster

Lily was involved in the development of OfBorg, the CI bot that tests nixpkgs pull requests. this funding was done through the nixpkgs contributors open collective. (https://discourse.nixos.org/t/introducing-the-nixpkgs-contributors-open-collective-empowering-nixos-growth-to-contributors/33799). this tool was labeled the "unsung hero of the nixpkgs ecosystem". She also took up the node.js work initiated by Winter and is a nixpkgs committer.

- Winter

winter (winterqt in the community and on github) was part of the Nix Steering Committee, helped build darwin-build-box (https://github.com/nix-community/darwin-build-box) and was a speaker at nixcon 2026 (https://talks.nixcon.org/nixcon-2026/speaker/PXMNS9) alongside the earlier-mentioned node.js work.

- pyrox/pyrox0

pyrox0 is a nixpkgs security contributor, and was rewarded the "Amazing Contributor" badge for 250 accepted pull requests into nixpkgs, it (yes, it.) was also part of the minimal-bootstrap team alongside Emily. (https://github.com/NixOS/nixpkgs/blob/master/maintainers/team-list.nix line 527)

These people have contributed to things many users of nix rely on. They are an important part of the community, and should be treated with the same level of respect as every other contributor. Nix as it is now would not have existed without the involvement of trans people.

So lets not pretend like we are "keeping politics out of nixOS" by not protecting vulnerable minorities within our community. The people spouting hate don't do anywhere near as much work keeping the distribution running as the people above do, and if there's one group we should push out of the community, it is those hellbent on pushing others out for their identity.

(not to mention, this is completely ignoring the contributions of trans individuals to core development of many of the technologies that nixOS runs on today, such as ARM and x86.)

I do apologize if this was a bit sloppily written, I haven't written this long or researched of a post in a while.


r/NixOS • • 2d ago

reproducible hyprland configs=satisfaction(nix+hyprland setup)

Thumbnail gallery
20 Upvotes

r/NixOS • • 2d ago

VentoOS & Vento Ecosystem Update!

Post image
4 Upvotes

Hey! It's been a good minute since my last post about VentoOS. As a recap, VentoOS is a Linux distro/flake designed to be pleasant to use—both for developers who need a system that just works out of the box and for newcomers who just don't want something that breaks. VentoOS is built on Vento Core, which provides boilerplate code and quality-of-life features like JSON configs (allowing you or external tools to edit a JSON file to configure things like drivers or SSH, and then rebuild the system). The Vento ecosystem is still early, but I felt like it was time to post an update :)

VentoOS: https://gitlab.com/external9574519/ventoos/Vento

Vento Core: https://gitlab.com/external9574519/ventoos/vento-core

Discord Server: https://discord.gg/WkCqxa2yZ

I still do have installer struggles. My plan is to have disko partition the drive and then run nixos-install to install it onto the disk via a Kirigami application. Contributions would be nice!

Edit: Also should mention I made the wallpaper my self, no AI.


r/NixOS • • 3d ago Heartwarming

The new Trans Nixos Logo looks awesome!

Thumbnail gallery
952 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 • • 2d ago

Laptop freezes after being afk a long time and after big rebuilds or rust compilations

1 Upvotes

Maybe not really nix problem more a linux itself problem but since I only use nixos I decided to first ask here in hope the place is okay and people are willingly to give some advice or help.

I had some lags when i resumed my pc after being afk for an hour or so it didn't respond at all anymore and I always had to force reboot via the hardware and when I did big builds it became laggy in KDE Plasma.

So with claude I traced some stuff to the PowerDevil's DDC/CI brightness code fighting with my HP G5 USB C Dock, and btrfs did automatic discard on my nvme.

I would like to get some feedback maybe if someone had similar issues or just has better knowledge on how this stuff works than I do... So for the geeeks :)

It is a Lenovo V15 G4 IRU, NixOS 26.05, linux_zen 7.3 and I mostly use Plasma 6.6 although I also have GNOME, COSMIC and Hyprland which I switch to times to times. Maybe thats also an issue to have so many ones activated haha ?

Esle btrfs on LUKS, USB-C dock with 3 monitors and my NVME is a AGI AI298 2TB.

I have my stuff here on git so if you guys like to test stuff out idk I havent pushed the latest fixes yet: https://github.com/Muddyblack/NixOS

1. Total freeze after resume
Each time, PowerDevil (libddcutil 2.2.7) logged DDCA_EVENT_DISPLAY_DISCONNECTED just before. Every boot with such a disconnect froze; boots without one didn't.

The pc keeps running (logs and other sessions continue for hours), but modesetting and gui even other tty's are all dead. So basically all monitor UI stuff.

INFO: task kworker blocked for more than 122 seconds.     
Workqueue: events_long drm_dp_mst_up_req_work [drm_display_helper]      wait_for_completion+0x8a/0x140      
i2c_del_adapter+0x11d/0x1b0      
drm_dp_port_set_pdt+0x1af/0x300 [drm_display_helper]

locally in my repo i have now changed in the plasma-settings.nix:

xdg.configFile."systemd/user/plasma-powerdevil.service.d/no-ddcutil.conf".text = ''
    [Service]
    Environment=POWERDEVIL_NO_DDCUTIL=1
  '';  xdg.configFile."systemd/user/plasma-powerdevil.service.d/no-ddcutil.conf".text = ''
    [Service]
    Environment=POWERDEVIL_NO_DDCUTIL=1
  '';

2. Lag that lingers after big builds

/proc/pressure/io stayed at 40–50% after cargo builds, with CPU and RAM idle.

Some stuff from the PowerDevil stuck in a DDC retry.

btrfs turns discard=async for SSDs automatically on. My NVMe takes about 5 to 6 ms for a trim and a rust target build queus like 161k of them after a build haha so yeah now I set "nodiscard" on to my btrfs mounts but I wonder if that is really the good way is the SSD that comes default with that lepatop just that bad probably XD I just wonder I should not have to change the default value here nor? 😅 Now the services.fstrim is set as weekly trimming but I am unsure if that s better or worse.

---------------------------

SO I wonder if others have experienced similar especially the i2c_del_adapter hanging with MST docks... Is that maybe a kernel bug I should report either drm/i915 or ddcutil wondering if I should report it upstream.

What would you guys pick for the issue of btrfs discard....?

I moved away from Windows but I have to say my pc never lagged that much in Windows but I also did not do as heavy stuff as I do now in Linux XDD so hard to compare still happy about nixos as it has features I can not really live without anymore and now other distro has those :P

REPO:
https://github.com/Muddyblack/NixOS


r/NixOS • • 2d ago

Using end4 or caelestia?

3 Upvotes

Is there a good way to use end4 or caelestia dotfiles on nixos with hyprland?


r/NixOS • • 3d ago

Just switched

21 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 • • 2d ago

New Nixos Yapper Server

0 Upvotes

Hi. I've been using nixos for 4 months and have decided to make a nixos yapper server

https://yapin.gg/invite/rBqrCmLXhi


r/NixOS • • 2d ago

New black lives matter Nixos Logo looks awesome!

0 Upvotes

r/NixOS • • 4d ago

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

53 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 • • 4d 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
49 Upvotes

r/NixOS • • 4d 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
102 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 • • 4d ago

NixOS on Raspberry Pi 4

23 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 • • 4d ago

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

Thumbnail gallery
11 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 • • 2d ago

Hey hey nixos and nixos users (I know you don't gonna miss me) but I gonna miss good bey

Post image
0 Upvotes

r/NixOS • • 3d ago

Software to back up my phone and then emulate it.

1 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 • • 4d ago

Best approach to transitioning from Ubuntu/Fedora to NixOS?

16 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?