Extracted editor requirements for nix
This commit is contained in:
parent
5f8b3d97f5
commit
1f7f488d3d
16
modules/lang/nix.nix
Normal file
16
modules/lang/nix.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
this = config.my.lang.nix;
|
||||||
|
graphical = config.my.graphical;
|
||||||
|
in with lib; {
|
||||||
|
options = {
|
||||||
|
my.lang.nix.enable = mkOption {
|
||||||
|
default = graphical.enable;
|
||||||
|
type = with types; bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf this.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ nixfmt rnix-lsp ];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user