nixos
Hoe do you self host a nix package repo & install nix packages from 3rd party repos? Is this even possible. Other package managers allow you to install packages from 3rd party repos such as Flatpaks, apt, F-Droid, Scoop, Winget. And is there any known 3rd party nix package repos?
Working in a Virtualbox VM using the standard KDE version of the `.iso`. I get locked out due to inactivity during a live environment session. Trying to enter the empty password doesn't help me. How do I deal with this graciously?
cross-posted from: https://beehaw.org/post/13758256 > You can change the color theme of your whole desktop with a single line of code. > > Currently supported adapters: > - Adwaita (GTK3, GTK4) > - Alacritty > - dunst > - Firefox (hijacking the default theme with userchrome.css) > - GTK2 > - Kvantum > - Rofi > - swaylock > - Wezterm > > repo: https://gitlab.com/vfosnar/nix-colors-adapters / https://github.com/vfosnar/nix-colors-adapters
cross-posted from: https://programming.dev/post/13537798 > Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!
cross-posted from: https://lemmy.world/post/14160134 > I want to reset my server soon and I'm toying with the idea of using a different operating system. I am currently using Ubuntu Server LTS. However, I have been toying with the idea of using Fedora Server (I use Fedora on my laptop and made good experiences with it) or even Fedora CoreOS. I also recently installed NixOS on my desktop computer and find the declarativeness pretty cool (but I'm still a complete beginner) and could imagine that it would fit well into a server setup. > > I have quite a few services running on my server, such as Nextcloud, Conduit (Matrix), Jellyfin, etc. and all in containers. I would also rather not install programs without containers, because 1. compose is super easy to maintain and set up, 2. it remains very clear with containers (and compose) and 3. I believe that containers are more secure. But since I also want to make the services inside the containers available, I currently have Nginx installed as a reverse proxy (not in the container, but on the system) and always create certificates with certbot so that I can use HTTPS encryption. > > In the paragraph above I actually described exactly the use-case of Fedora CoreOS, but I have no experience with the system and how it works. That's why I'm still a bit hesitant at considering the OS at the moment. > I can imagine that NixOS with its declarative nature seems well suited, since, as I have heard, you can configure containers as well as Nginx and with Nginx also https certificates declaratively. > But I could also use a base system like before (Fedora Server or Ubuntu Server) and simply install podman, nginx and certbot and manage everything that way. > > Have you had any experience with Fedora Server, Fedora CoreOS, NixOS or a completely different operating system for servers and what are/were your impressions with this setup? Or do you just want to share your knowledge here? I would be delighted.
cross-posted from: https://leminal.space/post/4750886 > It took me some time to work out how to get my ssh agent set up in [Niri](https://github.com/YaLTeR/niri) so I though I would share what I did. I'm using NixOS and Home Manager. I put this in my Home Manager config: > > ```nix > services.gnome-keyring = { > enable = true; > components = [ "pkcs11" "secrets" "ssh" ]; > }; > home.sessionVariables.SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/keyring/ssh"; > ``` > > I'm using GDM according to NixOS' default configuration which I think runs gnome-keyring (I thought I saw it in the process list before I set up the user unit), and I think that configuration is automatically unlocking gnome-keyring when I log in via PAM integration. But apparently I need to run gnome-keyring again in my window manager session. Home Manager's `services.gnome-keyring` adds a systemd user unit that does that.
cross-posted from: https://lemmy.world/post/13113247 > After learning how to add an unstable overlay to nixpkgs, being able to override individual service modules from unstable was something that I still struggled with until fairly recently. Hopefully this helps someone else looking to do common-but-not-very-obvious operation.
Hi, I am a beginner on NixOS and I am confused how to setup fonts on it. I have home-manager working properly and nerd-fonts installed. Now how to setup System,GTK,emoji and Indic fonts. Any article or part of config please.
So I have been experiencing screen blackout when I use any refresh rate above 60Hz. On Arch I was able to solve this by setting a udev rule as mentioned in [this ArchWiki article](https://wiki.archlinux.org/title/AMDGPU#Screen_artifacts_and_frequency_problem) but it seems like I can't do the same in NixOS using the traditional way. Is there anything I need to add in the configuration.nix file to achieve the same ?
Hi, sorry if that title isn't very clear. I just started learning about nix a couple days ago; I'll explain what I mean. I'm trying to set up a web application that I'm currently hosting with Docker containers, but do it with nix instead, like what's shown in this blog post: [https://carjorvaz.com/posts/the-holy-grail-nextcloud-setup-made-easy-by-nixos/](https://carjorvaz.com/posts/the-holy-grail-nextcloud-setup-made-easy-by-nixos/) However, I don't have NixOS on my server. I'm using Debian, with the nix package manager installed. Is it possible to use a nix config file, like the one below, when only using the nix package manager? Currently it errors when I try to call `nix-build` with it, giving an error about calling a lambda function that never called `self`. If I remove the `self` argument, it complains about `config`, and so on. ``` { self, config, lib, pkgs, ... }: { services = { nextcloud = { enable = true; hostName = "cloud.example.com"; package = pkgs.nextcloud27; # Let NixOS install and configure the database automatically. database.createLocally = true; # Let NixOS install and configure Redis caching automatically. configureRedis = true; < other settings here... > }; }; } ``` From what I've read, the `services` part of that creates systemd services, which makes me think that it only works if you're on a full NixOS system and not only using the nix package manager. But it's been difficult to find a clear answer on that, probably because I'm still learning what terms to search for.
Does NixOS have a way to PXE many machines via a kickstart or preseed equivalent? I'm curious to experiment with it in the context of a University environment and we use either Cobbler or Foreman for host provisioning. Also curious what the best practice is for config management. I only know enough to know there's a nix config file that declares everything. Does this completely supplant puppet/salt/ansible, or do you use them together? Thanks for any tips!
Recently, I switched to NixOS and realised that there is no G'MIC plugin package for Krita. There's [this issue](https://github.com/NixOS/nixpkgs/issues/163645) 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: ```nix { 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?
So, I got into NixOS and installed it on a VPS a few days ago. I've previously used yunohost.org (a debian based all-in-one selfhosting solution) and docker-compose. But I (now) really like the Nix(OS) approach, the amount of packaged software and how everything ties together in a clean server configuration. However... I need a bit more information on the server stuff. Are there nice configurations around which I can incorporate and learn from? Extensive tutorials from other people who run their own services or communities? I mean the basic stuff isn't a problem. I got Nextcloud and the most important stuff running, a DNS Adblocker, a chat server, nginx etc. But ultimately I'd like to share some services with friends and family. So I need single sign-on (SSO), preferably with an LDAP directory. An email server... And the Wiki and just googling it stop being helpful at this point. Are there people who share their experience with LDAP/Authentik/Zitadel/Authelia/Keycloak / whatever SSO/Authentication software is packaged in Nix but I can't find anything about from people who actually use it? A comparison of the several available email servers?
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
Any bried guide on building from source. I want build friclicli as not in nix repo. Tried to search on internet but didn't got anything. (New to nixOS)
I've seen people use nix-doom-emacs, have it set up standalone, and some have fancy Nix code that's way beyond my understanding for now to set it up. Which one is the recommended way to set it up? Also, how do you get completions in nix-mode?
I've been using Nix and NixOS for 4 years now. While I like using it for my PCs and tried using it for servers with success, I think its ecosystem still is immature for development and production purposes, and thus my passion for Nix has faded. So my question is what keeps you using Nix or NixOS? How have you been using it? Do you still feel passion and hype for it?
Yesterday I tried to update my nix flake but the rebuild-switch failed when it came time to install the following python3 derivation with some extra python packages: ```(python3.withPackages(ps: with ps; [ numpy scipy matplotlib pandas notebook ]))``` The problematic package is "notebook" and building fails with the following error: ``` error: builder for '/nix/store/crxnqidkwkgxm9s7ahkhvilx1cisrki6-python3.10-jupyter-server-2.0.6.drv' failed with exit code 1; last 10 log lines: > pyfuncitem.obj(**testargs) > File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 105, in test_base_url > launch_instance(["--ServerApp.base_url=/foo"]) > File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 83, in _run_in_subprocess > wait_up(url, check=lambda: process.poll() is None) > File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 40, in wait_up > time.sleep(interval) > > Timeout > /nix/store/gv2cl6qvvslz5h15vqd89f1rpvrdg5yc-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context ``` The very same python derivation worked like 2 weeks ago but now suddenly doesn't work anymore. I'm quite lost trying to troubleshoot this problem so any help is greatly appreciated. EDIT: So far I've tried the "jupyter" package instead of the "notebook" package, installed it through the unstable channel and tried to install "jupyterlab" as an alternative, but to no avail.
after updating to the new version of Dolphin, I noticed the icons don't show up in the "Icons" layout.
If anyone wants to help package COSMIC in nixpkgs (and for NixOS) join the Matrix room :3
I hope this is the right place to ask. I am new to Nix and trying to use it for now as a universal package manager. I installled Stremio using Nix but the app doesn't work properly. I see that it's several versions out of date. The same app works fine using Flatpak. Is there a way to let the maintainer know? I'd also love some documentation that can help me update it myself. I can just use the Flatpak but I just want to have one less package manager to worry about.
This is something that I struggle with. I know how to find top-level packages like `git` or `cowsay`. But what about utilities under nested paths? I always spend ages digging through the nixpkgs source code to try to find utilities to use in my nix expressions. Today I want to use `buildRustPackage`. It's defined [here](https://github.com/NixOS/nixpkgs/blob/58d98b0742b7818bf3f31179e10707f220a993a2/pkgs/build-support/rust/build-rust-package/default.nix), and is propagated [here](https://github.com/NixOS/nixpkgs/blob/35d87899f7c8f6fad50447301465d51b5dd87753/pkgs/development/compilers/rust/make-rust-platform.nix#L21). But how do I access it given a `pkgs` variable? I have no idea! https://search.nixos.org/packages is no help `nix search nixpkgs` doesn't find it I think I need to search by attribute name, not by derivation name. But I don't know how to do that.
It took me a while to figure this out. I use Home Manager to manage my Gnome settings by setting `dconf.settings = { ... }`. My settings are non-trivial (for example [my paperwm module](https://github.com/hallettj/home.nix/blob/854ed345380415895c94a714ce1c643440960b49/modules/home-manager/paperwm.nix)). So it's helpful for me to check the actual dconf settings that Home Manager produces. To do that build your configuration with `home-manager build`, open `result/activate`, and find a line that looks like this: ```bash $DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION /nix/store/4ab7dx08wx640444m71axlqvbrvz73bv-dconf-0.40.0/bin/dconf load / < /nix/store/0hdnvwx8d9sifd6ib8n2hhblyblq0ccp-hm-dconf.ini ``` The store path for `hm-dconf.ini` has the settings. **Edit:** added a line break to the script line so you can see the relevant store path
I'm developing a small library which intercepts some library calls from a program installed via home-manager. My library works fine outside of nix, but it fails when trying to intercept calls from a program installed via home-manager. I figured that it is related to hardcoded library paths in my interceptor library. lld shows ``` linux-vdso.so.1 (0x00007fff7a341000) libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007fb2f3b72000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb2f391c000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb2f38f8000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2f3716000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb2f3637000) /lib64/ld-linux-x86-64.so.2 (0x00007fb2f3cac000) ``` What is the preferred approach here? - Changing the paths in my binary doesnt seem very portable? - Setting LD_LIBRARY_PATH seems also a hassle - Are there linker settings which could help - Or, should I "just" (no idea, how to do this) create a derivation for my program and install it via home-manager, too? Any pointers are greatly appreciated. Cheers!
Could be areas of improvement as well
Tried NixOS ! So I tried nixos and I love how things work, I am glad that it exists. Will learn about Flakes today. Any recommended resource to learn it? :) [@nixos@lemmy.ml](https://lemmy.ml/c/nixos)