{ description = "My first flake!"; inputs = { nixpkgs.url = "nixpkgs/nixos-23.11"; home-manager = { url = "github:nix-community/home-manager/release-23.11"; inputs.nixpkgs.follows = "nixpkgs"; }; # use the following for unstable: # nixpkgs.url = "nixpkgs/nixos-unstable"; # or any branch you want: # nixpkgs.url = "nixpkgs/{BRANCH-NAME}" }; outputs = { self, home-manager, nixpkgs, ... }: let system = "x86_64-linux"; lib = nixpkgs.lib; pkgs = nixpkgs.legacyPackages.${system}; in { nixosConfigurations = { nmarks = lib.nixosSystem { inherit system; modules = [ ./configuration.nix ]; }; }; homeConfigurations = { nmarks = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ ./home.nix ]; }; }; }; }