Nix configuration files - the ones shared between my current computer and hypothetical future nix installs.
Go to file
Jeremy List 334f2523c9
Add overlay: use inscapist's fork of Bundix as it has a critical bug fix
2024-05-09 10:22:46 +12:00
README.md Add all nix channels to README.md 2024-05-08 09:08:46 +12:00
home.nix Make fonts from home-manager config available 2024-05-06 13:16:47 +12:00
overlays.nix Add overlay: use inscapist's fork of Bundix as it has a critical bug fix 2024-05-09 10:22:46 +12:00
system.nix Remove workaround for bug that was fixed 2024-05-09 10:03:16 +12:00

README.md

Jeremy List's NixOS Configuration

A while ago I figured having this all in version control was a good ida. More recently I realised that most git hosts including this one had URLs for tarballs of each ref of each hosted repository; which would let me use nix-channel to keep everything syncronized.

Using these via imports rather than directly should allow for some per-host configuration to be mixed in.

Setup

In the shell:

sudo nix-channel --add https://tildegit.org/api/v1/repos/jeremylist/nix-config/main.tar.gz my-config
sudo nix-channel --update

The full set of nix channels for root on this system is:

my-config https://tildegit.org/api/v1/repos/jeremylist/nix-config/archive/main.tar.gz
nixos https://github.com/auxolotl/nixpkgs/archive/nixos-unstable.tar.gz
nixpkgs https://github.com/auxolotl/nixpkgs/archive/nixos-unstable.tar.gz
nixpkgs-stable https://nixos.org/channels/nixos-23.11

And for the regular user:

home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz

In /etc/nixos/configuration.nix:

  ...
  imports = [
    <my-config/system.nix>
    ...
  ];
  ...

In ~/.config/home-manager/home.nix:

...
  imports = [
    <my-config/home.nix>
  ];
...

In ~/.config/nixpkgs/overlays.nix:

let
  localOverlays = ...;
in import <my-config/overlays.nix> localOverlays

TODO

I would like overlays.nix to check nixpath for paths of the form nixpkgs-* and add the corresponding package set. For example: nixpkgs-unstable in my nix path would cause nixpkgs.unstable to be available to nix-shell etc.