Nix / NixOS

2753 readers
2 users here now

Main links

Videos

founded 3 years ago
MODERATORS
76
 
 

I am pretty happy with my configs now, with home manager but no flakes so far. I am, however, annoyed by all the dotfiles that I didn't define, and I'm worried how many other files are laying around without getting imperatively defined.

I'm sort of picturing a kiosk mode, where every time I reboot everything is wiped and I only have what I defined. Any files I want to keep are on other partitions or network locations mapped in my config. If a new config file is created by changing a setting in an application, I want to be notified so I can add it to my Nix configs.

Is this possible? Is it a terrible idea?

The biggest challenge I see is in installing games, because it looks like they often leave bits all over the place.

77
78
 
 

In my previous post, I asked whether a certain subvolume layout would work well for NixOS, and if not, how it could be adapted.

Now that I know the layout does work as intended, I’m wondering what NixOS-specific subvolumes might be worth adding to it. The layout was originally designed for more traditional Linux distributions, so I’d like to tailor it a bit more to NixOS.

My goal is to achieve the same kind of clean, minimal system snapshots — ones that let me roll back safely without accidentally losing files or user data.

I’d really appreciate any advice or examples of good NixOS-oriented subvolume setups. Thanks in advance! 🙏

79
1
Nix CI Benchmarks (garnix-io.github.io)
submitted 7 months ago* (last edited 7 months ago) by ruffsl@programming.dev to c/nix@programming.dev
80
81
 
 

root → / home → /home opt → /opt cache → /var/cache gdm → /var/lib/gdm libvirt → /var/lib/libvirt log → /var/log spool → /var/spool tmp → /var/tmp snapshots → /snapshots

I want to have similar kind of results for my next install of NixOS.

82
83
84
85
86
 
 

Not the most major step, but a good start. Mostly talks about caching and CUDA

87
88
 
 

Nix related discussion starts around the the 0:14:00 min mark.

89
 
 

Colmena is a simple, stateless NixOS deployment tool modeled after NixOps and morph, written in Rust. It's a thin wrapper over Nix commands like nix-instantiate and nix-copy-closure, and supports parallel deployment.

90
91
92
1
submitted 8 months ago* (last edited 8 months ago) by ruffsl@programming.dev to c/nix@programming.dev
 
 

Related discussion:

Related blog posts:

93
94
95
 
 

Fair criticism, although the larger discussion thread this garnered earlier this year was an interesting read. Over +300 comments:

96
 
 
97
98
99
 
 

This is a quick and painless tutorial on how to install and configure NixOS from Scratch. It involves starting off with Home manager and Flakes before even rebuilding your system.

I thought the example using builtins.mapAttrs with create_symlink for xdg.configFile was cleverly simple.

100
 
 

As a developer I often need to run code I cannot trust, especially dependencies from NodeJS and Python projects, on my dev machine. In order to protect my system from potentially malicious code, I built NixWrap, an adhoc sandboxing tool for NixOS.

NixWrap wraps bubblewrap (oh dear), running it with convenient defaults and offering easy to use command line flags to toggle custom options. An invocation to NixWrap is typically way shorter than the bubblewrap equivalent.

E.g. npm install can be wrapped with wrap -n npm install to gain network access and write access to the current working directory.

view more: ‹ prev next ›