Files
laptop-nix-config/flake.nix

46 lines
1.0 KiB
Nix

{
description = ":3";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
stable-nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = {
nixpkgs,
stable-nixpkgs,
home-manager,
nixos-hardware,
...
} @ inputs: let
system = "x86_64-linux";
in {
nixosConfigurations = {
framework = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
inherit system;
pkgs-stable = import stable-nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
modules = [
./configuration.nix
nixos-hardware.nixosModules.framework-13th-gen-intel
home-manager.nixosModules.home-manager
{
home-manager.users.toaster = ./home.nix;
}
];
};
};
};
}