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