Thought this would be fun and potentially handy for others to share. I recently did some work with Typst, and the template I ended up using made use of fonts not in my system install.
I was curious if you could use fonts in a nix-shell. Simply adding a font package via nix-shell doesn't make it accesible to applications.
Thanks to this forum post, I ran a test using makeFontsConf, and it works! The way I used it it does require a .nix file, but I'm sure you could turn it into some one-line magic.
Hi! I'm trying out Nix and I'm trying to set up and organize everything. Usually I put all my configs in a directory which is also a git repo and synced to my NAS, using the same subfolders they'd be in, and use GNU Stow to symlink the top-level folders (/dotfiles/home/ to /home/username/, /dotfiles/etc to /etc and /dotfiles/usr to /usr) and let it do its thing. Would it cause problems to also do that for configuration.nix?
On Arch I already had a /dotfiles/etc symlinked to /etc for my custom keyboard layouts, which worked fine... until the update which moved the location of the GUI keyboard layouts. It prevented the update so I undid the symlinks, updated, and put them again to the new location... but somehow it broke everything except the tty and no Wayland compositor I tried would work anymore (and there went my record of having never broken Arch since the first install over a year ago đ )
So I'm kinda wary of doing it on an even more critical file... but also I'm
Basically the title. I would like apps that auto detect system theme to see it as dark mode. Iâve come across post after post of doing this with home manager, but Iâd like to just do it in my base nix config. I tried a few different ways to declare what I thought was being done in the home manager tutorials in my config, but none of it worked. Any help would be greatly appreciated!
For one of my network storage PC builds, I was looking for an alternative to Flatcar Container Linux and tried out NixOS again (after an almost 10 year break). There are many ways to install NixOS, and in this article I will outline how I like to install NixOS on physical hardware or virtual machine...
Nix is a tool that takes a unique approach to package management and system configuration. Learn how to make reproducible, declarative and reliable systems.
Contribute to FullOvellas/nix_config development by creating an account on GitHub.
Link Actions
I think it's about time I improved a bit on my Nix and NixOS knowledge, and I guess the best way is having someone more experienced critique my monstrosity of a setup.
Maybe it's too modular?
Not modular enough?
Convoluted?
Complete garbage altogether?
Go to the repo and find out! Just be sure to let me know after.
Whenever I run any command line tools without sudo, they take the settings as in ~/.config and work fine. But whenever I run the same CLI tools with same parameters but with sudo, it falls back to default setting. How can I make this behavior consistent?
Ich wĂŒrd gerne fĂŒr einen Kollegen und mich zwei TShirts mit dem "Ansible? Nein Danke" Print bestellen. Redbubble ist ja schlecht von der QualitĂ€t, ich finde aber auch keine hochauflösende File um es wo anders drucken zu lassen. Wer kann hier vielleicht helfen? @nix
Nix is a tool that takes a unique approach to package management and system configuration. Learn how to make reproducible, declarative and reliable systems.
Link Actions
The idea behind the first requirement was that I want to be able to reduce the creation of the logo to a few simple parameters. Additionally, if I can generate the SVG files programmatically, I can programmatically generate the Branding Guide and Media Kit. Iâm calling this approach âBranding as Codeâ (BaC)
That sounds neat, and quite in the spirit of Nix itself! This PR looks to be the work in progress mentioned:
I just want to know from you how you (or how you would) pass options to packages you develop with flakes.
I am currently writing a widget bar using Astal and then import the flake in my NixOS flake and use the package.default output in home.packages. I'd like to also style this bar according to my Stylix theme, how do you do something like this?
Hi everyone, today we are starting the Zero Hydra Failures (in short ZHF) campaign for the upcoming NixOS release 25.05 (âWarblerâ). This campaign focuses on stabilization of the package set and tests for the upcoming release planned for 2025-05-23. This campaign ends then. Everyone is welcomed s...
I'm trying to write a Nix package for a closed-source, precompiled binary with an unusual twist. The binary is statically-linked, but it contains an embedded binary that is dynamically-linked. Is there some way I can use patchelf or another tool to path the interpreter path in the embedded binary?
The embedded binary does not have any runtime library dependencies, but it does need an interpreter which it expects at the hard-coded path /lib64/ld-linux-x86-64.so.2. It is embedded using the golang "embed" library.
I have a workaround that wraps the binary using buildFHSEnv. That works, but the resulting closure is about 300 MB bigger than it needs to be.
Making your hosts easily accessible on your home network is a something that can be tackled in a variety of ways. Each of these solutions come with their pros and cons regarding ease of use, adaptability and requirements for the devices on your network.
Letâs take mDNS for example: itâs easy to set ...
As the title says.
Want that i can have a single config for my systems and just require a single line to install and configure software which i always use in a bundle(office, specific programming applications, server applications,...).
So there is a issue with my configuration, so, you dont really need to understand nix, just like, look at my qemu hook script, its in plain sh, and the stuff above might be self explanitory, the issue is, my nvidia drivers are still being used, despite, setting KWIN_DRM_DEVICES to card0
so the logs of libvirtd looks something like this:
https://pastebin.com/TaKrsY9S
if setting kwin_drm_devices to my gpu card does not work, i dont know what does and can use help
The situation: you're trying to build something, but one of your configured substituters (a.k.a binary caches) is either offline, or having a moment of being very slow. Nix doesn't automatically time out, and skip that cache. No, you just can't build. You want to disable the problem cache so you can get on with your life. But since you use NixOS you need to run nixos-rebuild to update your substituter settings. A rebuild means hitting the problem cache...
When I've run into this problem I've thought, "I really need a way to selectively disable a cache in the nix build command." Previously I've had a hard time searching for such an option. Today I found it! Here it is: