Nix / NixOS

1783 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS
176
 
 

Disclaimer. I'm doing it anyway.

Long time hacker, and ambi-os user. Latest sexyness is my new macbook. After getting everything setup the way I want it, I start seeing buzz for Nix and got excited, but also bummed out that I didn't start from scratch.

I like new stuff, figuring it out and solving problems, but I also hate broken and unstable stuff. Doubly so when you go to use something you spent time setting up and it fails. Triply on having to switch your daily driver or setup any new system with all of your crazy custom setup.

  • How much pain will I suffer trying to replace brew with nixpkg?
  • Currently I use podman to build containers, should i switch to nix?
  • I use whatever virtual environment is appropriate for the task. Venv, etc. Seems like nix can do a better job?
  • What's the experience like with VSCode?

I am most excited at the prospect of using home-manager. The 'idea' of portability for my profile is pretty nice. I'd like to see it work across osx/win/linux and all the things be the same up to my browser and maybe some other cross-platform common things.

Don't roast me for not being hyper-specific here. I am not an uber-dev. I'd say I lean more into security and dev-ops. Happy to elaborate on anything.

I really want to hear others' experiences. I see the upside and, like I said, I'm going to take on the challenge anyway, but will I end up regretting it?

177
 
 

I'm new to nix, but I really went full beans on it: installed NixOS on my daily and I'm using nix-shell for some projects and yesterday I learned how nix docker images work.

I was actively avoiding flakes because I try never to use unstable/experimental features until they are stabilised so I can rely on them.

Thing is, they seem to be ubiquitous. Their reason to exist makes sense to me and I think I should learn how to use them to fully take advantage of the ecosystem.

My question: is it fairly safe to assume nix flakes won't suddenly break on me? is there any known roadmap to flakes stabilisation?

178
179
 
 
180
9
submitted 1 year ago* (last edited 1 year ago) by zstg to c/nix
 
 

I'm quite new to NixOS and am currently running it inside a VM. I've been using Arch as my daily-driver for almost a year now.

How do i write a NixOS derivation to configure Doom Emacs for me?

I already have my init, config and packages.el files in my dotfiles private repo on Gitlab. Assuming I've already cloned these repos to my home directory, is it possible to create a Nix derivation for this purpose??

EDIT: I've setup my custom Emacs build, and the rest of the script automatically configures doom for me.

181
18
submitted 1 year ago* (last edited 1 year ago) by demesisx to c/nix
 
 

I was looking into the prospect of deploying an instance of Lemmy myself. Being an ULTRA nix fanboi (and a Docker-hater), I was immediately struck by how much the process still depends on (and, IMO, is being held hostage by) Docker containers.

Can we (or at least someone more capable and with more free time than I) help the Lemmy community by harnessing the power of nix and flakes to create declarative, reproducible Lemmy scratch-built instance deployment?

I suspect it would be exceptionally easy for some of you out there. If you are a flakes power-user, just think of how much this could help the community (and perhaps awaken a few people to the power of flakes).

ps. if this already exists, please point me in the right direction.

182
183
16
NixOS S3 Short Term Resolution! (discourse.nixos.org)
submitted 1 year ago by [email protected] to c/nix
184
 
 

I have enabled the strongswan plugin for Network Manager via networking.networkmanager.enableStrongSwan.

I manually set up my work VPN using nm-applet, but obviously this won't come with me if I reinstall NixOS, so I'd like to set up the VPN using nix.

The problem is that networking.networkmanager doesn't seem to have any sort of vpn configuration system. How would I go about this?

185
186
187
188
14
submitted 1 year ago by WhiteBlackGoose to c/nix
189
18
submitted 1 year ago by ballmerpeaking to c/nix