52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hb-downloader = {
|
|
url = "git+file:///home/crony/Documents/develop/hb-downloader";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, flake-utils, pre-commit-hooks, home-manager
|
|
, ... }: {
|
|
nixosConfigurations = {
|
|
default = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
home-manager.users.crony = {
|
|
imports = [ ./home-manager/home.nix ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
devShells.x86_64-linux.default = let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in (import ./shell.nix { inherit pkgs pre-commit-hooks; });
|
|
};
|
|
}
|