diff --git a/flake.nix b/flake.nix index e551ec5..7579c51 100644 --- a/flake.nix +++ b/flake.nix @@ -1,25 +1,28 @@ -# flake.nix (New File) +# flake.nix { description = "Fred's NixOS Flake"; - + inputs = { - # NixOS unstable nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - - # Home Manager master home-manager = { url = "github:nix-community/home-manager/master"; - # Ensure Home Manager uses the Nixpkgs input defined above inputs.nixpkgs.follows = "nixpkgs"; }; }; - + outputs = { self, nixpkgs, home-manager, ... }: { nixosConfigurations.FredOS-Gaming = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - ./common.nix + ./hosts/FredOS-Gaming.nix # Main host config + ./hosts/FredOS-Macbook.nix # Macbook config + ./common.nix home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.fred = import ./home.nix; # You'll need to create this + } ]; }; };