started migration to snowfall
This commit is contained in:
parent
e293e87124
commit
c8f6c4d818
100 changed files with 49 additions and 32 deletions
16
_modules/home/develop/default.nix
Normal file
16
_modules/home/develop/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, user, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
in
|
||||
{
|
||||
options.modules.${user}.develop = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{
|
||||
xdg.enable = mkEnableOption "XDG-related conf" // { default = true; };
|
||||
};
|
||||
|
||||
config = mkIf config.modules.${user}.develop.xdg.enable {
|
||||
|
||||
};
|
||||
}
|
18
_modules/home/develop/dotnet.nix
Normal file
18
_modules/home/develop/dotnet.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ inputs, config, options, lib, pkgs, user, ... }:
|
||||
let
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
in
|
||||
{
|
||||
options.modules.${user}.develop.dotnet = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption ".NET developmnt";
|
||||
};
|
||||
|
||||
config = mkIf config.modules.${user}.develop.dotnet.enable {
|
||||
home-manager.users.${user}.home.packages = attrValues {
|
||||
inherit (pkgs) dotnet-sdk_8;
|
||||
};
|
||||
};
|
||||
}
|
28
_modules/home/develop/js.nix
Normal file
28
_modules/home/develop/js.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ inputs, config, options, lib, pkgs, user, ... }:
|
||||
let
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
in
|
||||
{
|
||||
options.modules.${user}.develop.js = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "JS developmnt";
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf config.modules.${user}.develop.js.enable {
|
||||
home-manager.users.${user}.home.packages = with pkgs; [
|
||||
bun
|
||||
nodejs
|
||||
nodePackages_latest.typescript-language-server
|
||||
];
|
||||
|
||||
})
|
||||
|
||||
(mkIf config.modules.${user}.develop.xdg.enable {
|
||||
# home = {
|
||||
# };
|
||||
})
|
||||
];
|
||||
}
|
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