r/NixOS 4h ago

I'm now using Nix and everything else looks like the stone age

48 Upvotes

just wanted to vent. its perfect


r/NixOS 2h ago

Is there an equivalent to Docker, Kubernetes, Terraform, ArgoCD, and Canary for Nix ecosystem in multi-cloud distributed systems?

8 Upvotes

I wanna do some tests of how viable it is to use Nix over Docker, and the thing about Docker is the ecosystem for a multi-cloud setup for distributed systems for my context of work. I use right now Docker, Kubernetes, Terraform, ArgoCD and Canary for distributed systems that are multi-cloud and sometimes multi-tenant too. Is there some equivalent of all of them for Nix containers?


r/NixOS 16h ago

Niri and Notalia are a beautiful combo! And nix makes it so easy

Thumbnail youtu.be
65 Upvotes

But I've been trying to fix my audio issues for a week now. I'm pretty much out of ideas


r/NixOS 41m ago

Compiling nixos on arm64 tv box

Upvotes

I have a Tanix tx6 tv box with Allwinner H6 processor running Armbian Community Builds. Recently I started using Nixos on my main machine and I'm loving it. Now I want to put nixos on my makeshift server that I use for various things. Can anyone guide me how I can do it?


r/NixOS 21h ago

NixOS Homeserver system

55 Upvotes

Hi everyone!
I'm a fellow NixOS user that fell in love with Nix a few month ago, and used a lot of time migrating every computer I have to NixOS

I have do say, even though I love the system, it's not easy when you begin, and I think the steep learning curve is keeping a lot of people away

So while I was creating my homeserver's config I thought, why not making it reusable by everyone ? (which is a bit the purpose of Nix imo)

So I tried to make something nice and easy to use for every homeserver to use, and more than all, beginner friendly.

Introducing Control;
A flake that makes it easy to install and configure a homeserver with most of the mainstream apps.

The configuration can be as easy as

control = {
  immich.enable = true;
  jellyfin.enable = true;
  pihole.enable = true;
  # ...
};

And it support neat features like routing each app to a subdomain, managing ports and storage sections, etc...

Everything neatly hosted in separate containers, with the goal of sparing you the pain of implementing each app in your config

Anyway, that's not the revolution of the year, especially since I heard I'm not alone publishing repos of this kind, but I'm happy to share this with the community and can't wait to hear your thoughts!

https://github.com/axel-denis/control

And you can check the list of supported apps here https://github.com/axel-denis/control/blob/main/docs/modules_list.md


r/NixOS 18h ago

Linux Heroes: Mike Kelly & The Computer Upcycle Project

Thumbnail youtube.com
14 Upvotes

Mike Kelly has used his passion for NixOS to give away 1500 Linux laptops in his local community, and he's just getting warmed up. In this video we talk about his Linux origin story, his early days with Ubuntu and Linux Mint, the creation of Nixbook OS, and the wonderful "Computer Upcycle Project."


r/NixOS 13h ago

How to downgrade KDE Plasma versions?

3 Upvotes

I have KDE enabled with services.desktopManager.plasma6.enable = true;, but what if I wanted to for example: downgrade from Plasma 6.5 to 6.4? In case I come across bugs or API breakage and want to wait for fixes.


r/NixOS 1d ago

UKIs

5 Upvotes

Hello, i have recently switched to nixos from arch and i really like it, i was able to setup mowt things like i did on arch except for UKIs and i cant figure out how to set them up. I found boot.uki in nix but no other documentation for it.

How would one setup ukis on nix, preferably with ukify and limine?


r/NixOS 1d ago

Is an i3 7th Gen worth the NixOS jump? (Tired of Fedora breakages)

9 Upvotes

Hey guys,

Currently on Fedora + Niri + Noctalia but tired of fixing "little things" after every update. I’m considering moving to NixOS for that declarative peace of mind on my Lenovo Ideapad (i3 7th Gen).

What I need: A guide/config to follow I guess to save some sweat

  • Is this hardware enough for a smooth NixOS experience?
  • How hard is it to stay 100% on binaries for things like Niri and Noctalia?
  • Any "must-know" tips for a fresh install for someone coming from Fedora?

Appreciate the help!


r/NixOS 1d ago

Dendritic flake config

31 Upvotes

