Jeremy List 334f2523c9 | ||
---|---|---|
README.md | ||
home.nix | ||
overlays.nix | ||
system.nix |
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.