me like nix
1{
2 description = "My NixOS Flake Configuration";
3
4 inputs = {
5 # Nixpkgs (stable or unstable)
6 nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; # Or "nixos-24.05" for stable
7
8 # Home Manager
9 home-manager = {
10 url = "github:nix-community/home-manager/release-25.05";
11 inputs.nixpkgs.follows = "nixpkgs"; # Ensures Home Manager uses the same nixpkgs
12 };
13 };
14
15 outputs = { self, nixpkgs, home-manager, ... }@inputs: {
16 nixosConfigurations = {
17 # Replace "nixos" with your actual desired hostname if it's different
18 # This "nixos" must match the `networking.hostName` in your configuration.nix
19 nixos = nixpkgs.lib.nixosSystem {
20 system = "x86_64-linux"; # Or your system's architecture
21 specialArgs = { inherit inputs; }; # Pass inputs to your modules
22 modules = [
23 # Your main configuration file
24 ./configuration.nix
25
26 # Home Manager module
27 home-manager.nixosModules.home-manager
28 ];
29 };
30 };
31 };
32}