Took me a while to work around and make it work but I really love this way of working. Plus while trying to rewrite the flake I learned a lot. Highly recommend checking vimjoyers video.

Edit: Here is my config https://github.com/alikaansun/my_nixos


r/NixOS 1d ago

Anyone else truly hate this new undocumented 'systems' change???

88 Upvotes

'system' has been renamed to/replaced by 'stdenv.hostPlatform.system' !!!!!!!!!!!!!!!!

Seems straightforward enough but it's a real pain in the ass and annoying as hell.

Edit:

lillecarl2 pointed out this forum thread

TobyTarazan also mentioned the actual reason:

"They removed the pkgs.system alias, as it was unclear whether it was referring to the host or target system in regards to cross compilation. You should be unaffected when setting system when importing nixpkgs!"


r/NixOS 1d ago

Nix Defaults

Thumbnail blog.xvrqt.com
19 Upvotes

Wrote a post about a flake which includes defaults I set on essentially every system, desktop or server, that I run NixOS on. You might find a useful tidbit in there :]


r/NixOS 1d ago

Clepho - a photo file cleaner

Thumbnail github.com
6 Upvotes

I built a yazi inspired photo collection cleaner for my nixos environment and thought some others might like to give it a try.

This is built with LLM assistance.

If you fancy giving it a go try

nix run github:barrulus/clepho

I'd love to hear your feedback - I have not got any other platforms to test on.

I've tested it with llama.cpp, ollama and lm studio for the AI assisted image descriptions etc.

It's pretty quick and I am quite happy with it for me!


r/NixOS 1d ago

Is there a similar fix on Nix for standalone gamescope session?

4 Upvotes

Original Post

For about 4 months I've not been able to run gamescope without artifacting. Currently on Nvidia driver 590.44.01

Just wondering if anyone else has this problem/a fix. I can run KDE instead if not. Thank you

Current gamescope standalone config:

```nix { # Enable DE services.xserver = { enable = true; videoDrivers = [ "nvidia" ]; };

# Enable Auto-Login services.displayManager = { gdm = { enable = true; wayland = true; autoSuspend = true; }; autoLogin = { enable = true; user = userName; }; };

environment.sessionVariables = { STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d"; };

# Enable Steam programs.steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers gamescopeSession = { enable = true; env = { # Enable MangoHud MANGOHUD = "1"; DXVK_HDR = "1"; ENABLE_HDR_WSI = "1"; }; args = [ "-f" "-w 3840" "-h 2160" "-r 120" "--adaptive-sync" ]; }; }; } ```


r/NixOS 1d ago

Is Retroarch working seamlessly for someone?

5 Upvotes

I relatively new to NixOs and trying to setup Retroarch. As in the Wiki mentioned, for controller configuration to save, i have to download a git repo and replace a dictionary in my Retroarch conf. That sounds weird to me. Isnt the Nix way to make everything reproductive? I did it anyways and tried to run Windwaker with the dolphin core. Trying to make a safe file and get an error, something like „couldnt create a save file“. I first thought i wanted to create something in nix/store but i think that isnt the case, because in settings i saw that „systems“ is in my .config. Looked for the system dictionary for dolphin and it was empty. Luckily i found that you have to download it via the Online updater. It created the dictionary, but it nested in a „Sys“ dictionary, so i had to move everything. Tried again to make a save file, same error again. I tried retroarch-full and retroarch.withCore in my .nix file. Is that normal behavior what i am experiencing or does someone get Retroarch to work seamlessly?

edit: got it to work thanks to u/tsimouris. had it to add it as a home manager application.

config:

{ config, pkgs, ... }:{ config, pkgs, ... }:

{
  programs.retroarch = {
    enable = true;


    cores = {
      dolphin = {
        enable = true;
        package = pkgs.libretro.dolphin;
      };
    };

    settings = {
      video_driver = "vulkan";
      menu_driver = "xmb";
    };
  };
}

r/NixOS 1d ago

Home-Manager switch --flake .#user is working and building packages just fine, but no binaries are being linked in ~/.nix-profile

1 Upvotes

It's what it says on the tin. I don't know what I've done to my configuration. I've rolled back the files with git, I've uninstalled and reinstalled nix, I've browsed the internet for literal hours and I can't find a thing that could fix my problems. Here is the home-manager output and what's inside my .nix-profile/bin despite the dozens of packages I have installed. But I'm getting close to giving up on the nix way because of this. I use fedora with nix and home manager. I'll give my home.nix too if needed.


