Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDR committed Feb 1, 2024
0 parents commit 22f541f
Show file tree
Hide file tree
Showing 46 changed files with 2,352 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elixir 1.16.0-otp-26
erlang 26.2
1 change: 1 addition & 0 deletions elixir-flake/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
38 changes: 38 additions & 0 deletions elixir-flake/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
description = "My Elixir application";

inputs = {
beam-flakes = {
url = "github:shanesveller/nix-beam-flakes";
inputs.flake-parts.follows = "flake-parts";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

outputs = inputs @ {
beam-flakes,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [beam-flakes.flakeModule];

systems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];

perSystem = _: {
beamWorkspace = {
enable = true;
devShell = {
languageServers.elixir = true;
languageServers.erlang = false;
};
versions = {
elixir = "1.16.0";
erlang = "26.2";
};
};
};
};
}
Empty file added lexical/lexical.nix
Empty file.
219 changes: 219 additions & 0 deletions nix/flake.lock

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

41 changes: 41 additions & 0 deletions nix/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
description = "ySomic's NixOS flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};

hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
};

outputs = { self, nixpkgs, home-manager, ... } @ inputs: let
inherit (self) outputs;
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./nixos/configuration.nix
];
};
};

homeConfigurations = {
"Thieu@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home-manager/home.nix
];
};
};
};
}
Loading

0 comments on commit 22f541f

Please sign in to comment.