nix-conf/flake.nix

43 lines
1 KiB
Nix
Raw Normal View History

2024-08-16 10:36:55 -04:00
{
description = "NixOS config";
inputs = {
2024-10-04 20:07:34 -04:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
2024-08-23 14:52:05 -04:00
home-manager = {
2024-10-04 20:07:34 -04:00
url = "github:nix-community/home-manager";
2024-08-23 14:52:05 -04:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-16 10:36:55 -04:00
};
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs:
let
2024-08-16 10:36:55 -04:00
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlays = {
nixpkgs.overlays = [
(final: prev: {
stable = import nixpkgs-stable {
system = prev.system;
};
})
];
};
in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
2024-10-11 02:00:10 -04:00
system/configuration.nix
overlays
];
};
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
2024-10-11 02:00:10 -04:00
user/home.nix
overlays
];
};
2024-08-16 10:36:55 -04:00
};
}