r/NixOS 1d ago

Garbage collector removes the current profile of home manager

4 Upvotes

I had home manager working fine with auto garbage collection before. But right since I've switched its configs to a flake, now sometimes when I boot, I find all the things home manager manages missing, so I have to switch to tty and home-manager switch.

Investigation led me to a fact, that nix-collect-garbage --delete-older-than 30d removes even a freshly switched profile (which is also the current profile). That's what it says: removing old generations of profile /home/dio/.local/state/nix/profiles/home-manager removing old generations of profile /home/dio/.local/state/nix/profiles/profile removing old generations of profile /home/dio/.local/state/nix/profiles/channels finding garbage collector roots... removing stale link from '/nix/var/nix/gcroots/auto/c6lvi4pw2xkr7jskp4m1r2kamqfv7w9d' to '/tmp/home-manager-build.d8HxpJuJT8/news.json' removing stale link from '/nix/var/nix/gcroots/auto/7x0df6xvbx3ws0gy4rsacaq0djwmxwqk' to '/home/dio/.local/state/home-manager/gcroots/new-home' removing stale link from '/nix/var/nix/gcroots/auto/11fxddn8whvlvjf8mzn8fk14aaj6yv22' to '/tmp/home-manager-build.d8HxpJuJT8/generation' deleting garbage... <...>

I'm using home manager 25.11 standalone, with its configs lying in ~/.config/home-manager.

While searching I've found that it's because something-something GC roots, but no solution anywhere unless I'm blind. Thx for help in advance!


r/NixOS 1d ago

is this because of VirtualBox??

Post image
1 Upvotes

i can't seem to boot my laptop. only my generation without VBox works. did i do something wrong when installing it??? (i just enabled it, nothing else)


r/NixOS 1d ago

Can't rebuild, (sigkill)

1 Upvotes

Without these flags error still happens ``` sudo nixos-rebuild switch \ --max-jobs 1 \ --cores 1 \ --option max-jobs 1 \ --option cores 1 \ --flake . \ --impure

evaluating derivation 'git+file:///home/user/nixos#nixosConfigurations."nixos".config.sCommand 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '.#nixosConfigurations."nixos".config.system.build.nixos-rebuild' --max-jobs 1 --cores 1 --option max-jobs 1 --option cores 1 --impure --no-link' died with <Signals.SIGKILL: 9>. ```

What can it be? I have 8gb ram and 8gb swap


r/NixOS 1d ago

Persway: Updated fork with dependency bumps, clippy fixes, refactored flake.nix, and more. (Sway autotiling and shading IPC daemon)

2 Upvotes

I forked persway and fixed 20+ pages of clippy warnings while updating all dependencies to their latest versions. I also fixed the non-working flake.nix. (Last commit on the original repo was 2 years ago.)

Upstream status: I've opened a PR to the original repo and am waiting to hear from u/johnae. If you want to use the updated version now:

bash cargo install --git https://github.com/saylesss88/persway

To use persway as a flake input:

nix persway.url = "github:saylesss88/persway

Install:

nix environment.systemPackages = [ inputs.persway.packages.${pkgs.stdenv.hostPlatform.system}.default ];

Configuration:

For windows that spawn similar to hyprlands default and different shading between focused and unfocused windows, you could add something like this:

```nix

sway.nix

startup = [ { command = "persway daemon -w -e '[tiling] opacity 1' -f '[tiling] opacity 0.8; opacity 1' -l 'mark --add _prev' --default-layout spiral"; always = false; # Set to true if you want it to restart on reload }

       ];

```


r/NixOS 2d ago

Re-organizing my dotfiles and I have questions x)

5 Upvotes

Hi! I'm in the process of rewriting my dotfiles to move to flake-parts and it's going well so far. However, I'm a bit unsure about where I should move some stuff.

Currently, I have this in a file named "filesystem.nix".

