I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
561 B

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, inputs, ... }:
  3. with lib;
  4. with lib.types;
  5. let cfg = config.modules.flakes;
  6. in {
  7. options.modules.flakes = {
  8. enable = mkOption {
  9. type = bool;
  10. default = false;
  11. };
  12. };
  13. config = mkIf cfg.enable {
  14. nix = {
  15. package = pkgs.nixUnstable;
  16. extraOptions = ''
  17. experimental-features = nix-command flakes
  18. '';
  19. };
  20. nixpkgs = {
  21. config = { allowUnfree = true; };
  22. overlays = [ inputs.emacs-overlay.overlay ];
  23. };
  24. };
  25. }