nix/flake.nix

35 lines
963 B
Nix
Raw Normal View History

2023-08-14 07:11:18 -04:00
{
2023-08-14 07:45:15 -04:00
description = "mehbark's NixOS configuration";
2023-08-14 07:11:18 -04:00
2023-08-14 07:45:15 -04:00
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.home-manager.url = "github:nix-community/home-manager";
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-08-15 18:19:41 -04:00
inputs.flake-utils.url = "github:numtide/flake-utils";
2023-08-14 07:45:15 -04:00
2023-08-15 18:19:41 -04:00
outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, ... }:
let
conf = (import ./build.conf.nix) {};
in
{
nixosConfigurations =
flake-utils.lib.eachSystem conf.wms (wm:
let
conf = import (./build.conf.nix) { wm = wm; };
in
{
2023-08-14 07:45:15 -04:00
nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-08-15 18:19:41 -04:00
(./configuration.nix conf)
2023-08-14 07:45:15 -04:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-08-15 18:19:41 -04:00
home-manager.users.mbk = (import ./home.nix) conf;
2023-08-14 07:45:15 -04:00
}
];
};
2023-08-15 18:19:41 -04:00
});
2023-08-14 07:45:15 -04:00
};
2023-08-14 07:11:18 -04:00
}