Skip to content

Program-Learning/nixflakes

 
 

Repository files navigation

⚠️ I am not an authority on Nix or NixOS. I am merely an apprentice, an Alice navigating the wonderland. At least for now.

So anyways. Here's my dots. I hope you like them.

Eriim's Nixflakes

There are many paths to the top of the mountain, but the view is always the same.

How to use this repo

Getting Started with NixOS Minimal

Why Nix and NixOS

Got questions? Send them in the form of an issue or reach me at any of my other points of contact available on my GitHub Profile - I make no guarantees but I'm happy to do my best.

What is in this repo?

1. A modular (opinionated) Configuration Structure

2. Flake templates - Quickly grab this configuration and make it your own with:

nix flake new -t github:erictossell/nixflakes ./<your-repo-name-here>

3. An interactive build script for adding new hosts/users at sh/build.sh

4. eriixvim - a fully reproducible neovim configuration built with nixvim.

Try it out with:

nix run github:erictossell/eriixvim

5. A simple example of a custom built rust package: russh.

The highlight being how simple it is to package any application with flakes and import them into a configuration and not my rust code.

6. Semi up-to-date diagrams of the structure of this flake and the configurations managed by me.

7. Places I run this flake:

    principium  - My Desktop with full virtualisation capabilities.
    sisyphus    - My laptop as a default baseline for the flake.
    live-image  - Customized Installation Media
    winix       - My WSL `NixOS` configuration.
    virtualis   - A quick VM for testing.
    ambiens     - A formalized VM.

Flake Structure

Modules are grouped to be almost purely functional and as a result you will often find both the system configuration and the home-manager configuration in the same place. Not all NixOS users use this paradigm.

This repo has become more opinionated over time and now requires passing down variables from the flake.nix in order to fetch appropriate host and user specific configurations for a given device.

Flake Github URLS

Transparency is cool.

Input Following
nixpkgs nixos-unstable
home-manager following nixpkgs
agenix following nixpkgs
hyprland nixos-unstable
eriixvim nixos-unstable
ruSSH: a simple SSH multiplier nixos-unstable

Diagrams

Flake Structure

Flake Profiles

Screenshots

Current

Hyprland Hyprland

October 2023

Hyprland

Hyprland1

Hyprland3

How to use this repo

Getting Started with NixOS Minimal

Releases

No releases published

Packages

No packages published

Languages

  • Nix 94.6%
  • Shell 5.4%