2022-08-29 23:46:02 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-09-14 12:18:55 +03:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2022-08-29 23:46:02 +03:00
|
|
|
|
2022-08-30 00:17:21 +03:00
|
|
|
home-manager = {
|
2022-09-14 12:18:55 +03:00
|
|
|
url = "github:nix-community/home-manager";
|
2022-08-30 00:17:21 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-09-01 11:17:54 +03:00
|
|
|
|
|
|
|
dedsec-grub-theme = {
|
2022-09-14 12:18:55 +03:00
|
|
|
url = "gitlab:VandalByte/dedsec-grub-theme";
|
2022-09-01 11:17:54 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-09-17 21:55:13 +03:00
|
|
|
|
2022-09-18 18:29:40 +03:00
|
|
|
# nix lsp
|
|
|
|
nil = {
|
2022-09-19 16:15:27 +03:00
|
|
|
url = "github:oxalica/nil/2022-09-19";
|
2022-09-18 18:29:40 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
# my neovim configuration
|
2022-09-17 21:55:13 +03:00
|
|
|
myneovim = {
|
2022-09-18 18:29:40 +03:00
|
|
|
url = "git+https://git.pleshevski.ru/mynix/neovim?rev=05553b6fa077a3286b01169abd6d149deb7773b0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
# tool to change .env faster
|
|
|
|
vnetod = {
|
|
|
|
url = "git+https://git.pleshevski.ru/pleshevskiy/vnetod?rev=21e9e89de2af212ca9dec914011cfde7e48f8de6";
|
2022-09-17 21:55:13 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-08-30 00:17:21 +03:00
|
|
|
};
|
2022-08-29 23:46:02 +03:00
|
|
|
|
2022-08-30 00:17:21 +03:00
|
|
|
outputs = inputs @ { self, nixpkgs, ... }:
|
|
|
|
let
|
2022-08-29 23:46:02 +03:00
|
|
|
system = "x86_64-linux";
|
2022-08-30 00:17:21 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
homeConfigurations = import ./outputs/home.nix {
|
|
|
|
inherit inputs system;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosConfigurations = import ./outputs/system.nix {
|
2022-09-01 11:17:54 +03:00
|
|
|
inherit inputs system;
|
2022-08-30 00:17:21 +03:00
|
|
|
};
|
|
|
|
|
2022-08-31 15:49:37 +03:00
|
|
|
devShells.${system} =
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
2022-09-01 17:40:10 +03:00
|
|
|
packages = with pkgs; [
|
|
|
|
stylua # lua formatter
|
|
|
|
ormolu # haskell formatter
|
|
|
|
];
|
2022-08-31 15:49:37 +03:00
|
|
|
};
|
|
|
|
};
|
2022-08-29 23:46:02 +03:00
|
|
|
};
|
|
|
|
}
|