✨ Moved modeules into shared
This commit is contained in:
24
shared/modules/development/default.nix
Normal file
24
shared/modules/development/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./docker.nix
|
||||
./dotnet.nix
|
||||
./nix.nix
|
||||
./node.nix
|
||||
./ollama.nix
|
||||
./rust.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# IDEs
|
||||
vscodium # TODO set up extensions
|
||||
# Tools
|
||||
git
|
||||
just
|
||||
unstable.libpq # Required for PostgreSQL
|
||||
# Formatters
|
||||
treefmt
|
||||
shfmt
|
||||
];
|
||||
}
|
10
shared/modules/development/docker.nix
Normal file
10
shared/modules/development/docker.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
}
|
9
shared/modules/development/dotnet.nix
Normal file
9
shared/modules/development/dotnet.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
jetbrains.rider
|
||||
dotnet-sdk_9
|
||||
dotnet-aspnetcore_9
|
||||
];
|
||||
}
|
11
shared/modules/development/nix.nix
Normal file
11
shared/modules/development/nix.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Language servers
|
||||
nixd
|
||||
nil
|
||||
# Formatters
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
}
|
10
shared/modules/development/node.nix
Normal file
10
shared/modules/development/node.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
jetbrains.webstorm
|
||||
nodejs_22
|
||||
pnpm
|
||||
nodePackages.prettier
|
||||
];
|
||||
}
|
6
shared/modules/development/ollama.nix
Normal file
6
shared/modules/development/ollama.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
}
|
17
shared/modules/development/rust.nix
Normal file
17
shared/modules/development/rust.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
# Required for some Rust dependencies, like reqwest
|
||||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
||||
};
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
jetbrains.rust-rover
|
||||
rustup
|
||||
gcc
|
||||
pkg-config # Required for some Rust dependencies
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user