Skip to content

Commit

Permalink
stow-ignore-local
Browse files Browse the repository at this point in the history
  • Loading branch information
v4zha committed Nov 7, 2024
1 parent 84437e9 commit 7709931
Show file tree
Hide file tree
Showing 10 changed files with 93 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .config/fish/fish_variables
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR EDITOR:nvim
SETUVAR ELECTRON_OZONE_PLATFORM_HINT:wayland
SETUVAR QT_QPA_PLATFORM:wayland
SETUVAR XDG_CONFIG_HOME:/home/v4zha/\x2econfig
Expand Down Expand Up @@ -48,4 +49,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_user_paths:/home/v4zha/\x2econfig/emacs/bin\x1e/usr/local/bin
SETUVAR fish_user_paths:/usr/local/bin
File renamed without changes.
Binary file added assets/n1.png
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 assets/n2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions workspace/flake_templates/haskell/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
description = "v4zha's Haskell flakes";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
my-package = "";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];

perSystem = { self', pkgs, ... }: {

haskellProjects.default = {
packages = { };
devShell = {
enable = true;
tools = hp: {
fourmolu = hp.fourmolu;
};
hlsCheck.enable = true;
};
};

packages.default = self'.packages.${my-package};
};
};
}
11 changes: 11 additions & 0 deletions workspace/flake_templates/nodejs/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell {
buildInputs = [
pkgs.nodejs
];

shellHook = ''
export NODE_ENV=development
'';
}
3 changes: 3 additions & 0 deletions workspace/flake_templates/python/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
poetry config virtualenvs.in-project true
poetry add --group dev debugpy
poetry install
9 changes: 9 additions & 0 deletions workspace/flake_templates/python/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
nativeBuildInputs = [
pkgs.poetry
pkgs.python3
pkgs.nodePackages.pyright
];
}
2 changes: 2 additions & 0 deletions workspace/flake_templates/rust/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
36 changes: 36 additions & 0 deletions workspace/flake_templates/rust/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
description = "v4zha's Rust flakes";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
rust-toolchain = pkgs.rust-bin.selectLatestNightlyWith
(toolchain: toolchain.default.override {
extensions = [ "rust-src" ];
});
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
rust-toolchain
rust-analyzer
lldb
mold
taplo
yaml-language-server
];
};
}
);
}

0 comments on commit 7709931

Please sign in to comment.