grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderbig changesc1be8e3

main
583 B24 linesraw
1{
2  configuration ? if (import ./hosts.nix).type == "home" then ./home.nix else ./configuration.nix,
3}:
4
5let
6  sources = import ./sources.nix;
7  host = import ./hosts.nix;
8in
9if host.type == "home" then
10  import "${sources.home-manager}/modules" {
11    inherit configuration;
12    pkgs = import sources.nixpkgs { system = host.system; };
13  }
14else if host.type == "darwin" then
15  import <darwin> {
16    inherit configuration;
17    nixpkgs = sources.nixpkgs;
18    system = host.system;
19  }
20else
21  import "${sources.nixpkgs}/nixos" {
22    inherit configuration;
23    system = host.system;
24  }