create dev shell with nixos rebuild

This commit is contained in:
Yisroel Baum 2026-04-06 22:03:12 +03:00
parent 81035289f7
commit ca7a4a57c2
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -10,17 +10,27 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, ... }@inputs: { outputs = { self, nixpkgs, home-manager, ... }:
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { let
modules = [ system = "x86_64-linux";
./configuration.nix in {
home-manager.nixosModules.home-manager nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
{ modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.yisroel = ./home-manager/home.nix; home-manager.users.yisroel = ./home-manager/home.nix;
} }
]; ];
};
devShells."${system}".default = let
pkgs = import nixpkgs { inherit system; };
in pkgs.mkShell {
buildInputs = with pkgs; [
nixos-rebuild
];
};
}; };
};
} }