samhh / dotfiles

Configuring the universe with Nix.
49 stars 2 forks source link

Darwin doesn't build #352

Closed samhh closed 2 years ago

samhh commented 2 years ago

mkIf isn't enough to prevent:

error: The option `security.doas' does not exist. Definition values:
       - In `/nix/store/wn7z34vrxpqddk3iv640vqvgdmvbakg8-source/modules/headful/terminal.nix'
samhh commented 2 years ago

https://discourse.nixos.org/t/how-to-write-a-universal-module-that-can-work-on-darwin-using-nix-darwin-nixos/11568/8

samhh commented 2 years ago

Essentially this but for system level: https://github.com/nix-community/home-manager/issues/1906

samhh commented 2 years ago

https://github.com/samhh/dotfiles/commit/aaf8cefbc25f5e2f329954412d7bf5362e0d382a