38 lines
908 B
Nix
38 lines
908 B
Nix
{
|
|
description = "my config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
zen-browser.url = "github:xaragon/zen-browser-flake";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
...
|
|
}:
|
|
{
|
|
nixosConfigurations = (import ./hosts inputs).nixos;
|
|
homeConfigurations = (import ./hosts inputs).home-manager;
|
|
}
|
|
// (inputs.flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
hm = inputs.home-manager.packages.${system}.home-manager;
|
|
in
|
|
{
|
|
packages.home-manager = hm;
|
|
apps.home-manager = {
|
|
type = "app";
|
|
program = "${hm}/bin/home-manager";
|
|
};
|
|
}
|
|
));
|
|
}
|