From 3aa8cff626d70f0e0b291c160b781af6caf7d552 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Tue, 23 Jul 2024 20:02:04 +0200 Subject: [PATCH] . --- hosts/chris-pc/default.nix | 2 +- .../terminal/{alacrity.nix => alacritty.nix} | 2 +- modules/develop/dotnet.nix | 27 +++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) rename modules/desktop/terminal/{alacrity.nix => alacritty.nix} (98%) create mode 100644 modules/develop/dotnet.nix diff --git a/hosts/chris-pc/default.nix b/hosts/chris-pc/default.nix index 62540b7..719b8ae 100644 --- a/hosts/chris-pc/default.nix +++ b/hosts/chris-pc/default.nix @@ -18,7 +18,7 @@ terminal = { default = "alacritty"; - allacrity.enable = true; + alacritty.enable = true; }; editors = { diff --git a/modules/desktop/terminal/alacrity.nix b/modules/desktop/terminal/alacritty.nix similarity index 98% rename from modules/desktop/terminal/alacrity.nix rename to modules/desktop/terminal/alacritty.nix index 1f4dfd5..c734261 100644 --- a/modules/desktop/terminal/alacrity.nix +++ b/modules/desktop/terminal/alacritty.nix @@ -13,7 +13,7 @@ in { options.modules.desktop.terminal.alacritty = let inherit (lib.options) mkEnableOption; - in {enable = mkEnableOption "OpenGL terminal emulator";}; + in { enable = mkEnableOption "OpenGL terminal emulator"; }; config = mkIf config.modules.desktop.terminal.alacritty.enable { modules.shell.toolset.tmux.enable = true; diff --git a/modules/develop/dotnet.nix b/modules/develop/dotnet.nix new file mode 100644 index 0000000..c59f3b7 --- /dev/null +++ b/modules/develop/dotnet.nix @@ -0,0 +1,27 @@ +{ inputs, config, options, lib, pkgs, ... }: +let + inherit (lib.attrsets) attrValues; + inherit (lib.modules) mkIf mkMerge; +in +{ + options.modules.develop.dotnet = let + inherit (lib.options) mkEnableOption; + in { + enable = mkEnableOption "Rust developmnt"; + }; + + config = mkMerge [ + (mkIf config.modules.develop.dotnet.enable { + user.packages = attrValues { + }; + + }) + + (mkIf config.modules.develop.xdg.enable { + home = { +# sessionVariables.CARGO_HOME = "$XDG_DATA_HOME/cargo"; +# sessionPath = ["$CARGO_HOME/bin"]; + }; + }) + ]; +}