Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefill an example flake on C-x C-f flake.nix #195

Closed
quinn-dougherty opened this issue Nov 19, 2023 · 1 comment
Closed

prefill an example flake on C-x C-f flake.nix #195

quinn-dougherty opened this issue Nov 19, 2023 · 1 comment

Comments

@quinn-dougherty
Copy link

when I C-x C-f shell.nix it prefills:

{ pkgs ? import <nixpkgs> {} }:

with pkgs;

mkShell {
  buildInputs = [
    
  ];
}

And when you C-x C-f *.nix it prefills a module (a lambda from { lib, pkgs, config, ...} to an empty attrset).

We should have C-x C-f flake.nix prefill:

{ 
  description = "$user's new flake"; 
  inputs = { }; 
  outputs = { self, ... }: { }; 
}

etc.

@quinn-dougherty
Copy link
Author

Sorry, realizing this is a doom snippets thing, not in the mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant