Skip to content

jnccd/nixos-config

Repository files navigation

Diagram My NixOS Flake

Description

Yeah, I destroyed my system completely multiple times while building this, so I am not sure about the claims of update atomicity. But flakes are definitely reproducible which is neat.

What does it look like?

image

Like this 👀

Its basically default Plasma 6 Breeze with some light modifications. The idea here was to create a good looking DE that (mostly) doesnt break within the next patch, so I didnt go overboard with any of the modifications.

The background image is from Alena Aenami. Go check her out, she makes amazing artworks 👀

Installation

Warning

Since parts of this config are private you`ll have to substitute some imports in the config to make it work. Notably, the dotfiles also reference my main username.

  1. Use the nixos iso installer to get the basic system
  2. sudo nixos-generate-config
  3. Edit the initial config to get git and add the desired hostname in networking.hostname
  4. sudo nixos-rebuild switch
  5. Reboot
  6. Generate a new ssh key and register it to your github/gitlab account
  7. Clone the nixos-config repo via ssh into ~/git/nixos-config (yes the path is important)
  8. In the hosts folder, add a folder for the given hostname and within it the hardware-configuration.nix from the initial config
  9. Populate the hostname folder with system, configuration.nix and home.nix files from another host and adapt them as necessary
  10. sudo nixos-rebuild switch --install-bootloader --flake .
  11. Reboot for good measure
  12. nix-rb
  13. Log into vivaldi or your favorite browser, sync settings, (maybe try out my style)
  14. Done, enjoy :)

Tip

Whenever you change and rebuild a flake, make sure to look at the memory usage of the system.

You might have assigned a variable at the wrong place and created an infinite tree thats about to fill up your swapfile :)

Me when memory leek

Inspiration

I mainly learned Nix from Ampersand's and Vimjoyer's YouTube videos as well as these repos:

https://github.com/Andrey0189/nixos-config-reborn

https://github.com/EmergentMind/nix-config

https://github.com/Baitinq/nixos-config

About

My config for NixOS

Resources

Stars

Watchers

Forks