2024-01-12 15:59:57 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-02-10 14:52:08 +01:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-01-12 15:59:57 +01:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-23.11";
|
2024-02-10 14:52:08 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
2024-01-12 15:59:57 +01:00
|
|
|
};
|
|
|
|
};
|
2024-01-31 22:26:46 +01:00
|
|
|
#inputs.nvidia_pinned = {
|
|
|
|
# inputs.nixpkgs.follows = "nixos-unstable";
|
|
|
|
#};
|
2024-02-10 14:52:08 +01:00
|
|
|
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-01-28 22:51:43 +01:00
|
|
|
inputs.nixvim = {
|
|
|
|
# If you are not running an unstable channel of nixpkgs, select the corresponding branch of nixvim.
|
|
|
|
url = "github:nix-community/nixvim/nixos-23.11";
|
2024-01-12 15:59:57 +01:00
|
|
|
|
2024-01-28 22:51:43 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-02-10 14:52:08 +01:00
|
|
|
outputs = inputs @ {self, nixpkgs, nixpkgs-unstable, home-manager, nixos-hardware, nixvim, ...}: let
|
2024-01-12 15:59:57 +01:00
|
|
|
lib = nixpkgs.lib;
|
|
|
|
util = (import ./overlays/util.nix {} {}).util;
|
|
|
|
system = "x86_64-linux";
|
2024-01-28 22:51:43 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; overlays =
|
|
|
|
util.nixFilesIn ./overlays; };
|
2024-01-12 15:59:57 +01:00
|
|
|
in {
|
|
|
|
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;
|
2024-02-10 14:52:08 +01:00
|
|
|
home-manager.users.xqtc = {...}: {imports = [ ./home nixvim.homeManagerModules.nixvim ]; };
|
2024-01-28 22:51:43 +01:00
|
|
|
}
|
2024-02-10 14:52:08 +01:00
|
|
|
(lib.optionalString (host == "lilith") inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480)
|
2024-01-28 22:51:43 +01:00
|
|
|
];
|
2024-01-12 15:59:57 +01:00
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|