Add flakes

This commit is contained in:
Florian RICHER 2023-08-19 23:40:25 +02:00
parent ae5e6508bc
commit b1d54aef28
2 changed files with 91 additions and 0 deletions

44
flake.nix Normal file
View file

@ -0,0 +1,44 @@
{
description = "System config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ...}@inputs:
let
inherit (nixpkgs) lib;
util = import ./lib {
inherit system pkgs home-manager lib; overlays = (pkgs.overlays);
};
inherit (util) user;
inherit (util) host;
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [];
};
system = "x86_64-linux";
in {
homeManagerConfigurations = {
jq = user.mkHMUser {
};
};
nixosConfigurations = {
laptop = host.mkHost {
};
};
};
}