2022-08-29 23:46:02 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-08-30 00:17:21 +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-08-30 16:02:48 +03:00
|
|
|
url = github:nix-community/home-manager/master;
|
2022-08-30 00:17:21 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
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 {
|
|
|
|
inherit nixpkgs system;
|
|
|
|
};
|
|
|
|
|
2022-08-31 15:49:37 +03:00
|
|
|
devShells.${system} =
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [ git-crypt stylua ];
|
|
|
|
};
|
|
|
|
};
|
2022-08-29 23:46:02 +03:00
|
|
|
};
|
|
|
|
}
|