nix-configs/flake.nix
2023-12-04 21:50:16 +01:00

44 lines
882 B
Nix

{
description = "First main nixos flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
npkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in {
nixosConfigurations = {
myNixos = npkgs.lib.nixosSystem {
inherit system;
modules = [
./nixos/configuration.nix
];
};
};
homeConfigurations = {
forestcat = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
];
};
};
};
}