From e3e84ca27ad79d75eaac2b229cec2e71427e2e3f Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 30 Jul 2024 20:27:41 +0400 Subject: [PATCH] add csharp --- modules/dev/cs.nix | 16 ++++++++++++++++ modules/dev/default.nix | 1 + 2 files changed, 17 insertions(+) create mode 100644 modules/dev/cs.nix diff --git a/modules/dev/cs.nix b/modules/dev/cs.nix new file mode 100644 index 00000000..2e73b4c2 --- /dev/null +++ b/modules/dev/cs.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.dev.csharp; +in +{ + options.modules.dev.csharp = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + omnisharp-roslyn + ]; + }; +} diff --git a/modules/dev/default.nix b/modules/dev/default.nix index 990d6550..cb5e620b 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -8,5 +8,6 @@ ./nixd.nix ./nil.nix ./lua.nix + ./cs.nix ]; }