started migration to snowfall
This commit is contained in:
parent
091438d802
commit
5ba5d55108
100 changed files with 49 additions and 32 deletions
36
_modules/home/develop/rust.nix
Normal file
36
_modules/home/develop/rust.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ inputs, config, options, lib, pkgs, user, ... }:
|
||||
let
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.meta) getExe;
|
||||
in
|
||||
{
|
||||
options.modules.${user}.develop.rust = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Rust developmnt";
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
# (mkIf config.modules.${user}.develop.rust.enable {
|
||||
# # nixpkgs.overlays = [inputs.rust.overlays.default];
|
||||
#
|
||||
# home-manager.users.${user}.home.packages = attrValues {
|
||||
# # rust-package = pkgs.rust-bin.stable.latest.default;
|
||||
# # inherit (pkgs) rust-analyzer rust-script;
|
||||
# };
|
||||
#
|
||||
# environment.shellAliases = {
|
||||
# rs = "rustc";
|
||||
# ca = "cargo";
|
||||
# };
|
||||
# })
|
||||
#
|
||||
# (mkIf config.module.${user}s.develop.xdg.enable {
|
||||
# home-manager.users.${user}.home = {
|
||||
# sessionVariables.CARGO_HOME = "$XDG_DATA_HOME/cargo";
|
||||
# sessionPath = ["$CARGO_HOME/bin"];
|
||||
# };
|
||||
# })
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue