mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 09:10:32 +01:00
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-23.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {self, nixpkgs, home-manager, ...}: let
|
|
lib = nixpkgs.lib;
|
|
util = (import ./overlays/util.nix {} {}).util;
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; overlays = util.nixFilesIn ./overlays; };
|
|
in {
|
|
#nixosConfigurations = {
|
|
# lambda = lib.nixosSystem {
|
|
# system = "x86_64-linux";
|
|
# modules = [ ./lambda/ ];
|
|
# };
|
|
#};
|
|
nixosConfigurations = pkgs.util.mapHostAttrs (host: host) (host: lib.nixosSystem {
|
|
inherit system;
|
|
modules = [ ./hosts/${host} home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = inputs;
|
|
home-manager.users.xqtc = {...}: {imports = [ ./home/lambda ]; };
|
|
}];
|
|
});
|
|
};
|
|
}
|