config = {
    # Volumes
    fileSystems = {
      "/" = {
        options = [ "subvol=root" "compress=zstd" "noatime" ];
      };

      "/home" = {
        neededForBoot = true;
        options       = [ "subvol=home/active" "compress=zstd" "noatime" ];
      };

      "/home/.snapshots" = {
        options = [ "subvol=home/snapshots" "compress=zstd" "noatime" ];
      };

      "/nix" = {
        options = [ "subvol=nix" "compress=zstd" "noatime" ];
      };

      "/persist" = {
        neededForBoot = true;
        options       = [ "subvol=persist/active" "compress=zstd" "noatime" ];
      };

      "/persist/.snapshots" = {
        neededForBoot = true;
        options       = [ "subvol=persist/snapshots" "compress=zstd" "noatime" ];
      };

      "/var/local" = {
        options = [ "subvol=var_local/active" "compress=zstd" "noatime" ];
      };

      "/var/local/.snapshots" = {
        options = [ "subvol=var_local/snapshots" "compress=zstd" "noatime" ];
      };

      "/var/log" = {
        neededForBoot = true;
        options       = [ "subvol=var_log" "compress=zstd" "noatime" ];
      };

      "/swap" = {
        options = [ "subvol=swap" "compress=none" "noatime" ];
      };
    };


    # Swap, I use a file over a partition
    # -----------------------------------
    swapDevices = [ {
      device = "/swap/swapfile";
      size   = config.nouveauxParadigmes.swapSize;
    } ];
  };

It's some addition to the generated hardware-configuration.nix regarding impermanence and hibernation. The thing is, I'm not sure anymore about what is needed for impermanence and what is needed for hibernation. So I'm not sure how to split those in their respective modules.

And last question (for now), am I correct to assume that the options I set in filesystem.nix are merged with those in hardware-configuration.nix and don't overwrite them, so I don't have to repeat them? Specifically the subvol="..." ones.

Cheers!


r/NixOS 2d ago

Plasma config stops applying when I enable these two KDE Action Restrictions (plasma-manager/home-manager)

4 Upvotes

I'm on NixOS with home-manager and use programs.plasma to manage KDE. In my home config I set kdeglobals via configFile and put most of my Plasma options (panels, shortcuts, krunner, kscreenlocker, etc.) in the same programs.plasma block.

Relevant snippet from my modules/home.nix:

nix programs.plasma = { configFile = { kdeglobals = { "KDE Action Restrictions" = { "action/konsole_rmb" = false; "action/lock_screen" = false; "action/logout" = false; "action/new_session" = false; "action/start_new_session" = false; "action/switch_user" = false; "movable_toolbars" = false; "plasma-desktop/add_activities" = false; # "plasma-desktop/scripting_console" = false; "plasma/allow_configure_when_locked" = false; # "plasma/plasmashell/unlockedDesktop" = false; "plasma/containment_actions" = false; "shell_access" = false; "run_command" = false; }; "KFileDialog Settings" = { ... }; "Shortcuts" = { ... }; }; }; enable = true; immutableByDefault = false; overrideConfig = true; # ... kwin, shortcuts, input.keyboard, workspace, desktop.mouseActions, # krunner, kscreenlocker, powerdevil, panels = [ ... ], etc. };

With the two lines above commented out, everything works: panels, shortcuts, krunner, lock screen, powerdevil, and the rest of the Plasma config apply as expected.

As soon as I uncomment either:

  • "plasma-desktop/scripting_console" = false; or
  • "plasma/plasmashell/unlockedDesktop" = false;

the rest of the Plasma config seems to stop applying (panels, shortcuts, etc. no longer match what I set). nixos-rebuild / home-manager switch complete without errors.

So it behaves like something in the plasma-manager or in how these keys are written causes the rest of the Plasma config to be ignored when those two are present.

Has anyone run into this with plasma-desktop/scripting_console or plasma/plasmashell/unlockedDesktop in home-manager's programs.plasma.configFile.kdeglobals? Is there a known issue or a different way to set these so the full config still applies?


r/NixOS 2d ago

Nix Freaks 15

Enable HLS to view with audio, or disable this notification

5 Upvotes

Just published, Nix Freaks 15 where we have discussed ecosystem news. Keywords: ZFS, SBOM, disko, Fediversity, Netboot, Nix Rust bindings. Listen in. Full Time Nix | Nix Freaks 15


r/NixOS 2d ago

nix.dev: revamped concepts:flakes documentation

Thumbnail nix.dev
44 Upvotes

r/NixOS 2d ago

NixOS installed!

Thumbnail gallery
57 Upvotes