system/flake.nix

47 lines
1.1 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";
};
myneovim = {
url = "git+https://git.pleshevski.ru/mynix/neovim?rev=252f3cf2a6029037ada15564ea8533513391d7df";
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
];
};
};
};
}