42 lines
940 B
Nix
42 lines
940 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
|
|
|
home-manager = {
|
|
url = github:nix-community/home-manager/master;
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
dedsec-grub-theme = {
|
|
url = gitlab:pleshevskiy/dedsec-grub-theme/nix-flake;
|
|
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
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|