nixos/flake.nix

52 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-02-12 09:25:11 +01:00
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-03-17 14:39:43 +01:00
flake-utils.url = "github:numtide/flake-utils";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
2024-02-12 09:25:11 +01:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-08 14:17:40 +01:00
hb-downloader = {
url = "git+file:///home/crony/Documents/develop/hb-downloader";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-02-12 09:25:11 +01:00
};
2024-03-17 14:39:43 +01:00
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 ];
};
}
];
};
2024-02-14 20:33:50 +01:00
};
2024-03-17 14:39:43 +01:00
devShells.x86_64-linux.default = let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in (import ./shell.nix { inherit pkgs pre-commit-hooks; });
2024-02-12 09:25:11 +01:00
};
}