60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
dedsec-grub-theme = {
|
|
url = "gitlab:VandalByte/dedsec-grub-theme";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# nix lsp
|
|
nil = {
|
|
url = "github:oxalica/nil";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# my neovim configuration
|
|
myneovim = {
|
|
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";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
homeConfigurations = import ./outputs/home.nix {
|
|
inherit inputs system;
|
|
};
|
|
|
|
nixosConfigurations = import ./outputs/system.nix {
|
|
inherit inputs system;
|
|
};
|
|
|
|
devShells.${system} =
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
stylua # lua formatter
|
|
ormolu # haskell formatter
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|