Skip to content

Commit

Permalink
Add fenix and rust-analyzer-src dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Feb 10, 2024
1 parent e8c7988 commit 2a83602
Show file tree
Hide file tree
Showing 16 changed files with 153 additions and 3 deletions.
39 changes: 39 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# The global variables that can be accessed from every module.
globals = {
root = ./.;
nixpkgs.overlays = [
nixpkgs.overlays = with inputs; [
fenix.overlays.default
];
nixpkgs.config = {
allowUnfree = true;
Expand Down Expand Up @@ -95,6 +96,9 @@

nixos-vscode-server.url = "github:nix-community/nixos-vscode-server";
nixos-vscode-server.inputs.nixpkgs.follows = "nixpkgs";

fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};

nixConfig = rec {
Expand Down
5 changes: 3 additions & 2 deletions src/darwinConfigurations/sakamoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
useUserPackages = true;
extraSpecialArgs = {inherit globals;};
users.yousiki = {
imports = [
globals.outputs.homeProfiles.base
imports = with homeProfiles; [
base
lang.complete
];
};
};
Expand Down
3 changes: 3 additions & 0 deletions src/darwinProfiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# darwinProfiles

Profiles for Nix-darwin.
1 change: 1 addition & 0 deletions src/darwinProfiles/applications.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Install macOS applications with homebrew.
{globals, ...}: {
config,
lib,
Expand Down
3 changes: 3 additions & 0 deletions src/homeProfiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# homeProfiles

Profiles for Home-manager.
1 change: 1 addition & 0 deletions src/homeProfiles/base.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Basic configurations for Home-manager.
{globals, ...}: {
config,
lib,
Expand Down
3 changes: 3 additions & 0 deletions src/homeProfiles/lang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# homeProfiles.lang

Configure programming languages with Home-manager. Simply import `homeProfiles.lang.complete` to support all languages.
16 changes: 16 additions & 0 deletions src/homeProfiles/lang/c.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# C/C++ configurations.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
home.packages = with pkgs; [
clang-tools
cmake
gcc
gnumake
ninja
];
}
19 changes: 19 additions & 0 deletions src/homeProfiles/lang/complete.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# All programming languages.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
imports =
map
(path: (import path {inherit globals;}))
[
./c.nix
./latex.nix
./nix.nix
./python.nix
./rust.nix
];
}
13 changes: 13 additions & 0 deletions src/homeProfiles/lang/latex.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# LaTeX configurations.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
home.packages = with pkgs; [
tectonic
texlive.combined.scheme-full
];
}
15 changes: 15 additions & 0 deletions src/homeProfiles/lang/nix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Nix configurations.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
home.packages = with pkgs; [
alejandra
nil
rnix-lsp
deadnix
];
}
20 changes: 20 additions & 0 deletions src/homeProfiles/lang/python.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Python configurations.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; let
minicondaPath = "~/.miniconda";
in {
home.packages = with pkgs; [
black
isort
poetry
python3
ruff
ruff-lsp
yapf
];
}
12 changes: 12 additions & 0 deletions src/homeProfiles/lang/rust.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Rust configurations.
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
home.packages = with pkgs; [
fenix.stable.toolchain
];
}
Binary file added static/images/AyanamiRei_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/AyanamiRei_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a83602

Please sign in to comment.